Releases: bazel-contrib/rules_kotlin
Kotlin Rules 1.5.0 (Beta 2)
Kotlin rules for Bazel - 1.5.0 Beta 2
Note: These rules are maintained externally by volunteers (with Google's approval)
Note: The "legacy" prefix will be dropped as of this release. These are the rules, from this point on, until and unless Google chooses to externalize internal rules, at which point we can differentiate.
Note: legacy-1.4.0 isn't released, and this release includes all features in that line of development. Many of those changes are included in this list.
Known Bugs:
- May require specification of rules_android in WORKSPACE to resolve a workspace cycle, in some projects.
Beta 2 Revisions
- Handle properties from companion objects (#470)
- Persistent workers: exit if stdin is closed (#472)
- Fix build failure when using Java only modules with annotation processor (0ebede9)
- Collect references for type declarations. (#475)
- Add java_parameters kt_kotlinc_option (#477)
- Additional jdeps cases in Kotlin (8a8e884)
- Support optional source_jar (#482)
- Pass a few more args to android_local_test (38548a6)
- Add multiplex worker support (#481)
- More jdeps fixes (#484)
- pass the multiple platform flag to kotlinc (#487)
- Fix jdeps collectTypeArguments stackoverflow error (51fe508)
- make multiplxing parallel. (#496)
- Fix concurrency for multiplex (#498)
- Parallelize stdout and clean up PersistentWorker (#501)
- Introduce ktlint_test and ktlint_fix (#502)
- Support manifest_values in android_local_test
- Add missing variables for java stub template. (#504)
- Disable spammy output for jar creation. (#503)
- Initial (experimental) support for code coverage. (#505)
- source jars passed as rule srcs attributes were being included as nested (80e545c)
- Add support for Kotlin coverage (#508)
- Fix java.version parsing (#510) (#511)
- Implement better test class inference. (#516)
- Isolate Kotlin compiler instances for Multiplex workers. (#515)
- Fix kt_jvm_test to support mixed java/kt srcs (#513)
- Enable worker-key-mnemonic for KotlinCompile + KotlinKapt. (#518)
- Pass strict_deps flag to java compiler in JavaBuilder flow (#524)
- Fix formatting in JavaCompiler class (#490)
- Add jdeps recursion tests (#488)
- Fix kotlin compiler_release not being set (#530)
- Remove jcenter references (#526)
- Pass tags to android sandwich (#525)
- Expose parcelize plugin and add an example for using it (#522)
- Remove deprecated java_common fields (#519)
- Fix missing dependency on @com_github_jetbrains_kotlin//:lib/jvm-abi... (6dfa4bb)
- fix(docs): correct markdown syntax (#533)
- Update Dagger from 2.28 -> 2.35.1 (#543)
- Update to Bazel 4.1.0 (#542)
- Use current java_stub_template (#545)
- Fix generated resources (#538)
- Fix kt_android_local_test can't depend on testonly libraries (#537) …
- Support srcjars in mixed Java/Kotlin sources when ABI jars are enabled ( …
- various housekeeping PRs.
Beta 1 Revisions
- Strict dependency checking and enforcement. (#438)
- Add a tristate (off/warn/error) experimental_report_unused_deps (#437)
- Add docs for experimental_use_abi_jars (#446)
- Kotlin Builder reduced classpath - experimental feature (#439)
- Improve Jdeps to handle:- (#449)
- Add Jetpack Compose example (#450)
- Add support for kt_android_local_test (#451)
- [Jdeps] Fixes for more missing cases discovered during testing (#452)
- Ignore the jetpack compose example project from the main (avoids //..… (f7ea228)
- Make the release script a wee bit clearer, and add generate a sha256
- Fix breakage due to no jdeps produced when no KT source. (#457)
- Fix test class checking to break when it finds a match. (#464)
- Add missing AP files to fix references in Android Studio IDE (#459)
- Fix examples/android code to actually run successfully (#443)
- Support tracking super types that are not explicitly referenced as (#468)
- Expose kotlinc's -Xfriend-paths to all jvm/android kt rules under the… (15dd1de)
- Make all the child workspaces share the same .bazelversion. (#466)
- Delete orphan code not used anywhere. (#467)
Alpha 3 Revisions
- Fixed default option visibility
- Bump to project Kotlin 1.4.20
Alpha 2 Revisions
- JavaBuilder compilation prerelease available for testing using:
--define=experimental_use_abi_jars=1 - jdeps automatically generated from
kt_jvm_libraryrules. - Support for
kt_kotlinc_optionstokt_jvm_library. Library options supersede toolchain options. - Added
kt_kotlinc_options:
Notable changes:
- Releases are now precompiled, suggested production installation is via a release archive. Please see the Development Guide
- when running from a non-archive repository. (#271)
- Support for Kotlin compiler plugins via the kt_compiler_plugin (#308)
- Improved determinism for remote builds (#304)
- No longer packages non-kotlin generated sources (#263)
- Proper classpath handling for java plugins (#318)
- Support for propagating Kotlin version to Intellij (#242 )
- Fixes to release artifact production (#326, #327)
- Restructure the worker to be deterministic (cc039db, 3f4698a)
- Support to compilation using kotlin abi and java ijars. (#294, #347)
- Add support for Android data-binding when building with Kotlin (#346)
- Add 0 to allowed package name characters (#364)
- Specify what the compile_jar value should be when building the library (#341)
- Separate
--Xpluginoptions to support multiple compiler plugins at a time (#366) - Fix setting tags = ["trace", "timings"] on a rule. (#378)
- Kotlin 1.4 (#363)
- Support multiple source jars (#377)
- Bump serialization runtime to compatible version (#382)
- Add option rules for kotlinc and javac. (#383, #385)
- Expose kt_kotlinc_options and kt_javac_options (#386)
- Make kt_compiler_plugin work with android_binary (#388)
- Support the new Kotlin IR backend (#384)
- Add warning as error to the warn option. (b7f5832)
- Major rework of the compiler plugin infrastructure (#393)
- plugins now require an ID (formerly optional)
- plugins run in specific phases (kapt stubs, compile)
- compiler plugins may be exported via
exported_compiler_plugins(similar toexported_pluginson java_library) - some bash substitutions in working directory arguments in plugins (anvil example demonstrates)
- Option to tag a rule as kt_abi_plugin_incompatible (#362) …
- Fix java_plugins to work with Android rules (#407)
- Include KAPT generated source jars as Kotlin builder inputs (#410)
- Unify experimental java builder + abi jar flags (#411)
- Many more minor fixes.
More detail can be found in the Changelog
Usage instructions can be found in the readme README
This release includes the contributions of various Googlers as well as @cgruber, @justhecuke, @szinn, @rockwotj, @IljaKroonen, @benjaminRomano, @factuno-db, @arturdryomov, @restingbull, @jongerrish, @BenHenning, @gertvdijk, @dotdat, @fkorotkov, @Wyverald, @Bencodes, @Kernald, @meteorcloudy, @comius.
SHA-256 for rules_kotlin_release.tgz: e4185409c787c18f332ae83a73827aab6e77058a48ffee0cac01123408cbc89a
Kotlin Rules 1.5.0 (Alpha 3)
Kotlin rules for Bazel - Legacy Rules 1.5.0
Note: These rules are maintained externally by volunteers (with Google's approval)
Note: The "legacy" prefix will be dropped as of this release. These are the rules, from this point on, until and unless Google chooses to externalize internal rules, at which point we can differentiate.
Note: legacy-1.4.0 isn't released, and this release includes all features in that line of development. Many of those changes are included in this list.
Alpha 3 Revisions
- Fixed default option visibility
- Bump to project Kotlin 1.4.20
Alpha 2 Revisions
- JavaBuilder compilation prerelease available for testing using:
--define=experimental_use_abi_jars=1 - jdeps automatically generated from
kt_jvm_libraryrules. - Support for
kt_kotlinc_optionstokt_jvm_library. Library options supersede toolchain options. - Added
kt_kotlinc_options:
Notable changes:
- Releases are now precompiled, suggested production installation is via a release archive. Please see the Development Guide
- when running from a non-archive repository. (#271)
- Support for Kotlin compiler plugins via the kt_compiler_plugin (#308)
- Improved determinism for remote builds (#304)
- No longer packages non-kotlin generated sources (#263)
- Proper classpath handling for java plugins (#318)
- Support for propagating Kotlin version to Intellij (#242 )
- Fixes to release artifact production (#326, #327)
- Restructure the worker to be deterministic (cc039db, 3f4698a)
- Support to compilation using kotlin abi and java ijars. (#294, #347)
- Add support for Android data-binding when building with Kotlin (#346)
- Add 0 to allowed package name characters (#364)
- Specify what the compile_jar value should be when building the library (#341)
- Separate
--Xpluginoptions to support multiple compiler plugins at a time (#366) - Fix setting tags = ["trace", "timings"] on a rule. (#378)
- Kotlin 1.4 (#363)
- Support multiple source jars (#377)
- Bump serialization runtime to compatible version (#382)
- Add option rules for kotlinc and javac. (#383, #385)
- Expose kt_kotlinc_options and kt_javac_options (#386)
- Make kt_compiler_plugin work with android_binary (#388)
- Support the new Kotlin IR backend (#384)
- Add warning as error to the warn option. (b7f5832)
- Major rework of the compiler plugin infrastructure (#393)
- plugins now require an ID (formerly optional)
- plugins run in specific phases (kapt stubs, compile)
- compiler plugins may be exported via
exported_compiler_plugins(similar toexported_pluginson java_library) - some bash substitutions in working directory arguments in plugins (anvil example demonstrates)
- Option to tag a rule as kt_abi_plugin_incompatible (#362) …
- Fix java_plugins to work with Android rules (#407)
- Include KAPT generated source jars as Kotlin builder inputs (#410)
- Unify experimental java builder + abi jar flags (#411)
- Many more minor fixes.
More detail can be found in the Changelog
Usage instructions can be found in the readme README
This release includes the contributions of various Googlers as well as @cgruber, @justhecuke, @szinn, @rockwotj, @IljaKroonen, @benjaminRomano, @factuno-db, @arturdryomov, @restingbull, @jongerrish, @BenHenning, @gertvdijk, @dotdat, @fkorotkov, @Wyverald, @Bencodes, @Kernald, @meteorcloudy, @comius.
Kotlin Rules 1.5.0 (Alpha 2)
Kotlin rules for Bazel - Legacy Rules 1.5.0
Note: These rules are maintained externally by volunteers (with Google's approval)
Note: The "legacy" prefix will be dropped as of this release. These are the rules, from this point on, until and unless Google chooses to externalize internal rules, at which point we can differentiate.
Note: legacy-1.4.0 isn't released, and this release includes all features in that line of development. Many of those changes are included in this list.
Alpha 2 Revisions
- JavaBuilder compilation prerelease available for testing using:
--define=experimental_use_abi_jars=1 - jdeps automatically generated from
kt_jvm_libraryrules. - Support for
kt_kotlinc_optionstokt_jvm_library. Library options supersede toolchain options. - Added
kt_kotlinc_options:
Notable changes:
- Releases are now precompiled, suggested production installation is via a release archive. Please see the Development Guide
- when running from a non-archive repository. (#271)
- Support for Kotlin compiler plugins via the kt_compiler_plugin (#308)
- Improved determinism for remote builds (#304)
- No longer packages non-kotlin generated sources (#263)
- Proper classpath handling for java plugins (#318)
- Support for propagating Kotlin version to Intellij (#242 )
- Fixes to release artifact production (#326, #327)
- Restructure the worker to be deterministic (cc039db, 3f4698a)
- Support to compilation using kotlin abi and java ijars. (#294, #347)
- Add support for Android data-binding when building with Kotlin (#346)
- Add 0 to allowed package name characters (#364)
- Specify what the compile_jar value should be when building the library (#341)
- Separate
--Xpluginoptions to support multiple compiler plugins at a time (#366) - Fix setting tags = ["trace", "timings"] on a rule. (#378)
- Kotlin 1.4 (#363)
- Support multiple source jars (#377)
- Bump serialization runtime to compatible version (#382)
- Add option rules for kotlinc and javac. (#383, #385)
- Expose kt_kotlinc_options and kt_javac_options (#386)
- Make kt_compiler_plugin work with android_binary (#388)
- Support the new Kotlin IR backend (#384)
- Add warning as error to the warn option. (b7f5832)
- Major rework of the compiler plugin infrastructure (#393)
- plugins now require an ID (formerly optional)
- plugins run in specific phases (kapt stubs, compile)
- compiler plugins may be exported via
exported_compiler_plugins(similar toexported_pluginson java_library) - some bash substitutions in working directory arguments in plugins (anvil example demonstrates)
- Option to tag a rule as kt_abi_plugin_incompatible (#362) …
- Fix java_plugins to work with Android rules (#407)
- Include KAPT generated source jars as Kotlin builder inputs (#410)
- Unify experimental java builder + abi jar flags (#411)
- Many more minor fixes.
More detail can be found in the Changelog
Usage instructions can be found in the readme README
This release includes the contributions of various Googlers as well as @cgruber, @justhecuke, @szinn, @rockwotj, @IljaKroonen, @benjaminRomano, @factuno-db, @arturdryomov, @restingbull, @jongerrish, @BenHenning, @gertvdijk, @dotdat, @fkorotkov, @Wyverald, @Bencodes, @Kernald, @meteorcloudy, @comius.
Legacy Kotlin Rules 1.5.0 (Alpha 1)
Kotlin rules for Bazel - Legacy Rules 1.5.0
Note: These rules are maintained externally by volunteers (with Google's approval)
Note: The "legacy" prefix will be dropped as of this release. These are the rules, from this point on, until and unless Google chooses to externalize internal rules, at which point we can differentiate.
Note: legacy-1.4.0 isn't released, and thie release includes all features in that line of development. Many of those changes are included in this list.
Notable changes:
- Releases are now precompiled, suggested production installation is via a release archive. Please see the Development Guide
- when running from a non-archive repository. (#271)
- Support for Kotlin compiler plugins via the kt_compiler_plugin (#308)
- Improved determinism for remote builds (#304)
- No longer packages non-kotlin generated sources (#263)
- Proper classpath handling for java plugins (#318)
- Support for propagating Kotlin version to Intellij (#242 )
- Fixes to release artifact production (#326, #327)
- Restructure the worker to be deterministic (cc039db, 3f4698a)
- Support to compilation using kotlin abi and java ijars. (#294, #347)
- Add support for Android data-binding when building with Kotlin (#346)
- Add 0 to allowed package name characters (#364)
- Specify what the compile_jar value should be when building the library (#341)
- Separate
--Xpluginoptions to support multiple compiler plugins at a time (#366) - Fix setting tags = ["trace", "timings"] on a rule. (#378)
- Kotlin 1.4 (#363)
- Support multiple source jars (#377)
- Bump serialization runtime to compatible version (#382)
- Add option rules for kotlinc and javac. (#383, #385)
- Expose kt_kotlinc_options and kt_javac_options (#386)
- Make kt_compiler_plugin work with android_binary (#388)
- Support the new Kotlin IR backend (#384)
- Add warning as error to the warn option. (b7f5832)
- Major rework of the compiler plugin infrastructure (#393)
- plugins now require an ID (formerly optional)
- plugins run in specific phases (kapt stubs, compile)
- compiler plugins may be exported via
exported_compiler_plugins(similar toexported_pluginson java_library) - some bash substitutions in working directory arguments in plugins (anvil example demonstrates)
- Option to tag a rule as kt_abi_plugin_incompatible (#362) …
- Fix java_plugins to work with Android rules (#407)
- Include KAPT generated source jars as Kotlin builder inputs (#410)
- Unify experimental java builder + abi jar flags (#411)
- Many more minor fixes.
More detail can be found in the Changelog
Usage instructions can be found in the readme README
This release includes the contributions of various Googlers as well as @cgruber, @justhecuke, @szinn, @rockwotj, @IljaKroonen, @benjaminRomano, @factuno-db, @arturdryomov, @restingbull, @jongerrish, @BenHenning, @gertvdijk, @dotdat, @fkorotkov, @Wyverald, @Bencodes, @Kernald, @meteorcloudy, @comius.
Legacy Kotlin Rules 1.4.0 (Release Candidate 4)
Kotlin rules for Bazel - Legacy Rules 1.4.0
Note: These rules are maintained externally from Google (with Google's oversight and help)
Housekeeping release. Improvements to the underlying infrastructure of the rules to improve performance and correctness.
Notable changes:
- Releases are now precompiled, suggested production installation is via a release archive. Please see the Development Guide when running from a non-archive repository. (#271)
- Support for Kotlin compiler plugins via the kt_compiler_plugin (#308)
- Improved determinism for remote builds (#304)
- No longer packages non-kotlin generated sources (#263)
- Proper classpath handling for java plugins (#318)
- Support for propagating Kotlin version to Intellij (#242 )
- Fixes to release artifact production (#326, #327)
- Restructure the worker to be deterministic (cc039db, 3f4698a)
- Minor cleanups (dc7fd1a)
- Fix release packaging to exclude references to non-release targets. (19658cd)
Note: Some fixes on release branch have not yet been integrated into master, and so have only commits, not pull requests.
More detail can be found in the Changelog
Usage instructions can be found in the readme README
This release includes the contributions of various Googlers as well as @cgruber, @justhecuke, @szinn, @rockwotj, @IljaKroonen, @benjaminRomano, @factuno-db, @arturdryomov, @restingbull.
Legacy Kotlin Rules 1.4.0 (Release Candidate 3)
Kotlin rules for Bazel - Legacy Rules 1.4.0
Note: These rules are maintained externally from Google (with Google's oversight and help)
Housekeeping release. Improvements to the underlying infrastructure of the rules to improve performance and correctness.
Notable changes:
- Releases are now precompiled, suggested production installation is via a release archive. Please see the Development Guide when running from a non-archive repository. (#271)
- Support for Kotlin compiler plugins via the kt_compiler_plugin (#308)
- Improved determinism for remote builds (#304)
- No longer packages non-kotlin generated sources (#263)
- Proper classpath handling for java plugins (#318)
- Support for propagating Kotlin version to Intellij (#242 )
- Fixes to release artifact production (#326, #327)
More detail can be found in the Changelog
Usage instructions can be found in the readme README
This release includes the contributions of various Googlers as well as @cgruber, @justhecuke, @szinn, @rockwotj, @IljaKroonen, @benjaminRomano, @factuno-db, @arturdryomov, @restingbull.
Legacy Kotlin Rules 1.4.0 (Release Candidate 2)
Kotlin rules for Bazel - Legacy Rules 1.4.0
Note: These rules are maintained externally from Google (with Google's oversight and help)
Housekeeping release. Improvements to the underlying infrastructure of the rules to improve performance and correctness.
Notable changes:
- Releases are now precompiled, suggested production installation is via a release archive. Please see the Development Guide when running from a non-archive repository. (#271)
- Support for Kotlin compiler plugins via the kt_compiler_plugin (#308)
- Improved determinism for remote builds (#304)
- No longer packages non-kotlin generated sources (#263)
- Proper classpath handling for java plugins (#318)
- Support for propagating Kotlin version to Intellij (#242 )
- Fixes to release artifact production (#326, #327)
More detail can be found in the Changelog
Usage instructions can be found in the readme README
This release includes the contributions of various Googlers as well as @cgruber, @justhecuke, @szinn, @rockwotj, @IljaKroonen, @benjaminRomano, @factuno-db, @arturdryomov, @restingbull.
Legacy Kotlin Rules 1.4.0 (Release Candidate 1)
Kotlin rules for Bazel - Legacy Rules 1.4.0
Note: These rules are maintained externally from Google (with Google's oversight and help)
Housekeeping release. Improvements to the underlying infrastructure of the rules to improve performance and correctness.
Notable changes:
- Releases are now precompiled, suggested production installation is via a release archive. Please see the Development Guide when running from a non-archive repository. (#271)
- Support for Kotlin compiler plugins via the kt_compiler_plugin (#308)
- Improved determinism for remote builds (#304)
- No longer packages non-kotlin generated sources (#263)
- Proper classpath handling for java plugins (#318)
- Support for propagating Kotlin version to Intellij (#242 )
More detail can be found in the Changelog
Usage instructions can be found in the readme README
This release includes the contributions of various Googlers as well as @cgruber, @justhecuke, @szinn, @rockwotj, @IljaKroonen, @benjaminRomano, @factuno-db, @arturdryomov, @restingbull.
Legacy Kotlin Rules 1.3.0
Kotlin rules for Bazel - Legacy Rules 1.3.0
Note: These rules are maintained externally from Google (with Google's oversight and help)
Updates the Kotlin rules for Bazel with a significant set of improvements, including the improvements contained in @cgruber's fork of rules_kotlin which is considered "upstreamed" as of this release.
Notable changes:
- Various to run against modern versions of Bazel (remote deprecated/removed API usages)
- Support for Kotlin 1.3 (cgruber#7)
- Support custom "repositories" for kotlinc to permit non-default kotlinc versions
- Support custom toolchains to permit Kotlin and Java language version settings.
- using with kotlinc < v1.3 now not supported, due to different stdlib/runtime artifact handling, but older language versions allowed with a custom toolchain.
- Fixes to friends/internal handling (#222)
- Use jarjar in the persistent worker, so as not to leak its own deps into the compilation job (cgruber#4)
- Permit full compile-time classpath to be passed to compiler (cgruber#5)
- This disables the very naive strict-deps implementation, which was based on limiting the classpath, which forced additional declarations of "upstream" jars containing compiler-necessary bytecode such as supertypes). A future effort to add strict deps rooted in proper deps/symbol analysis is needed.
- Quiesce java9+ reflective access warnings (cgruber#15)
- Add
exports=tokt_jvm_library()(cgruber#7) - Add
exports=tokt_jvm_import()(cgruber#18) ( - Properly handle java version semantics, to call
--multi-releaseunder the right conditions (cgruber#23) - Fix building on windows (#193)
- Java launcher update (#199)
- Infer test class from test name, by default, in
kt_jvm_unit_test()(#209, #257) - Handle various packaging of javascript deps for
kt_js_import()(#223) - Fix bad jdeps handling (#234 / #235)
- Support jvm targets later than
1.8(#229 / #236) - Fix regression where tags were not being propagated through kt_android_library #255
Plus:
- Various cleanups, refactors, examples and tests.
- Various regressions along the way
More detail can be found in the Changelog
Usage instructions can be found in the readme README
This release includes the contributions of various Googlers as well as @cgruber, @puffnfresh, @jasonwyatt, @keith, @iirina, @mig35, @pbsf, @philwo, @Globegitter, @szinn. Special advisory thanks to @shs96c.
Legacy Kotlin Rules 1.3.0 (Release Candidate 4)
Kotlin rules for Bazel - Legacy Rules 1.3.0
(Release Candidate 4)
Note: These rules are provisionally released with community support, while Google works to "externalize"
their internal kotlin rules. Support will be best-effort during this phase.
Updates the Kotlin rules for Bazel with a significant set of improvements, including the improvements contained in @cgruber's fork of rules_kotlin which is considered "upstreamed" as of this release.
Notable changes:
- Various to run against modern versions of Bazel (remote deprecated/removed API usages)
- Support for Kotlin 1.3 (cgruber#7)
- Support custom "repositories" for kotlinc to permit non-default kotlinc versions
- Support custom toolchains to permit Kotlin and Java language version settings.
- using with kotlinc < v1.3 now not supported, due to different stdlib/runtime artifact handling, but older language versions allowed with a custom toolchain.
- Fixes to friends/internal handling (#222)
- Use jarjar in the persistent worker, so as not to leak its own deps into the compilation job (cgruber#4)
- Permit full compile-time classpath to be passed to compiler (cgruber#5)
- This disables the very naive strict-deps implementation, which was based on limiting the classpath, which forced additional declarations of "upstream" jars containing compiler-necessary bytecode such as supertypes). A future effort to add strict deps rooted in proper deps/symbol analysis is needed.
- Quiesce java9+ reflective access warnings (cgruber#15)
- Add
exports=tokt_jvm_library()(cgruber#7) - Add
exports=tokt_jvm_import()(cgruber#18) ( - Properly handle java version semantics, to call
--multi-releaseunder the right conditions (cgruber#23) - Fix building on windows (#193)
- Java launcher update (#199)
- Infer test class from test name, by default, in
kt_jvm_unit_test()(#209, #257) - Handle various packaging of javascript deps for
kt_js_import()(#223) - Fix bad jdeps handling (#234 / #235)
- Support jvm targets later than
1.8(#229 / #236) - Fix regression where tags were not being propagated through kt_android_library #255
Plus:
- Various cleanups, refactors, examples and tests.
- Various regressions along the way
More detail can be found in the Changelog
Usage instructions can be found in the readme README
This release includes the contributions of various Googlers as well as @cgruber, @puffnfresh, @jasonwyatt, @keith, @iirina, @mig35, @pbsf, @philwo, @Globegitter, @szinn. Special advisory thanks to @shs96c.