Set Java version for all Java projects.

This commit is contained in:
Tyler Hancock 2021-09-28 02:58:33 -06:00
parent 6ae7d10805
commit b76bf02f3f
No known key found for this signature in database
GPG Key ID: D10D32949D03E695
3 changed files with 2 additions and 6 deletions

View File

@ -4,9 +4,6 @@ plugins {
id 'idea'
}
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
archivesBaseName = "${mod_name}-fabric-${minecraft_version}"
repositories {

View File

@ -14,8 +14,6 @@ apply plugin: 'maven-publish'
archivesBaseName = "${mod_name}-forge-${minecraft_version}"
java.toolchain.languageVersion = JavaLanguageVersion.of(16)
minecraft {
mappings channel: 'official', version: minecraft_version
@ -78,7 +76,6 @@ jar {
from project(":Common").sourceSets.main.output
}
jar.finalizedBy('reobfJar')
publishing {

View File

@ -2,6 +2,8 @@ subprojects {
apply plugin: 'java'
java.toolchain.languageVersion = JavaLanguageVersion.of(16)
jar {
manifest {
attributes([