Skip to content

Commit 4da0d67

Browse files
committedJan 19, 2023
Enable Java 8 for contest estimator
1 parent 25036b0 commit 4da0d67

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
 

‎gradle.properties

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ pytorchNativeVersion=1.9.1
7373
shadowJarVersion=7.1.2
7474
openblasVersion=0.3.10-1.5.4
7575
arpackNgVersion=3.7.0-1.5.4
76+
#Please, specify absolute path to jdk8 rt.jar C:/Program Files/Java/jdk1.8.0_311/jre/lib/rt.jar
77+
jdk8Jar=""
7678

7779
# configuration for build server
7880
org.gradle.daemon=false

‎utbot-junit-contest/build.gradle

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ plugins {
44
apply plugin: 'jacoco'
55

66
configurations {
7-
fetchInstrumentationJar
7+
fetchInstrumentationJar.extendsFrom testImplementation
88
}
99

1010
compileJava {
1111
options.compilerArgs << '-XDignore.symbol.file'
1212
}
1313

1414
compileTestJava {
15+
// Specify path to rt.jar of jdk8 in gradle.properties
16+
options.bootstrapClasspath = files("${jdk8Jar}")
17+
sourceCompatibility = '1.8'
18+
targetCompatibility = '1.8'
1519
options.fork = true
1620
options.forkOptions.executable = 'javac'
1721
options.compilerArgs << "-XDignore.symbol.file"
@@ -74,6 +78,7 @@ dependencies {
7478
}
7579

7680
processResources {
81+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
7782
from(configurations.fetchInstrumentationJar) {
7883
into "lib"
7984
}

0 commit comments

Comments
 (0)