Skip to content

Commit d1ce72d

Browse files
committed
Specify -parameters option only for int test
1 parent 9c2b0dc commit d1ce72d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ java {
1717
withSourcesJar()
1818
}
1919

20-
tasks.withType(JavaCompile).configureEach {
21-
options.compilerArgs.add("-parameters")
22-
}
23-
2420
sourceSets {
2521
integrationTest {
2622
java {
@@ -65,6 +61,10 @@ tasks.register('integrationTest', Test) {
6561
outputs.upToDateWhen { false } // ensures integration tests are run every time when called
6662
}
6763

64+
compileIntegrationTestJava {
65+
options.compilerArgs << "-parameters"
66+
}
67+
6868
publishing {
6969
publications {
7070
mavenJava(MavenPublication) {

0 commit comments

Comments
 (0)