From 92f637fde3e1cbeda9dd1f6a01423da22a7ce202 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 8 Nov 2024 20:48:52 +0100 Subject: [PATCH] =?utf8?q?=F0=9F=92=9A=20Remove=20some=20warnings,=20creat?= =?utf8?q?e=20source=20set=20separately?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- build.gradle | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) 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) } -- 2.7.4