Skip to content

Releases: salesforce/bazel-jdt-java-toolchain

0.1.5

11 Aug 11:42
e624254
Compare
Choose a tag to compare

New Features

  • Added support for computing the list of generated source files during annotation processing
  • Added support for computing list of used dependencies.
  • Jars not listed as direct dependencies no have all their content configured using forbidden access rules
  • Access rule severity is configured using strict dependency check setting from Bazel

Change Log
commit e624254
Author: Gunnar Wagenknecht gwagenknecht@salesforce.com
Date: Fri Aug 11 13:29:49 2023 +0200

Collect generates source as well as dependency information (#15)

* Switch to using the JDT Batch compiler directly, dropping the use of the tool interface.
* Add support for computing list of generated sources during annotation processing.
* Add support for computing list of used dependencies.
* Add support for configuring access rules based on strict dependency checking.

commit bf805f2
Author: Gunnar Wagenknecht gunnar@wagenknecht.org
Date: Sun Jul 23 14:49:36 2023 -0700

ignore examples

commit 070b978
Author: Gunnar Wagenknecht gunnar@wagenknecht.org
Date: Tue May 16 13:57:56 2023 +0200

Next version

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "bazel_jdt_java_toolchain",
    urls = [
        "https://github.com/salesforce/bazel-jdt-java-toolchain/releases/download/0.1.5/rules_jdt-0.1.5.tar.gz",
    ],
    sha256 = "c49e8f394134ea038c37be6e54916095ecee71c0a68aed51ef7e8556f4dfdac1",
)
load("@bazel_jdt_java_toolchain//jdt:repositories.bzl", "rules_jdt_dependencies", "rules_jdt_toolchains")
rules_jdt_dependencies()
rules_jdt_toolchains()

Using the rules

See the source.

0.1.4

16 May 12:38
Compare
Choose a tag to compare

Bug Fix

  • Remove extra error output before the actual compiler output

Change Log
commit 4ded8c0
Author: Gunnar Wagenknecht gunnar@wagenknecht.org
Date: Tue May 16 13:57:03 2023 +0200

Cleanup obsolete code

commit 49bfefb
Author: Gunnar Wagenknecht gunnar@wagenknecht.org
Date: Tue May 16 13:56:25 2023 +0200

Remove extra output

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "bazel_jdt_java_toolchain",
    urls = [
        "https://github.com/salesforce/bazel-jdt-java-toolchain/releases/download/0.1.4/rules_jdt-0.1.4.tar.gz",
    ],
    sha256 = "055e3984b56e2e94a2c04055c97f4772b1d432be8da650bc5afc30c9334d67df",
)
load("@bazel_jdt_java_toolchain//jdt:repositories.bzl", "rules_jdt_dependencies", "rules_jdt_toolchains")
rules_jdt_dependencies()
rules_jdt_toolchains()

Using the rules

See the source.

0.1.3

15 May 18:35
eb51fa3
Compare
Choose a tag to compare

New Features

  • File paths reported for output are now relative to the compile working directory (if possible).

Change Log
commit eb51fa3
Author: Gunnar Wagenknecht gwagenknecht@salesforce.com
Date: Mon May 15 20:22:46 2023 +0200

Work around JDT absolute path issue. (#14)

This is a simple attempt to make paths in the output of the JDT compiler
relative again. Somehow they end up becoming absolute, which breaks IDEs
decided to rely on compiler output parsing for error reporting.

https://github.com/eclipse-jdt/eclipse.jdt.core/discussions/1061

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "bazel_jdt_java_toolchain",
    urls = [
        "https://github.com/salesforce/bazel-jdt-java-toolchain/releases/download/0.1.3/rules_jdt-0.1.3.tar.gz",
    ],
    sha256 = "b170a84a7b213b7a9975cdcda9391612a8642a3695727c8e0f66752aa77eae2e",
)
load("@bazel_jdt_java_toolchain//jdt:repositories.bzl", "rules_jdt_dependencies", "rules_jdt_toolchains")
rules_jdt_dependencies()
rules_jdt_toolchains()

Using the rules

See the source.

0.1.2

24 Mar 18:57
4bd649c
Compare
Choose a tag to compare

Change Log

  • Reverting JDT Bug 552082-Fix the applicability of a no @target annotation type updates, as the behavior is not compatible with JDK 11 and also with latest javac.

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "bazel_jdt_java_toolchain",
    urls = [
        "https://github.com/salesforce/bazel-jdt-java-toolchain/releases/download/0.1.2/rules_jdt-0.1.2.tar.gz",
    ],
    sha256 = "748f82299ae1b259c27060bd7375ddb009b4a41124bed3ebd5294c9a65b2b976",
)
load("@bazel_jdt_java_toolchain//jdt:repositories.bzl", "rules_jdt_dependencies", "rules_jdt_toolchains")
rules_jdt_dependencies()
rules_jdt_toolchains()

Using the rules

See the source.

0.1.1

21 Mar 13:32
5aef9ec
Compare
Choose a tag to compare

Bug Fix

  • Newly added ASM dependencies moved into internal namespace (#10)
  • All dependencies moved into WORKSPACE because they are development only dependencies (#12)

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "bazel_jdt_java_toolchain",
    urls = [
        "https://github.com/salesforce/bazel-jdt-java-toolchain/releases/download/0.1.1/rules_jdt-0.1.1.tar.gz",
    ],
    sha256 = "e2cae6eeaf67c081958742b92190dfa31a9ecb469b1ff1abc7b57f2d18771dda",
)
load("@bazel_jdt_java_toolchain//jdt:repositories.bzl", "rules_jdt_dependencies", "rules_jdt_toolchains")
rules_jdt_dependencies()
rules_jdt_toolchains()

Using the rules

See the source.

0.1.0

20 Mar 06:03
d06e220
Compare
Choose a tag to compare

Bug Fix

  • Add missing ASM dependencies for JaCoCo coverage

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "bazel_jdt_java_toolchain",
    urls = [
        "https://github.com/salesforce/bazel-jdt-java-toolchain/releases/download/0.1.0/rules_jdt-0.1.0.tar.gz",
    ],
    sha256 = "b0a57d0d759119a0b583db4d341315ea8db84319e08e944b153ce80a72e427d5",
)
load("@bazel_jdt_java_toolchain//jdt:repositories.bzl", "rules_jdt_dependencies", "rules_jdt_toolchains")
rules_jdt_dependencies()
rules_jdt_toolchains()

Using the rules

See the source.

0.0.9

28 Feb 09:55
Compare
Choose a tag to compare

------------------------ snip ----------------------------
New Features

Incompatible Changes

Change Log
commit 785b208
Author: Gunnar Wagenknecht gunnar@wagenknecht.org
Date: Sun Mar 27 08:09:12 2022 +0200

Set versions

commit 609aa68
Author: Gunnar Wagenknecht gunnar@wagenknecht.org
Date: Sat Mar 26 17:58:09 2022 +0100

Fetch tags

commit d5ae90b
Author: Gunnar Wagenknecht gunnar@wagenknecht.org
Date: Sat Mar 26 16:53:30 2022 +0100

Next development version

commit c45d930
Author: Gunnar Wagenknecht gunnar@wagenknecht.org
Date: Sat Mar 26 16:52:46 2022 +0100

Fix link

commit 5fdd467
Author: Gunnar Wagenknecht gunnar@wagenknecht.org
Date: Sat Mar 26 16:52:10 2022 +0100

Set previous tag for changelog

commit 4ea7a84
Author: Gunnar Wagenknecht gunnar@wagenknecht.org
Date: Sat Mar 26 16:39:27 2022 +0100

Version 0.0.8

commit da05e46
Author: Gunnar Wagenknecht gunnar@wagenknecht.org
Date: Sat Mar 26 16:38:17 2022 +0100

Version 0.0.7

commit 52844f7
Author: Gunnar Wagenknecht gunnar@wagenknecht.org
Date: Sat Mar 26 16:34:24 2022 +0100

Add version name into release artifact

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "bazel_jdt_java_toolchain",
    urls = [
        "https://github.com/salesforce/bazel-jdt-java-toolchain/releases/download/0.0.9/bazel-jdt-java-toolchain-0.0.9.tar.gz",
    ],
    sha256 = "abb65a4f75d8085f0d9eb08a0e8a46e2db179aa5ee145db06428b70d0c789a0d",
)
load("@bazel_jdt_java_toolchain//jdt:repositories.bzl", "rules_jdt_dependencies", "rules_jdt_toolchains")
rules_jdt_dependencies()
rules_jdt_toolchains()

Using the rules

See the source.
------------------------ snip ----------------------------

0.0.6

23 Mar 19:20
17d5fe6
Compare
Choose a tag to compare

New Features*

  • Rich fork of Bazel javac build, which supports reduced classpath compilation and fallback

Incompatible Changes

  • The flag for strict classpath compilation (something not available in Bazel's javac compiler) has been changed to -Xecj_use_direct_deps_only

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "bazel_jdt_java_toolchain",
    urls = [
        "https://github.com/salesforce/bazel-jdt-java-toolchain/releases/download/0.0.6/rules_jdt.tar.gz",
    ],
    sha256 = "79f637e03f176c69b5d826782961c67bcb9463d2853878ad31441d27a198bd59",
)
load("@bazel_jdt_java_toolchain//jdt:repositories.bzl", "rules_jdt_dependencies", "rules_jdt_toolchains")
rules_jdt_dependencies()
rules_jdt_toolchains()

Using the rules
Use --extra_toolchains=@bazel_jdt_java_toolchain//jdt:all on the command line (or in .bazelrc) to enable JDT builder with local JDK for compilation.

See the source.

0.0.5

15 Mar 20:20
Compare
Choose a tag to compare

Change Log

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "bazel_jdt_java_toolchain",
    urls = [
        "https://github.com/salesforce/bazel-jdt-java-toolchain/releases/download/0.0.5/rules_jdt.tar.gz",
    ],
    sha256 = "a78770f160f55c060181685aa559d3f6557ff80bc3c58d8104cf7e2982eb0aa9",
)
load("@bazel_jdt_java_toolchain//jdt:repositories.bzl", "rules_jdt_dependencies", "rules_jdt_toolchains")
rules_jdt_dependencies()
rules_jdt_toolchains()

Using the rules
Use --extra_toolchains=@bazel_jdt_java_toolchain//jdt:all on the command line (or in .bazelrc) to enable JDT builder with local JDK for compilation.

See the source.

0.0.4

15 Mar 09:39
Compare
Choose a tag to compare

Change Log

  • Normalize javac options to avoid duplicate -source, -target or --release flags

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "bazel_jdt_java_toolchain",
    urls = [
        "https://github.com/salesforce/bazel-jdt-java-toolchain/releases/download/0.0.4/rules_jdt.tar.gz",
    ],
    sha256 = "a3dd3ca343c79dcc44745070ced36d949bf2f97912d6bf546a54c6f6b50cc840",
)
load("@bazel_jdt_java_toolchain//jdt:repositories.bzl", "rules_jdt_dependencies", "rules_jdt_toolchains")
rules_jdt_dependencies()
rules_jdt_toolchains()

Using the rules
Use --extra_toolchains=@bazel_jdt_java_toolchain//jdt:all on the command line (or in .bazelrc) to enable JDT builder with local JDK for compilation.

See the source.