@@ -44,6 +44,7 @@ apply plugin: 'groovy'
44
44
sourceCompatibility = ' 1.8'
45
45
targetCompatibility = ' 1.8'
46
46
47
+
47
48
dependencies {
48
49
compileOnly " org.scoverage:scalac-scoverage-plugin_2.12:1.4.1"
49
50
implementation group : ' commons-io' , name : ' commons-io' , version : ' 2.6'
@@ -58,38 +59,51 @@ dependencies {
58
59
sourceSets {
59
60
functionalTest {
60
61
java. srcDir file(' src/functionalTest/java' )
61
- resources. srcDir file(' src/functionalTest/resources' )
62
- compileClasspath + = sourceSets. main. output + configurations. testRuntimeClasspath
63
- runtimeClasspath + = output + compileClasspath
62
+ compileClasspath + = sourceSets. main. output
63
+ runtimeClasspath + = sourceSets. main. output
64
+ }
65
+ crossScalaVersionTest {
66
+ java. srcDir file(' src/crossScalaVersionTest/java' )
67
+ compileClasspath + = sourceSets. main. output + sourceSets. functionalTest. output
68
+ runtimeClasspath + = sourceSets. main. output + sourceSets. functionalTest. output
64
69
}
65
70
}
66
71
67
- task crossScalaVersionFunctionalTest (type : Test ) {
72
+ configurations {
73
+ functionalTestImplementation. extendsFrom testImplementation
74
+ functionalTestRuntimeOnly. extendsFrom testRuntimeOnly
75
+
76
+ crossScalaVersionTestImplementation. extendsFrom testImplementation
77
+ crossScalaVersionTestRuntimeOnly. extendsFrom testRuntimeOnly
78
+ }
79
+
80
+ task crossScalaVersionTest (type : Test ) {
68
81
description = ' Runs the cross scala version functional test.'
69
82
group = ' verification'
70
- testClassesDirs = sourceSets. functionalTest. output. classesDirs
71
- classpath = sourceSets. functionalTest. runtimeClasspath
72
- include ' **/crossversion/*'
83
+ testClassesDirs = sourceSets. crossScalaVersionTest. output
84
+ classpath = sourceSets. crossScalaVersionTest. runtimeClasspath
73
85
forkEvery = 1 // crucial to run every test in its own JVM
74
86
75
87
testLogging. showStandardStreams = true
76
88
77
89
mustRunAfter test
78
90
}
91
+ check. dependsOn crossScalaVersionTest
79
92
80
93
task functionalTest (type : Test ) {
81
94
description = ' Runs the functional tests.'
82
95
group = ' verification'
83
- testClassesDirs = sourceSets. functionalTest. output. classesDirs
96
+ testClassesDirs = sourceSets. functionalTest. output
84
97
classpath = sourceSets. functionalTest. runtimeClasspath
85
- exclude ' **/crossversion/*'
86
98
87
- dependsOn crossScalaVersionFunctionalTest
99
+ testLogging. showStandardStreams = true
100
+
101
+ mustRunAfter crossScalaVersionTest
88
102
}
89
103
check. dependsOn functionalTest
90
104
91
105
gradlePlugin {
92
- testSourceSets sourceSets. functionalTest
106
+ testSourceSets sourceSets. functionalTest, sourceSets . crossScalaVersionTest
93
107
}
94
108
95
109
task groovydocJar (type : Jar , dependsOn : groovydoc) {
0 commit comments