diff --git a/build.gradle.kts b/build.gradle.kts index a1c7e1d..0d120d6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,45 +5,6 @@ plugins { //application } -data class PublicationRepo( - val name: String, - val usernameFrom: List, - val passwordFrom: List, - val snapshotRepo: String, - val releaseRepo: String, - val snapshotPredicate: (String) -> Boolean = { it.endsWith("-SNAPSHOT") } -) - -val hasPublication: String by rootProject -val publicationSigning: String by rootProject -val publicationRepo: PublicationRepo? = if (hasPublication.toBoolean()) PublicationRepo( - name = "OSSRH", - usernameFrom = listOf("OSSRH_USERNAME", "ossrhUsername"), - passwordFrom = listOf("OSSRH_PASSWORD", "ossrhPassword"), - snapshotRepo = "https://s01.oss.sonatype.org/content/repositories/snapshots/", - releaseRepo = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" -) else null - -data class Organization( - val name: String, - val url: String -) - -data class Developer( - val id: String, - val name: String? = null, - val email: String? = null, - val url: String? = null, - val organization: Organization? = projOrg, - val roles: Set? = null, - val timezone: String? = null, - val properties: Map? = null -) - -val projDevelopers = arrayOf( - Developer("example") -) - val hasJavadocJar: String by rootProject val hasSourcesJar: String by rootProject @@ -69,6 +30,45 @@ val jdkEarlyAccessDoc: String? by rootProject val targetJavaVersion = jdkVersion.toInt() +val projDevelopers = arrayOf( + Developer("example") +) + +data class Organization( + val name: String, + val url: String +) + +data class Developer( + val id: String, + val name: String? = null, + val email: String? = null, + val url: String? = null, + val organization: Organization? = projOrg, + val roles: Set? = null, + val timezone: String? = null, + val properties: Map? = null +) + +data class PublicationRepo( + val name: String, + val usernameFrom: List, + val passwordFrom: List, + val snapshotRepo: String, + val releaseRepo: String, + val snapshotPredicate: (String) -> Boolean = { it.endsWith("-SNAPSHOT") } +) + +val hasPublication: String by rootProject +val publicationSigning: String by rootProject +val publicationRepo: PublicationRepo? = if (hasPublication.toBoolean()) PublicationRepo( + name = "OSSRH", + usernameFrom = listOf("OSSRH_USERNAME", "ossrhUsername"), + passwordFrom = listOf("OSSRH_PASSWORD", "ossrhPassword"), + snapshotRepo = "https://s01.oss.sonatype.org/content/repositories/snapshots/", + releaseRepo = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" +) else null + group = projGroupId version = projVersion