Unverified Commit 3935c0f7 by modmuss50 Committed by GitHub

Update build script to support Gradle 9 / fix deprecations added in 8.2 (#244)

* Update build script to support Gradle 9

* Another fix

* Fix
parent 9b028bdc
...@@ -3,10 +3,6 @@ plugins { ...@@ -3,10 +3,6 @@ plugins {
id 'maven-publish' id 'maven-publish'
} }
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name
version = project.mod_version version = project.mod_version
group = project.maven_group group = project.maven_group
...@@ -33,6 +29,10 @@ dependencies { ...@@ -33,6 +29,10 @@ dependencies {
// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}" // modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
} }
base {
archivesName = project.archives_base_name
}
processResources { processResources {
inputs.property "version", project.version inputs.property "version", project.version
...@@ -51,11 +51,14 @@ java { ...@@ -51,11 +51,14 @@ java {
// if it is present. // if it is present.
// If you remove this line, sources will not be generated. // If you remove this line, sources will not be generated.
withSourcesJar() withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
} }
jar { jar {
from("LICENSE") { from("LICENSE") {
rename { "${it}_${project.archivesBaseName}"} rename { "${it}_${base.archivesName.get()}"}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment