diff options
| author | 2023-03-27 11:05:42 +0100 | |
|---|---|---|
| committer | 2023-03-27 11:05:42 +0100 | |
| commit | 3935c0f71dbd07317861c521502721bd9c773735 (patch) | |
| tree | 7b6785084a79483b555df45d7c1ca3acd1393231 /build.gradle | |
| parent | 1.19.4 (diff) | |
Update build script to support Gradle 9 / fix deprecations added in 8.2 (#244)
* Update build script to support Gradle 9
* Another fix
* Fix
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle index 89308cb..5af2ddd 100644 --- a/build.gradle +++ b/build.gradle @@ -3,10 +3,6 @@ plugins { id 'maven-publish' } -sourceCompatibility = JavaVersion.VERSION_17 -targetCompatibility = JavaVersion.VERSION_17 - -archivesBaseName = project.archives_base_name version = project.mod_version group = project.maven_group @@ -33,6 +29,10 @@ dependencies { // modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}" } +base { + archivesName = project.archives_base_name +} + processResources { inputs.property "version", project.version @@ -51,11 +51,14 @@ java { // if it is present. // If you remove this line, sources will not be generated. withSourcesJar() + + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } jar { from("LICENSE") { - rename { "${it}_${project.archivesBaseName}"} + rename { "${it}_${base.archivesName.get()}"} } } |
