group = "net.pterodactylus"
version = "0.1"
+sourceSets {
+ generated
+}
+
repositories {
mavenCentral()
}
testImplementation group: "com.spotify", name: "hamcrest-jackson", version: "1.3.2"
}
-task fatJar(type: Jar) {
+tasks.register('fatJar', Jar) {
archiveBaseName.set(project.name + "-all")
manifest {
attributes(
jvmArgs += "--add-opens=java.base/java.util=ALL-UNNAMED"
}
-task createVersion() {
- sourceSets {
- generated {
- resources {
- srcDir "src/generated/resources"
- }
- }
- }
+tasks.register('createVersion') {
processResources.dependsOn(createVersion)
}