- Clone the project
git clone GITURL
- Verify your setup works, run the tests,
./gradlew clean check
- In the folder X, install the plugin to your local repository. We are using the official plugins for this as long as this plugin is not published (in the future, we can use this plugin for this also, but for now)
./gradlew publishArtifactToLocalRepo
- Verify that gradle plugins are searched for in your local repo (besides gradlePortal). Note: Gradle demands that the plugin management block is the first block in the settings file.
.settings.gradle.kts
pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
}
}
- Add the plugin to the plugins block in the labproject/testproject build file
.build.gradle.kts
by uncommenting the line
plugins {
id("se.svt.oss.gradle-yapp-publisher") version "x.y.z"
}
- Verify install
Refresh your gradle and you should see tasks yapp publisher. Verify that you can publish this plugin to local repo
./gradlew clean publishArtifactToLocalRepo
Init a gradle project (java/kotlin) with gradle init (or use an existing).
Add the plugin, and repo mavenLocal() to it's build.gradle.
Configure as in the README documentation, just copy the
basic gradle.properties maven_central or alike.