DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
| Code Block |
|---|
repositories {
jcenter()
mavenLocal()
maven {
url 'https://mifos.jfrog.io/mifos/libs-snapshot/'
}
} |
How snapshots are built
...
- in build.gradle:
- If not already, add snapshots repository to list of repositories so it looks like this:
repositories {
jcenter()
mavenLocal()
maven {
url 'https://mifos.jfrog.io/mifos/libs-snapshot/'
}
} - In list of plugins add plugin:
id "com.jfrog.artifactory" version "4.9.5" - In publishing → publications → projectnamePublification
replaceversion project.version
with:version findProperty('releaseTagexternalVersion') ?: findProperty('versionPrefix') + project.version
- Underheath publishing block add instructions for the new plugin:
artifactory {
contextUrl = System.getenv("ARTIFACTORY_URL")
publish {
repository {
repoKey = (findProperty('releaseTag') ? 'libs-release-local' : 'libs-snapshot-local'project.property('artifactoryRepoKey')
username = System.getenv("ARTIFACTORY_USER")
password = System.getenv("ARTIFACTORY_PASSWORD")
}
defaults {
publications ('projectnamePublicationlangPublication')
}
}
}
artifactoryPublish.dependsOn('clean','publishToMavenLocal')
- If not already, add snapshots repository to list of repositories so it looks like this:
...