Skip to content

Latest commit

 

History

History
72 lines (44 loc) · 1.48 KB

DEVELOPMENT.md

File metadata and controls

72 lines (44 loc) · 1.48 KB

Development

  1. Clone the project
git clone GITURL 
  1. Verify your setup works, run the tests,
./gradlew clean check

Installing this plugin to your local repo (so you can use it in test projects)

  1. 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
  1. 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()
    }
}
  1. 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"
}


  1. 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

Use the plugin in a test project

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.