Skip to content

Commit

Permalink
Refactor build.gradle.kts to directly configure 'indra' settings
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rainbowdashlabs committed Aug 21, 2023
1 parent 408e4c4 commit d4a451a
Showing 1 changed file with 25 additions and 29 deletions.
54 changes: 25 additions & 29 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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("[email protected]")
url.set("https://github.com/rainbowdashlabs")
}
}
}
}
}

spotless {
Expand Down Expand Up @@ -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("[email protected]")
url.set("https://github.com/rainbowdashlabs")
}
}
}
}
}

indraSonatype {
useAlternateSonatypeOSSHost("s01")
}
Expand Down

0 comments on commit d4a451a

Please sign in to comment.