💄 Make section headers sticky
[rhynodge.git] / build.gradle
index c25226b..20219b8 100644 (file)
@@ -56,17 +56,18 @@ dependencies {
 
     testImplementation group: "junit", name: "junit", version: "4.13.2"
     testImplementation group: "org.hamcrest", name: "hamcrest-library", version: "1.3"
-    testImplementation group: "org.mockito", name: "mockito-core", version: "1.9.5"
+    testImplementation group: "org.mockito", name: "mockito-core", version: "5.11.0"
 }
 
 task fatJar(type: Jar) {
-    baseName = project.name + "-all"
+    archiveBaseName.set(project.name + "-all")
     manifest {
         attributes(
                 "Main-Class": "net.pterodactylus.rhynodge.engine.Starter"
         )
     }
-    from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
+    duplicatesStrategy = DuplicatesStrategy.INCLUDE
+    from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
     from { sourceSets.generated.resources.srcDirs }
     with jar
     dependsOn test
@@ -88,6 +89,9 @@ task createVersion() {
     processResources.dependsOn(createVersion)
 }
 
+tasks.named("processGeneratedResources") {
+    duplicatesStrategy = DuplicatesStrategy.INCLUDE
+}
 
 import org.ajoberstar.grgit.Grgit
 createVersion {