👷 Update Gradle to 8.6
[rhynodge.git] / build.gradle
index 46f822d..69fff10 100644 (file)
@@ -60,12 +60,13 @@ dependencies {
 }
 
 task fatJar(type: Jar) {
-    baseName = project.name + "-all"
+    archiveBaseName.set(project.name + "-all")
     manifest {
         attributes(
                 "Main-Class": "net.pterodactylus.rhynodge.engine.Starter"
         )
     }
+    duplicatesStrategy = DuplicatesStrategy.INCLUDE
     from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
     from { sourceSets.generated.resources.srcDirs }
     with jar
@@ -88,6 +89,9 @@ task createVersion() {
     processResources.dependsOn(createVersion)
 }
 
+tasks.named("processGeneratedResources") {
+    duplicatesStrategy = DuplicatesStrategy.INCLUDE
+}
 
 import org.ajoberstar.grgit.Grgit
 createVersion {