slugstack-publishing-plugin

slugstack publishing plugin

License

License

GroupId

GroupId

io.slugstack.oss
ArtifactId

ArtifactId

slugstack-publishing-plugin
Last Version

Last Version

0.1.2-rc.2
Release Date

Release Date

Type

Type

pom.sha512
Description

Description

slugstack-publishing-plugin
slugstack publishing plugin

Download slugstack-publishing-plugin

Dependencies

runtime (6)

Group / Artifact Type Version
io.github.gradle-nexus » publish-plugin jar 1.0.0
com.netflix.nebula : gradle-contacts-plugin jar 5.1.0
com.netflix.nebula : gradle-info-plugin jar 9.3.0
com.netflix.nebula : nebula-release-plugin jar 15.3.1
com.netflix.nebula : nebula-publishing-plugin jar 17.3.2
gradle.plugin.com.hierynomus.gradle.plugins » license-gradle-plugin jar 0.15.0

Project Modules

There are no modules declared in this project.

slugstack-publishing-plugin

uploads snapshot, candidate, and final artifacts with opinionated defaults.

what this plugin applies

check the build.gradle.kts section of dependencies, or check the main *PublishingPlugin.groovy to see what will be applied.

publishing to maven central snapshots

assuming the plugin has been published to maven central snapshots, in the consuming project, update the settings.gradle.kts with

pluginManagement {
    resolutionStrategy {
        eachPlugin {
            if (requested.id.namespace == "io.slugstack") {
                useModule("io.slugstack.oss:slugstack-publishing-plugin:${requested.version}")
            }
        }
    }
    repositories {
        gradlePluginPortal()
        mavenCentral()
        maven {
            url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
        }
        mavenLocal()
    }
}

and build.gradle.kts with

plugins {
    id("io.slugstack.publishing-plugin") version "0.1.0-SNAPSHOT"
}

publishing to local

publish this plugin to maven local:

./gradlew publishToMavenLocal

and then in the consuming project, update the settings.gradle.kts with

pluginManagement {
    repositories {
        mavenLocal()
        gradlePluginPortal()
    }
}

and the build.gradle.kts with

buildscript {
    repositories {
        mavenLocal()
        gradlePluginPortal()
    }

    dependencies {
        classpath("io.slugstack.oss:slugstack-publishing-plugin:latest.release")
    }
}

apply(plugin = "io.slugstack.publishing-plugin")
io.slugstack.oss
occasional oss contributions and mini project holdings under @aegershman

Versions

Version
0.1.2-rc.2
0.1.2-rc.1
0.1.1
0.1.0
0.0.4
0.0.3
0.0.2