Skip to content

Commit 8d5443f

Browse files
committed
debug build
1 parent d5de497 commit 8d5443f

5 files changed

Lines changed: 69 additions & 8 deletions

File tree

src/testInt/groovy/io/openapiprocessor/gradle/GroovyDslSpec.groovy

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class GroovyDslSpec extends PluginSpec {
4949
}
5050

5151
@Unroll
52-
void "test groovy (method) dsl with with gradle #gradleVersion" () {
52+
void "test groovy (method) dsl with with gradle 7 (#gradleVersion)" () {
5353
when:
5454
def result = build(gradleVersion)
5555
@@ -58,7 +58,19 @@ class GroovyDslSpec extends PluginSpec {
5858
result.output.contains("processor v1 did run !")
5959
6060
where:
61-
gradleVersion << Gradle.VERSIONS.reverse ()
61+
gradleVersion << Gradle.VERSIONS_7.reverse ()
6262
}
6363
64+
@Unroll
65+
void "test groovy (method) dsl with with gradle 8 (#gradleVersion)" () {
66+
when:
67+
def result = build(gradleVersion)
68+
69+
then:
70+
result.task(':processV1').outcome == SUCCESS
71+
result.output.contains("processor v1 did run !")
72+
73+
where:
74+
gradleVersion << Gradle.VERSIONS_8.reverse ()
75+
}
6476
}

src/testInt/groovy/io/openapiprocessor/gradle/KotlinDslSpec.groovy

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class KotlinDslSpec extends PluginSpec {
4949
}
5050

5151
@Unroll
52-
void "test kotlin dsl with with gradle #gradleVersion" () {
52+
void "test kotlin dsl with with gradle 7 (#gradleVersion)" () {
5353
when:
5454
def result = build(gradleVersion)
5555
@@ -58,7 +58,19 @@ class KotlinDslSpec extends PluginSpec {
5858
result.output.contains("processor v1 did run !")
5959
6060
where:
61-
gradleVersion << Gradle.VERSIONS.reverse ()
61+
gradleVersion << Gradle.VERSIONS_7.reverse ()
6262
}
6363
64+
@Unroll
65+
void "test kotlin dsl with with gradle 8 (#gradleVersion)" () {
66+
when:
67+
def result = build(gradleVersion)
68+
69+
then:
70+
result.task(':processV1').outcome == SUCCESS
71+
result.output.contains("processor v1 did run !")
72+
73+
where:
74+
gradleVersion << Gradle.VERSIONS_8.reverse ()
75+
}
6476
}

src/testInt/groovy/io/openapiprocessor/gradle/MultipleConfigurationsDifferentProcessorsSpec.groovy

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,19 @@ class MultipleConfigurationsDifferentProcessorsSpec extends PluginSpec {
7272
assertResult (result)
7373
7474
where:
75-
gradleVersion << Gradle.VERSIONS.reverse ()
75+
gradleVersion << Gradle.VERSIONS_7.reverse ()
76+
}
77+
78+
@Unroll
79+
void "process task runs processor from gradle 8 (#gradleVersion)" () {
80+
when:
81+
def result = build(gradleVersion)
82+
83+
then:
84+
assertResult (result)
85+
86+
where:
87+
gradleVersion << Gradle.VERSIONS_8.reverse ()
7688
}
7789
7890
private void assertResult(BuildResult result) {

src/testInt/groovy/io/openapiprocessor/gradle/MultipleConfigurationsSameProcessorSpec.groovy

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,19 @@ class MultipleConfigurationsSameProcessorSpec extends PluginSpec {
6666
assertResult (result)
6767
6868
where:
69-
gradleVersion << Gradle.VERSIONS.reverse ()
69+
gradleVersion << Gradle.VERSIONS_7.reverse ()
70+
}
71+
72+
@Unroll
73+
void "process task runs processor from gradle 8 (#gradleVersion)" () {
74+
when:
75+
def result = build(gradleVersion)
76+
77+
then:
78+
assertResult (result)
79+
80+
where:
81+
gradleVersion << Gradle.VERSIONS_8.reverse ()
7082
}
7183
7284
private void assertResult(BuildResult result) {

src/testInt/groovy/io/openapiprocessor/gradle/support/Gradle.groovy

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,25 @@ class Gradle {
1212
'7.1', '7.1.1',
1313
'7.2',
1414
'7.3', '7.3.1', '7.3.2', '7.3.3',
15-
/*
1615
'7.4', '7.4.1', '7.4.2',
1716
'7.5', '7.5.1',
1817
'7.6', '7.6.1',
1918
'8.0', '8.0.1', '8.0.2',
20-
'8.1', '8.1.1'*/
19+
'8.1', '8.1.1'
2120
]
2221

22+
static List<String> VERSIONS_8 = [
23+
'8.0', '8.0.1', '8.0.2',
24+
'8.1', '8.1.1'
25+
]
26+
27+
static List<String> VERSIONS_7 = [
28+
'7.0', '7.0.1', '7.0.2',
29+
'7.1', '7.1.1',
30+
'7.2',
31+
'7.3', '7.3.1', '7.3.2', '7.3.3',
32+
'7.4', '7.4.1', '7.4.2',
33+
'7.5', '7.5.1',
34+
'7.6', '7.6.1'
35+
]
2336
}

0 commit comments

Comments
 (0)