Skip to content

Commit

Permalink
add toolchain to buildSrc
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Jun 27, 2024
1 parent 92bc067 commit 3722568
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,15 @@ dependencies {
implementation group: 'commons-io', name: 'commons-io', version: '2.7'

implementation group: 'xyz.wagyourtail.unimined', name: 'xyz.wagyourtail.unimined.gradle.plugin', version: '1.0.5'
}


var props = Properties()
props.load(project.file("../gradle.properties").text)
var javaVersion = props.getProperty("java_version") as String

java {
toolchain {
languageVersion = JavaLanguageVersion.of(Integer.valueOf(javaVersion))
}
}

0 comments on commit 3722568

Please sign in to comment.