From d4a451a75ddc7f66e87f72654d9fbfde613f5490 Mon Sep 17 00:00:00 2001 From: Lilly <46890129+RainbowDashLabs@users.noreply.github.com> Date: Mon, 21 Aug 2023 15:37:21 +0200 Subject: [PATCH] Refactor build.gradle.kts to directly configure 'indra' settings The 'indra' settings within the build.gradle.kts file has been refactored to remove usage of the 'configureIndra' function and instead directly defining the configuration within the 'indra' block. This change simplifies the build script, making it easier to read and maintain. --- build.gradle.kts | 54 ++++++++++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 29 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index b90ae7f1..08bf008d 100755 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -59,7 +59,31 @@ allprojects { } indra { - configureIndra(this) + javaVersions { + target(17) + testWith(17) + } + + github("eldoriarpg", "jackson-bukkit") { + ci(true) + } + + lgpl3OrLaterLicense() + + signWithKeyFromPrefixedProperties("rainbowdashlabs") + + configurePublications { + pom { + developers { + developer { + id.set("rainbowdashlabs") + name.set("Florian Fülling") + email.set("mail@chojo.dev") + url.set("https://github.com/rainbowdashlabs") + } + } + } + } } spotless { @@ -91,34 +115,6 @@ allprojects { } } -fun configureIndra(extension: IndraExtension) { - extension.javaVersions { - target(17) - testWith(17) - } - - extension.github("eldoriarpg", "jackson-bukkit") { - ci(true) - } - - extension.lgpl3OrLaterLicense() - - extension.signWithKeyFromPrefixedProperties("rainbowdashlabs") - - extension.configurePublications { - pom { - developers { - developer { - id.set("rainbowdashlabs") - name.set("Florian Fülling") - email.set("mail@chojo.dev") - url.set("https://github.com/rainbowdashlabs") - } - } - } - } -} - indraSonatype { useAlternateSonatypeOSSHost("s01") }