File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change
1
+ import org.gradle.kotlin.dsl.invoke
2
+
1
3
plugins {
2
4
java
3
5
alias(libs.plugins.eclipse.apt)
@@ -47,10 +49,7 @@ subprojects {
47
49
apply (plugin = " java" )
48
50
apply (plugin = catalog.plugins.eclipse.apt.get().pluginId)
49
51
apply (plugin = catalog.plugins.spotless.get().pluginId)
50
- // TODO: This is a workaround. JPMS-compatible modules can’t be built with the Doma Compile Plugin.
51
- if (project.name != " example-jpms" ) {
52
- apply (plugin = catalog.plugins.doma.compile.get().pluginId)
53
- }
52
+ apply (plugin = catalog.plugins.doma.compile.get().pluginId)
54
53
55
54
java {
56
55
toolchain {
@@ -61,10 +60,6 @@ subprojects {
61
60
tasks {
62
61
withType<JavaCompile > {
63
62
options.encoding = " UTF-8"
64
- // TODO: This is a workaround. JPMS-compatible modules can’t be built with the Doma Compile Plugin.
65
- if (project.name == " example-jpms" ) {
66
- options.compilerArgs.add(" -Adoma.resources.dir=" + sourceSets[" main" ].resources.srcDirs.first().absolutePath)
67
- }
68
63
}
69
64
70
65
withType<Test > {
Original file line number Diff line number Diff line change @@ -10,3 +10,10 @@ application {
10
10
dependencies {
11
11
implementation(project(" :common" ))
12
12
}
13
+
14
+ tasks {
15
+ compileJava {
16
+ // TODO: This is a workaround. JPMS-compatible modules can’t be built with the Doma Compile Plugin.
17
+ options.sourcepath = files(sourceSets[" main" ].java.srcDirs + sourceSets[" main" ].resources.srcDirs)
18
+ }
19
+ }
You can’t perform that action at this time.
0 commit comments