File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ plugins {
2
2
java
3
3
alias(libs.plugins.eclipse.apt)
4
4
alias(libs.plugins.spotless)
5
- alias(libs.plugins.doma.compile)
5
+ alias(libs.plugins.doma.compile) apply false
6
6
}
7
7
8
8
// Retain a reference to rootProject.libs to make the version catalog accessible within allprojects and subprojects.
@@ -47,6 +47,10 @@ subprojects {
47
47
apply (plugin = " java" )
48
48
apply (plugin = catalog.plugins.eclipse.apt.get().pluginId)
49
49
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
+ }
50
54
51
55
java {
52
56
toolchain {
@@ -57,8 +61,10 @@ subprojects {
57
61
tasks {
58
62
withType<JavaCompile > {
59
63
options.encoding = " UTF-8"
60
- // TODO Remove this workaround
61
- options.compilerArgs.add(" -Adoma.resources.dir=" + sourceSets[" main" ].resources.srcDirs.first().absolutePath)
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
+ }
62
68
}
63
69
64
70
withType<Test > {
You can’t perform that action at this time.
0 commit comments