Skip to content

Commit

Permalink
Fix toolchain settings for build
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoberstar committed Feb 10, 2022
1 parent 632cd45 commit 25429e8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
9 changes: 8 additions & 1 deletion grgit-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ plugins {
id("org.gradle.test-retry")
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}

dependencies {
// groovy
compileOnly("org.codehaus.groovy:groovy:[3.0, 4.0)")
api("org.codehaus.groovy:groovy:[3.0.9, 4.0)")

// jgit
api("org.eclipse.jgit:org.eclipse.jgit:[6.0, 7.0)")
Expand All @@ -18,6 +24,7 @@ testing {
useSpock("2.0-groovy-3.0")

dependencies {
implementation("org.codehaus.groovy:groovy:[3.0.9, 4.0)")
implementation("org.junit.jupiter:junit-jupiter-api:latest.release")

// logging
Expand Down
3 changes: 1 addition & 2 deletions grgit-core/gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ com.googlecode.javaewah:JavaEWAH:1.1.13=compileClasspath,runtimeClasspath,testCo
net.bytebuddy:byte-buddy:1.11.0=testCompileClasspath,testRuntimeClasspath
org.apiguardian:apiguardian-api:1.1.2=testCompileClasspath
org.assertj:assertj-core:3.20.2=testCompileClasspath,testRuntimeClasspath
org.codehaus.groovy:groovy:3.0.8=testCompileClasspath,testRuntimeClasspath
org.codehaus.groovy:groovy:3.0.9=compileClasspath
org.codehaus.groovy:groovy:3.0.9=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.eclipse.jgit:org.eclipse.jgit:6.0.0.202111291000-r=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.hamcrest:hamcrest:2.2=testCompileClasspath,testRuntimeClasspath
org.jetbrains:annotations:20.1.0=testCompileClasspath,testRuntimeClasspath
Expand Down
19 changes: 6 additions & 13 deletions grgit-gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,16 @@ plugins {
id("org.ajoberstar.stutter")
}

// avoid conflict with localGroovy()
configurations.configureEach {
exclude(group = "org.codehaus.groovy")
}

// compat tests use grgit to set up and verify the tests
sourceSets {
compatTest {
compileClasspath += sourceSets["main"].output
runtimeClasspath += sourceSets["main"].output
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}

dependencies {
compileOnly(gradleApi())

api(project(":grgit-core"))
api(project(":grgit-core")) {
exclude(group = "org.codehaus.groovy")
}
compatTestImplementation(project(":grgit-core"))

compatTestImplementation("org.spockframework:spock-core:2.0-groovy-3.0")
Expand Down
1 change: 1 addition & 0 deletions grgit-gradle/gradle.lockfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ com.googlecode.javaewah:JavaEWAH:1.1.13=compatTestCompileClasspath,compatTestRun
net.bytebuddy:byte-buddy:1.11.0=compatTestCompileClasspath,compatTestRuntimeClasspath
org.apiguardian:apiguardian-api:1.1.0=compatTestCompileClasspath,compatTestRuntimeClasspath
org.assertj:assertj-core:3.16.1=compatTestCompileClasspath,compatTestRuntimeClasspath
org.codehaus.groovy:groovy:3.0.9=compatTestCompileClasspath,compatTestRuntimeClasspath
org.eclipse.jgit:org.eclipse.jgit:6.0.0.202111291000-r=compatTestCompileClasspath,compatTestRuntimeClasspath,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
org.hamcrest:hamcrest:2.2=compatTestCompileClasspath,compatTestRuntimeClasspath
org.jetbrains:annotations:20.1.0=compatTestCompileClasspath,compatTestRuntimeClasspath
Expand Down

0 comments on commit 25429e8

Please sign in to comment.