From: David ‘Bombe’ Roden Date: Fri, 8 Nov 2024 19:48:52 +0000 (+0100) Subject: 💚 Remove some warnings, create source set separately X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=92f637fde3e1cbeda9dd1f6a01423da22a7ce202;p=rhynodge.git 💚 Remove some warnings, create source set separately --- diff --git a/build.gradle b/build.gradle index 73f1df8..a9dfb0d 100644 --- a/build.gradle +++ b/build.gradle @@ -36,6 +36,10 @@ idea { group = "net.pterodactylus" version = "0.1" +sourceSets { + generated +} + repositories { mavenCentral() } @@ -60,7 +64,7 @@ dependencies { 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( @@ -79,14 +83,7 @@ tasks.named('test') { jvmArgs += "--add-opens=java.base/java.util=ALL-UNNAMED" } -task createVersion() { - sourceSets { - generated { - resources { - srcDir "src/generated/resources" - } - } - } +tasks.register('createVersion') { processResources.dependsOn(createVersion) }