Skip to content

Commit

Permalink
Add Foojay and Java Toolchain settings (#1)
Browse files Browse the repository at this point in the history
Bump GradleUtils
  • Loading branch information
shartte authored Dec 30, 2023
1 parent 627f2da commit 6dc39d8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,17 @@ allprojects {
subprojects {
group = rootProject.group
version = rootProject.version

apply plugin : "java"

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

// ensure everything uses UTF-8 and not some random codepage chosen by gradle
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
}
1 change: 1 addition & 0 deletions cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'java'
id 'com.github.johnrengelman.shadow'
id 'maven-publish'
id 'net.neoforged.gradleutils'
}

group = 'net.neoforged.jst'
Expand Down
4 changes: 4 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ pluginManagement {
}
}

plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0'
}

dependencyResolutionManagement {
repositories {
mavenCentral()
Expand Down

0 comments on commit 6dc39d8

Please sign in to comment.