Skip to content

Commit ee37e0e

Browse files
committed
Adding modularity support
1 parent 1a32942 commit ee37e0e

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ repositories {
99
mavenCentral()
1010
}
1111

12+
compileJava {
13+
// placing dependencies to the module path
14+
// https://discuss.gradle.org/t/gradle-doesnt-add-modules-to-module-path-during-compile/27382
15+
16+
inputs.property("moduleName", "com.jthemedetector")
17+
doFirst {
18+
options.compilerArgs = [
19+
'--module-path', classpath.asPath,
20+
]
21+
classpath = files()
22+
}
23+
}
1224

1325
dependencies {
1426
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.30'

src/main/java/module-info.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module com.jthemedetector {
2+
requires com.sun.jna.platform;
3+
requires org.slf4j;
4+
requires jfa;
5+
requires org.jetbrains.annotations;
6+
requires com.sun.jna;
7+
8+
exports com.jthemedetecor;
9+
}

0 commit comments

Comments
 (0)