DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
- in shared.gradle (or if it doesn't exist then 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/' }
} - Underheath jar or publishing block add instructions for the new plugin:
artifactory {
contextUrl = System.getenv("ARTIFACTORY_URL")
publish {
repository {
repoKey = project.findProperty('artifactoryRepoKey')
username = System.getenv("ARTIFACTORY_USER")
password = System.getenv("ARTIFACTORY_PASSWORD")
}
defaults {
publications ('api', 'service', 'bootService') // add projectnamePublification here
}
}
}
artifactoryPublish.dependsOn('clean','publishToMavenLocal')
- If not already, add snapshots repository to list of repositories so it looks like this:
- in every module build.gradle
- In list of plugins add plugin:
id "com.jfrog.artifactory" version "4.9.5" - In publishing → publications → projectnamePublification
replaceversion project.version
with:version project.findProperty('externalVersion') ?: project.version
- In list of plugins add plugin:
- If shared.gradle exists then add to build.gradle (after publishToMavenLocal)
task artifactoryPublish {
group 'all'
dependsOn publishToMavenLocal
dependsOn gradle.includedBuild('api').task(':artifactoryPublish')
dependsOn gradle.includedBuild('library').task(':artifactoryPublish')
dependsOn gradle.includedBuild('test').task(':artifactoryPublish')
// add other modules found in the same file
} - Add travis banner to top of README.md (replace reponame with correct value):
[](https://travis-ci.com/apache/fineract-cn-reponame)
- Add travis.sh (copy-paste from other project that is already included)
- Add .travis.yml - travis-ci.com looks for this file
language: java
sudo: false
jdk:
- openjdk8
install: true
script: "./travis.sh"
env:
global:- BUILD_SNAPSHOTS_BRANCH=develop
- ARTIFACTORY_URL=https://mifos.jfrog.io/mifos
- ARTIFACTORY_USER=travis-ci1
- secure: "see below chapter Encrypt Artifactory password"
...