11plugins {
22 id ' groovy'
33 id ' jacoco'
4- id ' com.github.kt3k.coveralls' version ' 2.10.2'
4+ id ' com.github.kt3k.coveralls' version ' 2.12.2'
5+ id ' com.diffplug.spotless' version ' 6.5.2'
56}
67
78repositories {
89 mavenCentral()
910}
1011
11- sourceCompatibility = ' 1.6 '
12- targetCompatibility = ' 1.6 '
12+ sourceCompatibility = ' 1.8 '
13+ targetCompatibility = ' 1.8 '
1314
1415dependencies {
15- implementation group : ' org.codehaus.groovy ' , name : ' groovy-all ' , version : ' 2.5.13 '
16+ def groovyVersion = ' 3.0.9 '
1617
17- testImplementation group : ' org.spockframework' , name : ' spock-core' , version : ' 1.3-groovy-2.5'
18+ implementation group : ' org.codehaus.groovy' , name : ' groovy-cli-commons' , version : groovyVersion
19+
20+ testImplementation group : ' org.spockframework' , name : ' spock-core' , version : ' 2.3-groovy-3.0'
1821 testImplementation group : ' cglib' , name : ' cglib-nodep' , version : ' 3.3.0'
1922 testImplementation group : ' org.objenesis' , name : ' objenesis' , version : ' 3.1'
2023}
@@ -23,7 +26,14 @@ sourceSets {
2326 main {
2427 groovy {
2528 srcDirs = [' .' ]
26- exclude([' **/test/**' , ' gradle/**' , ' build/**' , ' docker/**' , ' bin/**' , ' git-sync-test/**' ])
29+ exclude([
30+ ' **/test/**' ,
31+ ' gradle/**' ,
32+ ' build/**' ,
33+ ' docker/**' ,
34+ ' bin/**' ,
35+ ' git-sync-test/**'
36+ ])
2737 }
2838 }
2939}
@@ -32,6 +42,10 @@ compileGroovy {
3242 groovyOptions. configurationScript = file(' gradle/config.groovy' )
3343}
3444
45+ test {
46+ useJUnitPlatform()
47+ }
48+
3549ext. jacoco = [
3650 exclusions : [
3751 ' SyncGitRepos$_run_closure*'
0 commit comments