Fix various Gradle deprecations

This commit is contained in:
Juuz
2023-10-17 12:29:49 +03:00
parent 7d9e67f435
commit e6c9f94c24
5 changed files with 14 additions and 6 deletions

View File

@@ -28,7 +28,10 @@ allprojects {
apply plugin: "architectury-plugin"
apply plugin: "maven-publish"
archivesBaseName = rootProject.archives_base_name
base {
archivesName = rootProject.archives_base_name
}
version = rootProject.mod_version
group = rootProject.maven_group

View File

@@ -46,7 +46,7 @@ shadowJar {
exclude "architectury.common.json"
configurations = [project.configurations.shadowCommon]
classifier "dev-shadow"
archiveClassifier = "dev-shadow"
}
remapJar {

View File

@@ -41,7 +41,7 @@ shadowJar {
exclude "architectury.common.json"
configurations = [project.configurations.shadowCommon]
classifier "dev-shadow"
archiveClassifier = "dev-shadow"
}
remapJar {

View File

@@ -51,7 +51,7 @@ shadowJar {
exclude "architectury.common.json"
configurations = [project.configurations.shadowCommon]
classifier "dev-shadow"
archiveClassifier = "dev-shadow"
}
remapJar {

View File

@@ -3,12 +3,17 @@ plugins {
id "maven-publish"
}
sourceCompatibility = targetCompatibility = JavaVersion.@JAVA_VERSION@
base {
archivesName = project.archives_base_name
}
archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
java {
sourceCompatibility = targetCompatibility = JavaVersion.@JAVA_VERSION@
}
loom {
// use this if you are using the official mojang mappings
// and want loom to stop warning you about their license