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

name.remal.gradle_plugins.toolkit.build_logic.publish-maven-central.gradle Maven / Gradle / Ivy

There is a newer version: 0.64.11
Show newest version
if (project.isBuildSrcProject) return

allprojects {
    pluginManager.withPlugin('maven-publish') {
        rootProject.apply plugin: 'io.github.gradle-nexus.publish-plugin'
    }

    pluginManager.withPlugin('io.github.gradle-nexus.publish-plugin') {
        nexusPublishing {
            repositories {
                sonatype()
            }
        }
    }
}


File flagFile = project.layout.buildDirectory.file('publish-maven-central.flag').get().asFile
flagFile.delete()
allprojects {
    pluginManager.withPlugin('io.github.gradle-nexus.publish-plugin') {
        flagFile.parentFile.mkdirs()
        flagFile.text = ''
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy