Skip to content

Commit

Permalink
Enable Java 8 for contest estimator
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-fokin committed Jan 19, 2023
1 parent 25036b0 commit 4da0d67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ pytorchNativeVersion=1.9.1
shadowJarVersion=7.1.2
openblasVersion=0.3.10-1.5.4
arpackNgVersion=3.7.0-1.5.4
#Please, specify absolute path to jdk8 rt.jar C:/Program Files/Java/jdk1.8.0_311/jre/lib/rt.jar
jdk8Jar=""

# configuration for build server
org.gradle.daemon=false
Expand Down
7 changes: 6 additions & 1 deletion utbot-junit-contest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ plugins {
apply plugin: 'jacoco'

configurations {
fetchInstrumentationJar
fetchInstrumentationJar.extendsFrom testImplementation
}

compileJava {
options.compilerArgs << '-XDignore.symbol.file'
}

compileTestJava {
// Specify path to rt.jar of jdk8 in gradle.properties
options.bootstrapClasspath = files("${jdk8Jar}")
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
options.fork = true
options.forkOptions.executable = 'javac'
options.compilerArgs << "-XDignore.symbol.file"
Expand Down Expand Up @@ -74,6 +78,7 @@ dependencies {
}

processResources {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(configurations.fetchInstrumentationJar) {
into "lib"
}
Expand Down

0 comments on commit 4da0d67

Please sign in to comment.