77buildscript {
88 ext {
99 uptodateVersion = " 1.6.3"
10- retrolambdaPluginVersion = " 3.7.0"
11- retrolambdaVersion = " 2.5.4"
1210 }
1311
1412 repositories {
@@ -19,7 +17,6 @@ buildscript {
1917
2018 dependencies {
2119 classpath " com.ofg:uptodate-gradle-plugin:$uptodateVersion "
22- classpath " me.tatarka:gradle-retrolambda:$retrolambdaPluginVersion "
2320 }
2421}
2522
@@ -43,14 +40,13 @@ allprojects {
4340
4441 ext {
4542 isSnapshot = true
46- fjBaseVersion = " 4.9 "
43+ fjBaseVersion = " 5.0 "
4744
4845 snapshotAppendix = " -SNAPSHOT"
4946 fjVersion = fjBaseVersion + (isSnapshot ? snapshotAppendix : " " )
5047 fjConsumeVersion = " 4.8"
5148
5249 signModule = false
53- useRetroLambda = false
5450
5551 projectTitle = " Functional Java"
5652 projectName = " functionaljava"
@@ -71,10 +67,6 @@ allprojects {
7167 dependencyJunit = " org.junit.vintage:junit-vintage-engine:5.2.0"
7268
7369 displayCompilerWarnings = true
74-
75- newJdkEnvVar = " JAVA8_HOME"
76- oldJdkEnvVar = " JAVA7_HOME"
77- retroLambdaTarget = JavaVersion . VERSION_1_6
7870 }
7971
8072 repositories {
@@ -111,11 +103,13 @@ subprojects {
111103 }
112104 }
113105
114- if (displayCompilerWarnings) {
115- tasks. withType(JavaCompile ) {
106+
107+ tasks. withType(JavaCompile ) {
108+ options. compilerArgs. addAll([' --release' , ' 10' ])
109+ if (displayCompilerWarnings) {
116110 options. compilerArgs << " -Xlint:unchecked" << " -Xlint:deprecation"
117- }
118- }
111+ }
112+ }
119113
120114 jacocoTestReport {
121115 additionalSourceDirs = files(sourceSets. main. allSource. srcDirs)
@@ -136,7 +130,7 @@ task coverage(type: org.gradle.testing.jacoco.tasks.JacocoReport) {
136130 dependsOn = subprojects. coverage
137131 executionData fileTree(project. rootDir. absolutePath). include(" **/build/jacoco/*.exec" )
138132 // We only care about coverage of:
139- def projectForFoverage = [" core" , " java8 " , " quickcheck" , " java-core" ]
133+ def projectForFoverage = [" core" , " quickcheck" , " java-core" ]
140134 classDirectories = files(subprojects. findAll {subproject -> subproject. name in projectForFoverage} .sourceSets. main. output)
141135 sourceDirectories = files(subprojects. findAll {subproject -> subproject. name in projectForFoverage} .sourceSets. main. allSource. srcDirs)
142136
0 commit comments