Set Java version for all Java projects.
This commit is contained in:
parent
6ae7d10805
commit
b76bf02f3f
|
|
@ -4,9 +4,6 @@ plugins {
|
||||||
id 'idea'
|
id 'idea'
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_16
|
|
||||||
targetCompatibility = JavaVersion.VERSION_16
|
|
||||||
|
|
||||||
archivesBaseName = "${mod_name}-fabric-${minecraft_version}"
|
archivesBaseName = "${mod_name}-fabric-${minecraft_version}"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,6 @@ apply plugin: 'maven-publish'
|
||||||
|
|
||||||
archivesBaseName = "${mod_name}-forge-${minecraft_version}"
|
archivesBaseName = "${mod_name}-forge-${minecraft_version}"
|
||||||
|
|
||||||
java.toolchain.languageVersion = JavaLanguageVersion.of(16)
|
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
mappings channel: 'official', version: minecraft_version
|
mappings channel: 'official', version: minecraft_version
|
||||||
|
|
||||||
|
|
@ -78,7 +76,6 @@ jar {
|
||||||
from project(":Common").sourceSets.main.output
|
from project(":Common").sourceSets.main.output
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
jar.finalizedBy('reobfJar')
|
jar.finalizedBy('reobfJar')
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@ subprojects {
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
|
|
||||||
|
java.toolchain.languageVersion = JavaLanguageVersion.of(16)
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes([
|
attributes([
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user