Skip to content

Commit

Permalink
Add support for java 11 builds in jitpack (facebook#2499)
Browse files Browse the repository at this point in the history
  • Loading branch information
kageiit authored Jul 20, 2020
1 parent 0aeb8be commit 0299f0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ You must be using Java 8 or 11 for this to compile successfully. If you see comp

Pre-built binaries of buck for any buck `sha` can be downloaded from `https://jitpack.io/com/github/facebook/buck/<sha>/buck-<sha>.pex`. The very first time a version of buck is requested, it is built via [jitpack](https://jitpack.io/). As a result, it could take a few minutes for this initial binary to become available. Every subsequent request will just serve the built artifact directly. This functionality is available for any fork of buck as well, so you can fetch `https://jitpack.io/com/github/<github-user-or-org>/buck/<sha>/buck-<sha>.pex`

For buck binaries built for JDK 11, modify end of the url to `buck-<sha>-java11.pex`.

Feature Deprecation
-------------------

Expand Down
5 changes: 5 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ install:
- PEX=$(bin/buck build buck --show-output | awk '{print $2}')
- SHA=$(git rev-parse HEAD)
- mvn install:install-file -Dfile="$PEX" -DgroupId="$GROUP" -DartifactId="$ARTIFACT" -Dversion="$SHA" -Dpackaging="pex" -DgeneratePom=true
- export JAVA_HOME="/usr/lib/jvm/jdk-11"
- export PATH="/usr/lib/jvm/jdk-11:$PATH"
- ant clean && ant
- JAVA11_PEX=$(bin/buck build --config java.target_level=11 --config java.source_level=11 buck --show-output | awk '{print $2}')
- mvn install:install-file -Dfile="$JAVA11_PEX" -DgroupId="$GROUP" -DartifactId="$ARTIFACT" -Dversion="$SHA" -Dclassifier="java11" -Dpackaging="pex" -DgeneratePom=true

0 comments on commit 0299f0f

Please sign in to comment.