@@ -17,33 +17,33 @@ class ProtobufKotlinDslPluginTest extends Specification {
17
17
private static final List<String > GRADLE_VERSIONS = [/* "5.6", "6.1.1", "6.5",*/ " 7.4.2" ]
18
18
private static final List<String > ANDROID_PLUGIN_VERSION = [/* "3.5.0", "4.0.0", "4.1.0",*/ " 7.2.1" ]
19
19
20
- // @Unroll
21
- // void "testProjectKotlinDsl should be successfully executed (java-only project) [gradle #gradleVersion]"() {
22
- // given: "project from testProjectKotlinDslBase"
23
- // File projectDir = ProtobufPluginTestHelper.projectBuilder('testProjectKotlinDsl')
24
- // .copyDirs('testProjectKotlinDslBase')
25
- // .build()
26
- //
27
- // when: "build is invoked"
28
- // BuildResult result = GradleRunner.create()
29
- // .withProjectDir(projectDir)
30
- // .withArguments('build', '--stacktrace')
31
- // .withPluginClasspath()
32
- // .withGradleVersion(gradleVersion)
33
- // .forwardStdOutput(new OutputStreamWriter(System.out))
34
- // .forwardStdError(new OutputStreamWriter(System.err))
35
- // // Enabling debug causes the test to fail.
36
- // // https://github.com/gradle/gradle/issues/6862
37
- // //.withDebug(true)
38
- // .build()
39
- //
40
- // then: "it succeed"
41
- // result.task(":build").outcome == TaskOutcome.SUCCESS
42
- // ProtobufPluginTestHelper.verifyProjectDir(projectDir)
43
- //
44
- // where:
45
- // gradleVersion << GRADLE_VERSIONS
46
- // }
20
+ @Unroll
21
+ void "testProjectKotlinDsl should be successfully executed (java -only project ) [gradle #gradleVersion]" () {
22
+ given: " project from testProjectKotlinDslBase"
23
+ File projectDir = ProtobufPluginTestHelper.projectBuilder('testProjectKotlinDsl')
24
+ .copyDirs('testProjectKotlinDslBase')
25
+ .build()
26
+
27
+ when: " build is invoked"
28
+ BuildResult result = GradleRunner.create()
29
+ .withProjectDir(projectDir)
30
+ .withArguments('build', '--stacktrace')
31
+ .withPluginClasspath()
32
+ .withGradleVersion(gradleVersion)
33
+ .forwardStdOutput(new OutputStreamWriter(System.out))
34
+ .forwardStdError(new OutputStreamWriter(System.err))
35
+ // Enabling debug causes the test to fail.
36
+ // https://github.com/gradle/gradle/issues/6862
37
+ //.withDebug(true)
38
+ .build()
39
+
40
+ then: " it succeed"
41
+ result.task(" :build" ).outcome == TaskOutcome.SUCCESS
42
+ ProtobufPluginTestHelper.verifyProjectDir(projectDir)
43
+
44
+ where:
45
+ gradleVersion << GRADLE_VERSIONS
46
+ }
47
47
48
48
@Unroll
49
49
void " testProjectAndroidKotlinDsl should be successfully executed [android #agpVersion, gradle #gradleVersion]" () {
@@ -64,8 +64,7 @@ class ProtobufKotlinDslPluginTest extends Specification {
64
64
mainProjectDir,
65
65
gradleVersion,
66
66
agpVersion,
67
- " testProjectAndroidKotlinDsl:build" ,
68
- " --scan"
67
+ " testProjectAndroidKotlinDsl :build"
69
68
)
70
69
71
70
then: " it succeed"
0 commit comments