Skip to content

Commit e1184ef

Browse files
committed
Added annotation processing options to build tool templates.
1 parent c954eb4 commit e1184ef

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

modules/jooby-cli/src/main/resources/cli/build.gradle.hbs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,26 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
6666
{{else}}
6767
/** Java debug information: */
6868
tasks.withType(JavaCompile) {
69-
options.compilerArgs << '-parameters'
69+
options.compilerArgs += [
70+
'-parameters',
71+
{{#if apt}}
72+
'-Ajooby.incremental=false',
73+
'-Ajooby.debug=false'
74+
{{/if}}
75+
]
7076
options.debug = true
7177
}
7278
{{/if}}
7379

80+
{{#if kapt}}
81+
kapt {
82+
arguments {
83+
arg('jooby.incremental', false)
84+
arg('jooby.debug', false)
85+
}
86+
}
87+
{{/if}}
88+
7489
shadowJar {
7590
mergeServiceFiles()
7691
}

modules/jooby-cli/src/main/resources/cli/pom.xml.hbs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@
8686
<version>${jooby.version}</version>
8787
</annotationProcessorPath>
8888
</annotationProcessorPaths>
89+
<annotationProcessorArgs>
90+
<annotationProcessorArg>
91+
jooby.debug=false
92+
</annotationProcessorArg>
93+
</annotationProcessorArgs>
8994
</configuration>
9095
</execution>
9196
{{/if}}
@@ -116,6 +121,11 @@
116121
<version>${jooby.version}</version>
117122
</path>
118123
</annotationProcessorPaths>
124+
<compilerArgs>
125+
<compilerArg>
126+
-Ajooby.debug=false
127+
</compilerArg>
128+
</compilerArgs>
119129
</configuration>
120130
{{/if}}
121131
</plugin>

0 commit comments

Comments
 (0)