All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rsystems.gradle.plugins.lis-gradle-common-plugins.0.1.2.source-code.com.link-intersystems.gradle.maven-central-project.gradle.kts Maven / Gradle / Ivy

plugins {
    id("io.github.gradle-nexus.publish-plugin")
}

nexusPublishing {
    repositories {
        sonatype {
            nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
            snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
        }
    }
}

allprojects {
    val closeAndRelease: String? by this
    val closeAndReleaseEnabled = closeAndRelease ?: "true"

    if (closeAndReleaseEnabled == "true") {
        val closeAndReleaseStagingRepositoriesTask = tasks.findByName("closeAndReleaseStagingRepositories")
        if(closeAndReleaseStagingRepositoriesTask != null) {
            tasks.findByName("afterPublish")?.dependsOn(closeAndReleaseStagingRepositoriesTask)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy