Skip to content

Commit

Permalink
Merge pull request #50 from bazelbuild:comius-patch-2
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 368892247
Change-Id: Ieb0abdf3497a7bb193816c68eada06a8d3e1107f
  • Loading branch information
copybara-github committed Apr 16, 2021
2 parents ff11ae1 + cdb84b6 commit 18a20b0
Showing 1 changed file with 7 additions and 47 deletions.
54 changes: 7 additions & 47 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,60 +9,20 @@ incrementally to this repository.
# Upgrade a Bazel project to use custom java_tools version

To use a specific java_tools release in your Bazel project please add the `http_archive`
definitions in your WORKSPACE file and set the options `--java_toolchain` and/or
`--host_java_toolchain` accordingly. All java_tools releases can be found under
https://github.com/bazelbuild/java_tools/releases.
definitions in your WORKSPACE file.

For example to use java_tools_javac11-v6.0 you can add the following to the WORKSPACE
file:
For Bazel versions above 4.0.0, use java_tools releases >= v11. No additional options are needed.

```
http_archive(
name = "remote_java_tools_linux",
sha256 = "37acb8380b1dd6c31fd27a19bf3da821c9b02ee93c6163fce36f070a806516b5",
urls = [
"https://mirror.bazel.build/bazel_java_tools/releases/javac11/v6.0/java_tools_javac11_linux-v6.0.zip",
"https://github.com/bazelbuild/java_tools/releases/download/javac11-v6.0/java_tools_javac11_linux-v6.0.zip",
],
)
http_archive(
name = "remote_java_tools_windows",
sha256 = "384e138ca58842ea563fb7efbe0cb9c5c381bd4de1f6a31f0256823325f81ccc",
urls = [
"https://mirror.bazel.build/bazel_java_tools/releases/javac11/v6.0/java_tools_javac11_windows-v6.0.zip",
"https://github.com/bazelbuild/java_tools/releases/download/javac11-v6.0/java_tools_javac11_windows-v6.0.zip",
],
)
http_archive(
name = "remote_java_tools_darwin",
sha256 = "5a9f320c33424262e505151dd5c6903e36678a0f0bbdaae67bcf07f41d8c7cf3",
urls = [
"https://mirror.bazel.build/bazel_java_tools/releases/javac11/v6.0/java_tools_javac11_darwin-v6.0.zip",
"https://github.com/bazelbuild/java_tools/releases/download/javac11-v6.0/java_tools_javac11_darwin-v6.0.zip",
],
)
```
For Bazel versions <= 4.0.0 use java_tools releases <= v10 and set the options `--java_toolchain` and/or
`--host_java_toolchain` accordingly.

and set the command line options according to the OS:
All java_tools releases can be found under https://github.com/bazelbuild/java_tools/releases.

```
--java_toolchain=@remote_java_tools_linux//:toolchain \
--host_java_toolchain=@remote_java_tools_linux//:toolchain
```

# Releases

The releases can be found under [java_tools/releases](https://github.com/bazelbuild/java_tools/releases)
starting with java_tools javac11 v4.0.
The releases can be found under [java_tools/releases](https://github.com/bazelbuild/java_tools/releases).
For previous releases see the issues marked with
[the release label](https://github.com/bazelbuild/java_tools/issues/15).
[the release label](https://github.com/bazelbuild/java_tools/issues?q=label%3Arelease/15).

If you're interested in the release process please see [docs/release.md](docs/release.md)

# Release Schedule

A new `java_tools` for the javac version used by bazel is released monthly.
The first RC should be cut at least 7 days before the bazel release, around the
25th day of the month.

See [upcoming scheduled releases](https://github.com/bazelbuild/java_tools/issues?q=is%3Aopen+is%3Aissue+label%3Arelease).

0 comments on commit 18a20b0

Please sign in to comment.