Skip to content

Latest commit

 

History

History
92 lines (63 loc) · 3.42 KB

File metadata and controls

92 lines (63 loc) · 3.42 KB

Table of Contents

Development

Gradle docs on writing plugins.

Publish to mavenLocal

❯ gr publishToMavenLocal

BUILD SUCCESSFUL in 5s
11 actionable tasks: 8 executed, 3 up-to-date

Add to settings.gradle file in client project and change the version id 'dev.poolside.gradle.semantic-version' version '1.0.0'

pluginManagement {
  repositories {
    mavenLocal()
  }
}

Gradle Plugin Publishing

It's easier to set up credentials via the login task then doing it manually in the gradle.properties file

❯ gr login

Then 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-date

References

Information that I found helpful when writing this plugin

General

pom.withXml

Editing groovy dom nodes/nodelists/etc is a pain in kotlin. I found these links helpful.