GitXplorerGitXplorer
S

ArtifactoryPublish

public
12 stars
3 forks
8 issues

Commits

List of commits on branch master.
Verified
89108052a1dc9400c0110344a250c52eefe0ebfd

Merge pull request #43 from pgreze/patch-1

SStefMa committed 4 years ago
Verified
a190718c9b3498e3a19f3624cd1a301607c64f91

Add an example for non android modules

ppgreze committed 4 years ago
Unverified
abe0f90181a608ce7d3ff2249daf42bfe7eff4de

Update version

SStefMa committed 5 years ago
Verified
13477e0430016fddca143ff2c2697c1e086ed489

Merge pull request #42 from Syex/patch-1

SStefMa committed 5 years ago
Verified
46ef87eabfa91709ef8f5f7ab5cf450d8562a88b

Update JFrog

SSyex committed 5 years ago
Unverified
826f376cc2db1b8efcd0e6d1c1fd84d1944022f7

Bump version

SStefMa committed 6 years ago

README

The README file for this repository.

CircleCI License Download

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.

How to use it

Apply the plugin

Put this into your project build.gradle:

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:

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

Publish

To publish your library to artifactory simply run

./gradlew clean build artifactoryPublish -PartifactoryUser=ARTIFACTORY_USERNAME -PartifactoryKey=ARTIFACTORY_KEY