Table of Contents
Gradle docs on writing plugins.
Publish to mavenLocal
❯ gr publishToMavenLocal
BUILD SUCCESSFUL in 5s
11 actionable tasks: 8 executed, 3 up-to-dateAdd to settings.gradle file in client project and change the version id 'dev.poolside.gradle.semantic-version' version '1.0.0'
pluginManagement {
repositories {
mavenLocal()
}
}It's easier to set up credentials via the login task then doing it manually in the gradle.properties file
❯ gr loginThen run the publishing task:
❯ gr publishPlugins
> Task :publishPlugins
Publishing plugin dev.poolside.gradle.semantic-version version 0.1.0
Thank you. Your new plugin dev.poolside.gradle.semantic-version has been submitted for approval by Gradle engineers. The request should be processed within the next few days, at which point you will be contacted via email.
Publishing artifact build/publications/pluginMaven/module.json
Publishing artifact build/publications/pluginMaven/pom-default.xml
Publishing artifact build/libs/semantic-version-plugin-0.1.0.jar
Publishing artifact build/libs/semantic-version-plugin-0.1.0-sources.jar
Publishing artifact build/libs/semantic-version-plugin-0.1.0-javadoc.jar
Activating plugin dev.poolside.gradle.semantic-version version 0.1.0
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 5s
10 actionable tasks: 7 executed, 3 up-to-dateInformation that I found helpful when writing this plugin
Editing groovy dom nodes/nodelists/etc is a pain in kotlin. I found these links helpful.