Skip to content

Commit

Permalink
Update build script to support Gradle 9 / fix deprecations added in 8…
Browse files Browse the repository at this point in the history
….2 (#244)

* Update build script to support Gradle 9

* Another fix

* Fix
  • Loading branch information
modmuss50 committed Mar 27, 2023
1 parent 9b028bd commit 3935c0f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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()}"}
}
}

Expand Down

0 comments on commit 3935c0f

Please sign in to comment.