Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stefma/artifactorypublish
A super easy way to release Android and Java artifacts to artifactory.
https://github.com/stefma/artifactorypublish
artifactory artifactory-oss maven maven-plugin
Last synced: 25 days ago
JSON representation
A super easy way to release Android and Java artifacts to artifactory.
- Host: GitHub
- URL: https://github.com/stefma/artifactorypublish
- Owner: StefMa
- License: mit
- Created: 2017-05-22T11:53:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-04T13:15:57.000Z (over 3 years ago)
- Last Synced: 2024-05-01T14:26:39.504Z (6 months ago)
- Topics: artifactory, artifactory-oss, maven, maven-plugin
- Language: Kotlin
- Homepage:
- Size: 304 KB
- Stars: 12
- Watchers: 4
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![CircleCI](https://circleci.com/gh/StefMa/ArtifactoryPublish.svg?style=svg)](https://circleci.com/gh/StefMa/ArtifactoryPublish)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![Download](https://api.bintray.com/packages/stefma/maven/ArtifactoryPublish/images/download.svg) ](https://bintray.com/stefma/maven/ArtifactoryPublish/_latestVersion)# ArtifactoryPublish
A super easy way to release Android and Java artifacts to Artifactory.## Description
This is a helper to simplify the configuration of the [Artifactory Gradle plugin](https://www.jfrog.com/confluence/display/RTF/Gradle+Artifactory+Plugin).## How to use it
### Apply the plugin
Put this into your **project** `build.gradle`:
```groovy
buildscript {
repositories {
jcenter()
google()
}
dependencies {
// The current version can be found here https://git.io/vdsOs
classpath "guru.stefma.artifactorypublish:artifactorypublish:$artifactoryPublishVersion"
}
}
```Then you are able to apply the `guru.stefma.artifactorypublish` plugin:
```groovy
apply plugin: "com.android.library"
apply plugin: "guru.stefma.artifactorypublish"version = "0.0.1"
group = "guru.stefma.artifactorypublish"// For Java/Kotlin modules
javaArtifact {
artifactId = "my-java-module"
}
// or for Android modules
androidArtifact {
artifactId = "my-android-module"
}artifactoryPublish {
artifactoryRepo = "example-repo-local"
artifactoryUrl = "http://localhost:8081/artifactory"
publications = ["releaseAar"] // <1>
}
```
* **//1:** To see a list of **all available publications** just run the `androidArtifactGeneratedPublications` task.### Configuration
There are several configuration options. The following table give you a overview about all of them:| Property | Description | Mandatory | Property finder* |
|-|-|-|-|
| artifactoryUrl | Url to your artifactory | ✅ | ❌ |
| artifactoryRepo | The Repository name | ✅ | ❌ |
| artifactoryUser | Artifactory username | ✅ | ✅ |
| artifactoryKey | API Key or Password | ✅ | ✅ |
| publications | The publications you want to publish | ✅ | ❌ |> *can be added via [Gradle properties](https://docs.gradle.org/current/userguide/build_environment.html)
### Publish
To publish your library to artifactory simply run
```
./gradlew clean build artifactoryPublish -PartifactoryUser=ARTIFACTORY_USERNAME -PartifactoryKey=ARTIFACTORY_KEY
```