GitXplorerGitXplorer
S

ArtifactoryPublish

public
12 stars
3 forks
8 issues

Commits

List of commits on branch master.
Verified
7ace19fce65d282163bd0830eb8850aaf521047f

Merge pull request #41 from StefMa/apply_androidartifacts

SStefMa committed 6 years ago
Unverified
7af99e4ac4036d456cf9af1ecbf342b26e9cab35

Increase no_otput_timeout

SStefMa committed 6 years ago
Unverified
fd26e9bd6c98f73abd4f580909a205c30d8aa71f

Update README

SStefMa committed 6 years ago
Unverified
ed2f07697d8e89fda14ba64296c5054ae5a091cc

Fix license issue

SStefMa committed 6 years ago
Unverified
b44585025e16b6f61bc27e0efa2ef052cc56e7d3

Apply artifacts plugin by ourself

SStefMa committed 6 years ago
Verified
523d71dab9395dcd6103a25b54654367552bab6d

Merge pull request #39 from StefMa/react_on_androidartifacts

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