Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Configure a new fineract-cn-* project to upload artifacts to artifactory

  • in build.gradle:
    1. Check you are on correct branch!

    2. 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/' }
      }
    3. In list of plugins add plugin:

      id "com.jfrog.artifactory" version "4.9.5"

    4. In publishing → publications → projectnamePublification
      replace
        version project.version 
      with: 
        version project.findProperty('externalVersion') ?: project.version


    5. Underheath 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 ('putProjectNameHerePublication')
      }
      }
      }
      artifactoryPublish.dependsOn('clean','publishToMavenLocal')

...