https://github.com/clashsoft/simple-publish
A Gradle plugin that simplifies publishing to Maven and Bintray.
https://github.com/clashsoft/simple-publish
Last synced: 2 months ago
JSON representation
A Gradle plugin that simplifies publishing to Maven and Bintray.
- Host: GitHub
- URL: https://github.com/clashsoft/simple-publish
- Owner: Clashsoft
- License: bsd-3-clause
- Created: 2019-03-13T14:13:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-13T09:28:32.000Z (over 5 years ago)
- Last Synced: 2025-02-10T22:44:13.481Z (4 months ago)
- Language: Groovy
- Homepage:
- Size: 143 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Simple-Publish
[](https://travis-ci.org/Clashsoft/Simple-Publish)
[](https://plugins.gradle.org/plugin/de.clashsoft.simple-publish)A Gradle plugin that simplifies publishing to Maven and Bintray.
## Usage
The plugin is available on the [Gradle Plugin Portal](https://plugins.gradle.org/plugin/de.clashsoft.simple-publish)
and can be installed via the `plugins` DSL in `build.gradle`:```groovy
plugins {
// ...
id 'java'
id 'maven-publish'
id 'com.jfrog.bintray' version '1.8.4'
id 'de.clashsoft.simple-publish' version '0.6.0'
// ...
}// ...
```See [config.gradle](src/functionalTest/resources/config.gradle) for a configuration example.
To publish to Bintray, you need to configure your username and API key.
If you have a custom GPG key in your profile, you also need to set the passphrase.
The properties should be placed in `~/.gradle/gradle.properties`:```
# ...
bintray.user=jdoe
bintray.key=a4Kn2HZn1Ub8B
bintray.gpg.passphrase=p@55w0rD
```Alternatively, the plugin looks can read these from environment variables:
```
BINTRAY_USER=jdoe
BINTRAY_KEY=a4Kn2HZn1Ub8B
BINTRAY_GPG_PASSPHRASE=p@55w0rD
```Don't forget to set the project name in `settings.gradle`:
```groovy
rootProject.name = 'test'
```After configuring the Bintray repository, the plugin and the properties, you can upload with the `bintrayUpload` task.
Don't forget to publish your uploaded artifacts on the Bintray website!