Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 1.1 KB

BUILD_INSTRUCTION.md

File metadata and controls

59 lines (44 loc) · 1.1 KB

Build Instruction using Gradle

Guide for Twitter4J Developers / Contributors using Gradle

  • makes jar, javadoc.jar and sources.jar
$ ./gradlew clean build -x test
  • mavenLocal : deploys to ~/.m2/repository/org/twitter4j/.
$ ./gradlew publishToMavenLocal

Update Version

Modify version name

  • update versionName in build.gradle
  • update VERSION in Version.java

Release

  • Commit it
$ git add build.gradle twitter4j-core/src/main/java/twitter4j/Version.java
$ git commit "bump to vX.Y.Z"
  • git tag
$ git tag vX.Y.Z
$ git push --tags
  • Release to github.io
$ mkdir release_to_github_io
$ cd release_to_github_io
$ git clone git@github.com:takke/takke.github.io.git
$ cd ../

// generate artifacts to `release_to_github_io/takke.github.io.git/maven/org/twitter4j/...`
$ ./gradlew clean publish -x test

$ cd release_to_github_io/takke.github.io.git/
$ git status
$ git add maven
$ git status
$ git commit -m "twitter4j vX.Y.Z"
$ git push