Skip to content

Commit

Permalink
build: fix latest java version for gitlab build
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed Jul 6, 2020
1 parent b219ab6 commit e81ba1c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ java-11:
image: openjdk:11
script: ./gradlew clean build

java-12:
java-latest:
stage: test
image: gradle:jdk12 # latest gradle and jdk12
script: gradle clean build
image: openjdk:latest
script: java -version && ./gradlew clean build

check:
stage: check
Expand Down
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ allprojects {

version = jadxVersion

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

tasks.withType(JavaCompile) {
if (!"$it".contains(':jadx-samples:')) {
options.compilerArgs << '-Xlint' << '-Xlint:unchecked' << '-Xlint:deprecation'
Expand Down Expand Up @@ -60,7 +63,7 @@ allprojects {
}

jacoco {
toolVersion = "0.8.2"
toolVersion = "0.8.5"
}
jacocoTestReport {
reports {
Expand Down
3 changes: 1 addition & 2 deletions jadx-samples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ project.ext {
}

dependencies {
compile(project(":jadx-core"))
compile(project(":jadx-cli"))
}

Expand All @@ -29,7 +28,7 @@ task samplesJar(type: Jar, dependsOn: samplesRun) {
task samplesJadxCreate(type: JavaExec, dependsOn: samplesJar) {
classpath = sourceSets.main.output + configurations.compile
main = project(":jadx-cli").mainClassName
args = ['-d', samplesJadxSrcDir, samplesJar.archivePath]
args = ['-v', '-d', samplesJadxSrcDir, samplesJar.archivePath]
}

task samplesJadxCompile(type: JavaCompile, dependsOn: samplesJadxCreate) {
Expand Down

0 comments on commit e81ba1c

Please sign in to comment.