Skip to content

A simplification of the gradle publish plugin. This is a thin wrapper around the official plugin-publish.

License

Notifications You must be signed in to change notification settings

Zoltu/Gradle.Plugin.SimpleGradlePluginPublish

Repository files navigation

Build status

Description

A simplification of the gradle publish plugin. This is a thin wrapper around the official plugin-publish. For general information about publishing plugins to the gradle plugin repository, check out the official instructions, just replace step 4 with the usage instructions below.

Differences between this and the official plugin:

  • This plugin allows you to provide your gradle publish credentials via any mechanism you desire.
  • This plugin doesn't require you to have a tripply nested section for plugin ID and Display Name.
  • This plugin doesn't require you provide two URLs that are often the same (VCS and Website).
  • The official plugin allows you to publish multiple plugins from a single build script.
  • The officila plugin allows you to have a separate website and VCS link.

Usage

  1. Apply the plugin per the instructions here

  2. Add a block like the following to your build.gradle:

    simpleGradlePluginPublishConfiguration {
    	gradlePublishKey = System.getenv('GRADLE_PUBLISH_KEY')
    	gradlePublishSecret = System.getenv('GRADLE_PUBLISH_SECRET')
    	vcsUrl = 'https://github.com/Me/MyRepo'
    	id = 'namespace.name'
    	displayName = 'An unconstrained string.'
    	description = 'A long unconstrained string.'
    	tags = ['foo', 'bar', 'baz']
    }
  3. Execute the publishPlugins task.

About

A simplification of the gradle publish plugin. This is a thin wrapper around the official plugin-publish.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages