Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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 18, 2023
1 parent 85fa0ba commit 3b71523
Show file tree
Hide file tree
Showing 2 changed files with 9 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
8 changes: 7 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 All @@ -23,6 +27,7 @@ sourceSets {
srcDir('build/output/test/antlr')
srcDir('build/output/test/custom')
srcDir('build/output/test/guava')
srcDir('build/output/test/guava-26.0')
srcDir('build/output/test/fescar')
srcDir('build/output/test/pdfbox')
srcDir('build/output/test/seata')
Expand Down Expand Up @@ -74,6 +79,7 @@ dependencies {
}

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

0 comments on commit 3b71523

Please sign in to comment.