Posts

Step-2-b: Tag Github And Publish To Local

Image
Step-2-b: Tag Github And Publish To Local 1. Just delete generated repo artifacts in local. Maheshs-MBP-2:repository maheshrajannan$ pwd /Users/maheshrajannan/.m2/repository Maheshs-MBP-2:repository maheshrajannan$ rm -fr io 2. Set release version and publish Maheshs-MBP-2:gradle-release-demo maheshrajannan$ pwd /Users/maheshrajannan/git/gradle-release-demo Maheshs-MBP-2:gradle-release-demo maheshrajannan$ ./gradlew -Prelease.version=0.8.0 publishToMavenLocal 3.Observe the version numbers change. 4. Just observe the tags in github. 5. What just happened here ? The gradle plugins we applied tagged the Github repo and then published the artifact to maven local. The artifact is named as v0.8.0 and the corresponding source code is tagged. 6. You can create an other tag by " ./gradlew -info final publishToMavenLocal "  7. Check the local jars. <--Previous Next-->

Step-3: Publish To Bin Tray

Image
Step-3: Publish To Bin Tray Publish From Local To BinTray Steps To Follow 1. Now change the git branch to 3-publish. 2. Sign up for  bintray . 3. Create Repo-artifactory and organization in bin tray. 4. Generate the keys in bintray for publishing. Enter password, click submit, keys will be generated and store it safe. 5. Set the keys as environment variables in your local. export BINTRAY_USER=maheshrajannan export BINTRAY_KEY= 6. Get,set, publish. ./gradlew -Prelease.useLastTag=true final 7. Check it in bin tray. 8. Do publish to local and see the version. ./gradlew -Prelease.useLastTag=true publishToMavenLocal 9. Now just do final to see the version numbers increment in github and bintray. ./gradlew final <--Previous Next-->

Step-4: Continuously Integrate

Image
Step-4: Continuously Integrate With Circle CI Continuously Integrate With Circle CI Steps : 1. Create account in circle ci. 2. Change the default branch in github repo to "4-automate. 3. Switch branch to 4-automate. 4. Scan this particular repo in Circle CI. 5. Create a Circle CI job, to trigger on commit. 6. Configure bin tray keys in circle ci environment. 7. Make a change and push and see the build automatically trigger. 8. Create a release tag in github. Circle CI will use the release in github and publish new release artifact to bintray. <--Previous First-->