Releases: bazel-contrib/rules_kotlin
Kotlin rules for Bazel - v1.7.0-RC-3
Note: These rules are maintained externally by volunteers (with Google's approval)
SHA256: f033fa36f51073eae224f18428d9493966e67c27387728b6be2ebbdae43f140e
What's Changed
- Fix some compiler warnings in JdepsGenExtension by @Bencodes in #795
- Add release badges from
shields.ioby @arunkumar9t2 in #799 - Add kt_kotlinc_options for additional bytecode generation options by @brettwooldridge in #802
- Remove -Xuse-experimental from legacy opts by @Bencodes in #767
- Update the workspace to use the prebuilt image over rbe autoconfig. by @restingbull in #744
- pass exec_properties to underlying android_local_test macro by @Augustyniak in #810
- Add instructions to attach debugger to debug java/kt actions by @oliviernotteghem in #814
- Mark receiver parameter type as referenced. by @aeremin in #807
- Fix jdeps tracking case for class extension by @oliviernotteghem in #812
- Fix RBE builds on master by @Bencodes in #818
- Update Dagger from 2.41 -> 2.43.2 by @Bencodes in #817
- Update compose example to Kotlin 1.7.10 by @Bencodes in #820
- Update rules_kotlin to Kotlin 1.7.10 by @Bencodes in #821
- Cleanup bunch of small issues in JdepsGetExtension.kt by @aeremin in #819
New Contributors
- @brettwooldridge made their first contribution in #802
- @Augustyniak made their first contribution in #810
- @aeremin made their first contribution in #807
Full Changelog: v1.7.0-RC-2...v1.7.0-RC-3
Kotlin rules for Bazel - v1.7.0-RC-2
Note: These rules are maintained externally by volunteers (with Google's approval)
SHA256: 946747acdbeae799b085d12b240ec346f775ac65236dfcf18aa0cd7300f6de78
What's Changed
Full Changelog: v1.7.0-RC-1...v1.7.0-RC-2
Kotlin rules for Bazel - v1.7.0-RC-1
Note: These rules are maintained externally by volunteers (with Google's approval)
SHA256: 68b910730026921814d3a504ccbe9adaac9938983d940e626523e6e4ecfb0355
What's Changed
- Update Bazel from 5.1.1 -> 5.2.0 by @Bencodes in #766
- Remove deprecated friends attribute in favor of associates by @Bencodes in #768
- Support -Xreport-perf by @rockwotj in #775
- Add support for -Xbackend-threads by @rockwotj in #773
- Update -Xuse-fir to -Xuse-k2 by @rockwotj in #776
- Add no-optimize flag by @rockwotj in #774
- Update doc for v1.6.0 by @utzcoz in #779
- Bump bazel to 5.0.0 by @utzcoz in #780
- Bump Robolectric to 4.8.1 for android example by @utzcoz in #781
- Allow resources to be passed to kt_android_library by @sugarmanz in #786
- Fix typo in error by @hanneskaeufler in #783
- Support using --jvmopt with kt_jvm_test by @mai93 in #782
- Remove dead code branch by @hanneskaeufler in #784
ktlint_testwindows support by @hanneskaeufler in #785- Fix repository mapping to be compliant with Bazel 6 by @restingbull in #777
- Support multiple
kt_android_librarytargets with same package name. by @arunkumar9t2 in #790 - Bump ktlint to 0.46.1, but make the version configurable by @hanneskaeufler in #789
- Remove unused build_java attribute by @Bencodes in #788
- Update to Kotlin 1.7.0 by @Bencodes in #769
- Remove @jin from CODEOWNERS by @jin in #792
New Contributors
- @hanneskaeufler made their first contribution in #783
Full Changelog: v1.6.0...v1.7.0-RC-1
Kotlin rules for Bazel - v1.6.0
Note: These rules are maintained externally by volunteers (with Google's approval)
SHA256: a57591404423a52bd6b18ebba7979e8cd2243534736c5c94d35c89718ea38f94
What's Changed
- Set shebang correctly as initial line by @gertvdijk in #164
- Add kotlin opts for disabling
invokedynamicby @benjaminRomano in #681 - Pin buildifier to 4.2.5 to unblock master by @Bencodes in #691
- Update Jetpack Compose to 1.1.0 by @Kernald in #683
- Remove Android NDK by @Kernald in #684
- Pin buildifier to 5.x and fix violations by @Bencodes in #692
- Generic -Xopt-in support by @sugarmanz in #676
- Fix --enable_runfiles on Windows by @jesseschalken in #680
- Remove legacy Javac compilation by @Bencodes in #694
- Support using --jvmopt with kt_jvm_binary by @mai93 in #689
- Delete unused KtAbiPluginArgs.kt by @Bencodes in #698
- [Docs] Add x_optin to kt_kotlinc_options docs by @Bencodes in #702
- Flatten JavaBuilderFlags into KotlinBuilderFlags by @Bencodes in #699
- [Docs] Improve archive_repository docs by @Bencodes in #701
- Use canonical repo name for android rules: build_bazel_rules_android by @dflems in #675
- Update kotlinc_opts documentation by @pettermahlen in #706
- Use JavaPersistantWorker, create new kotlinc every invocation by @restingbull in #703
- Check JavaPluginInfo provider is not empty by @mauriciogg in #685
- Mixed source compile test reproducing issues/707 by @restingbull in #710
- Build rules_kotlin using Kotlin 1.6 by @Bencodes in #626
- Rename PersistentWorkerTest to JavaPersistentWorkerTest by @nkoroste in #713
- Support all -Xjvm-default options by @Bencodes in #715
- Support -Xuse-fir to enable the experimental new Kotlin frontend by @Bencodes in #717
- Allow java 15 and 17 for jvm_target by @andrewhamon in #712
- Allow java 16 for jvm_target by @Bencodes in #719
- use absolute_target for the default toolchain by @restingbull in #720
- Bump Kotlin compiler from 1.6.20 -> 1.6.21 by @Bencodes in #718
- Remove unused coroutines references in WorkerEnvironment.kt by @Bencodes in #721
- Update Bazel from 5.0.0 -> 5.1.0 by @Bencodes in #723
- Remove kotlinx-coroutines from maven_install artifacts by @Bencodes in #724
- Update README.md with 1.6.0-RC1 changes by @Bencodes in #725
- Remove ExperimentalCoroutinesApi usages by @Bencodes in #728
- Replace cfg=host with cfg=exec by @Bencodes in #727
- Don't provide jdeps as default output by @Bencodes in #726
- Fix jvm kotlin library compilation with srcjar + no kt files by @oliviernotteghem in #731
- Add github action for creating releases by @Bencodes in #671
- Update Bazel 5.1.0 -> 5.1.1 by @Bencodes in #734
- Revert "Add github action for creating releases" until triggering criteria is sorted out. by @restingbull in #736
- Add github action for creating releases by @Bencodes in #738
- Remove release_name from github action releases by @Bencodes in #739
- More automated release testing by @Bencodes in #740
- [Testing] Write some bytes into the test file by @Bencodes in #741
- Support automated releases using Github Actions by @Bencodes in #742
- Ensure version of Android SDK is consistent when compiling kotlin targets by @oliviernotteghem in #746
- Support Kotlin 1.7 api and language versions by @Bencodes in #747
- Update compose example to 1.2.0-alpha08 by @Bencodes in #722
- Update compose example to 1.2.0-beta02 and Kotlin compiler 1.6.21 by @Bencodes in #751
- Add Kotlin 1.7 build opts by @Bencodes in #750
- Run
kaptonktfiles passed viasrcjars by @arunkumar9t2 in #749 - Update CHANGELOG.md for 1.6.0-RC1 by @Bencodes in #755
- Update CHANGELOG.md for v1.6.0-RC-2 by @Bencodes in #756
- Flatten README.md down and refer to Github Releases for changelog information by @Bencodes in #757
- Flatten the quick start section of the README to only reference the current stable release by @Bencodes in #758
- Remove Kotlin 1.3 reference from README and fix a typo by @Bencodes in #759
- Update custom kotlinc distribution docs to reference a newer Kotlin compiler release by @Bencodes in #760
- Fix typo in
kt_download_local_dev_dependenciesdeprecation error message by @arunkumar9t2 in #762 - Break KotlinKapt action into it's own function by @Bencodes in #765
- Add build and test support to RulesKotlinWorkspace by @Bencodes in #764
- Symlink empty jdeps as output when there are none to merge by @Bencodes in #763
- add -Xemit-jvm-type-annotations by @restingbull in #770
New Contributors
- @sugarmanz made their first contribution in #676
- @mai93 made their first contribution in #689
- @dflems made their first contribution in #675
- @andrewhamon made their first contribution in #712
Full Changelog: v1.5.0...v1.6.0
Kotlin rules for Bazel - v1.6.0-RC-3
This will likely be the final RC release before we promote v1.6.0 to stable.
What's Changed
- Run
kaptonktfiles passed viasrcjars by @arunkumar9t2 in #749 - Update CHANGELOG.md for 1.6.0-RC1 by @Bencodes in #755
- Update CHANGELOG.md for v1.6.0-RC-2 by @Bencodes in #756
- Flatten README.md down and refer to Github Releases for changelog information by @Bencodes in #757
- Flatten the quick start section of the README to only reference the current stable release by @Bencodes in #758
- Remove Kotlin 1.3 reference from README and fix a typo by @Bencodes in #759
- Update custom kotlinc distribution docs to reference a newer Kotlin compiler release by @Bencodes in #760
- Fix typo in
kt_download_local_dev_dependenciesdeprecation error message by @arunkumar9t2 in #762 - Break KotlinKapt action into it's own function by @Bencodes in #765
- Add build and test support to RulesKotlinWorkspace by @Bencodes in #764
- Symlink empty jdeps as output when there are none to merge by @Bencodes in #763
- add -Xemit-jvm-type-annotations by @restingbull in #770
Full Changelog: v1.6.0-RC-2...v1.6.0-RC-3
Kotlin rules for Bazel - v1.6.0-RC-2
What's Changed
- Remove unused coroutines references in WorkerEnvironment.kt by @Bencodes in #721
- Update Bazel from 5.0.0 -> 5.1.0 by @Bencodes in #723
- Remove kotlinx-coroutines from maven_install artifacts by @Bencodes in #724
- Update README.md with 1.6.0-RC1 changes by @Bencodes in #725
- Remove ExperimentalCoroutinesApi usages by @Bencodes in #728
- Replace cfg=host with cfg=exec by @Bencodes in #727
- Don't provide jdeps as default output by @Bencodes in #726
- Fix jvm kotlin library compilation with srcjar + no kt files by @oliviernotteghem in #731
- Add github action for creating releases by @Bencodes in #671
- Update Bazel 5.1.0 -> 5.1.1 by @Bencodes in #734
- Revert "Add github action for creating releases" until triggering criteria is sorted out. by @restingbull in #736
- Add github action for creating releases by @Bencodes in #738
- Remove release_name from github action releases by @Bencodes in #739
- More automated release testing by @Bencodes in #740
- [Testing] Write some bytes into the test file by @Bencodes in #741
- Support automated releases using Github Actions by @Bencodes in #742
- Ensure version of Android SDK is consistent when compiling kotlin targets by @oliviernotteghem in #746
- Support Kotlin 1.7 api and language versions by @Bencodes in #747
- Update compose example to 1.2.0-alpha08 by @Bencodes in #722
- Update compose example to 1.2.0-beta02 and Kotlin compiler 1.6.21 by @Bencodes in #751
- Add Kotlin 1.7 build opts by @Bencodes in #750
Full Changelog: 1.6.0-RC-1...v1.6.0-RC-2
Kotlin rules for Bazel - 1.6.0-RC-1
What's Changed
- Set shebang correctly as initial line by @gertvdijk in #164
- Add kotlin opts for disabling
invokedynamicby @benjaminRomano in #681 - Pin buildifier to 4.2.5 to unblock master by @Bencodes in #691
- Update Jetpack Compose to 1.1.0 by @Kernald in #683
- Remove Android NDK by @Kernald in #684
- Pin buildifier to 5.x and fix violations by @Bencodes in #692
- Generic -Xopt-in support by @sugarmanz in #676
- Fix --enable_runfiles on Windows by @jesseschalken in #680
- Remove legacy Javac compilation by @Bencodes in #694
- Support using --jvmopt with kt_jvm_binary by @mai93 in #689
- Delete unused KtAbiPluginArgs.kt by @Bencodes in #698
- [Docs] Add x_optin to kt_kotlinc_options docs by @Bencodes in #702
- Flatten JavaBuilderFlags into KotlinBuilderFlags by @Bencodes in #699
- [Docs] Improve archive_repository docs by @Bencodes in #701
- Use canonical repo name for android rules: build_bazel_rules_android by @dflems in #675
- Update kotlinc_opts documentation by @pettermahlen in #706
- Use JavaPersistantWorker, create new kotlinc every invocation by @restingbull in #703
- Check JavaPluginInfo provider is not empty by @mauriciogg in #685
- Mixed source compile test reproducing issues/707 by @restingbull in #710
- Build rules_kotlin using Kotlin 1.6 by @Bencodes in #626
- Rename PersistentWorkerTest to JavaPersistentWorkerTest by @nkoroste in #713
- Support all -Xjvm-default options by @Bencodes in #715
- Support -Xuse-fir to enable the experimental new Kotlin frontend by @Bencodes in #717
- Allow java 15 and 17 for jvm_target by @andrewhamon in #712
- Allow java 16 for jvm_target by @Bencodes in #719
- use absolute_target for the default toolchain by @restingbull in #720
- Bump Kotlin compiler from 1.6.20 -> 1.6.21 by @Bencodes in #718
New Contributors
- @sugarmanz made their first contribution in #676
- @mai93 made their first contribution in #689
- @dflems made their first contribution in #675
- @andrewhamon made their first contribution in #712
Full Changelog: v1.5.0...1.6.0-RC-1
Kotlin rules for Bazel - 1.5.0
Note: These rules are maintained externally by volunteers (with Google's approval)
Note: Release notes and docs to be re-written.
SHA256: 12d22a3d9cbcf00f2e2d8f0683ba87d3823cb8c7f6837568dd7e48846e023307
Final revisions
- Use JavaPluginInfo if available in Bazel (#587)
- Remove exception info for kt_android_local_test from README.md (#595)
- Cleanup output on failure (#604)
- Bug fix in _repeated_values_for (#610)
- remove kotlin repository alias, as it must be called before kotlin.bzl can be loaded. (#613)
- Remove overzealous provider requiring. (#614)
- Add tests to jar creator. Enable flag in single_jar to create directories (#615)
- Allow building from head repo (#612)
- add x_explicit_api_mode to remaining kotlinc_options definitions (#607)
- Fix typo. (#605)
- Pass transitive jars to jdeps merge action (#621)
- Pass compilation args using the official way (#601)
- Filter on jars inside of createDepsMap (#620)
- Pass reducedClasspathMode to CompilationTaskInfo (#622)
- Fix typo in top-level BUILD.release.bazel (#596)
- Update Kotlin to 1.5.30 (#588)
- Typo in “use rules_kotlin from head”, see #570 (#633)
- Mark repos as local to ensure it always rebuilds (#632)
- Add basic support for Kotlin 1.6 (#625)
- fix typo in jvm/impl.bzl error message (#637)
- Deshade transitive dependencies (#635)
- Replace some uses of cfg="host" with cfg="exec" (#641)
- Update log4j in examples/trivial/WORKSPACE (#645)
- Update log4j to 2.16 (#649)
- Don't hardcode -Xuse-experimental (#648)
- Update Kotlin version to 1.5.31 (#654)
- Update Kotlin to 1.3.32 (#655)
- Update rules_jvm_external from 4.0 -> 4.2 (#658)
- Ci jetpack compose (#657)
- bump all 1.5.1 refs to 1.5.2 (#661)
- Move Jacoco to runtime deps (#670)
- Make the underlying _kt library public. (#668)
- Clean up the android example (#659)
- Support Bazel to 5.0.0 (#664)
- Don't propagate JavaInfo for compiler plugin deshaded libs (#644)
- Don't propagate plugins through deps (#666)
Beta 4 Revisions
- Add --exclude_build_data arguemtn to singlejar invocation (#566)
- Version the kt_kotlinc_options and kt_javac_options. (#564)
- Bump Android build-tools to 30.0.3 (#568)
- Fix using rules_kotlin from head (#571)
- Support explicit API mode (#576)
- Kotlin 1.5 support (#577)
- Fix missing dependency on jvm-abi-gen.jar in release artifacts (#569)
- Trim worker output before emitting it (#586)
- Other fixes, typos, and erratta.
Beta 3 Revisions
- Fix duplicate testonly attributes being passed to kt_android_local_test (2e7d520)
- Call System.gc between work requests (#558)
- Revert "Isolate Kotlin compiler instances for Multiplex workers. (#515)
- Fix duplicate worker output (#561) …
- Add forwarding references for js, jvm, ktlint. (#557)
- Should fix the need to import rules_android if you don't use them
- May require changing load() statements to point at different .bzl
e.g.kt_jvm_librarywould be loaded fromjvm.bzlinstead ofkotlin.bzl
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)
- Expos...
Kotlin Rules 1.5.0 (Beta 4)
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.
Beta 4 Revisions
- Add --exclude_build_data arguemtn to singlejar invocation (#566)
- Version the kt_kotlinc_options and kt_javac_options. (#564)
- Bump Android build-tools to 30.0.3 (#568)
- Fix using rules_kotlin from head (#571)
- Support explicit API mode (#576)
- Kotlin 1.5 support (#577)
- Fix missing dependency on jvm-abi-gen.jar in release artifacts (#569)
- Trim worker output before emitting it (#586)
- Other fixes, typos, and erratta.
Beta 3 Revisions
- Fix duplicate testonly attributes being passed to kt_android_local_test (2e7d520)
- Call System.gc between work requests (#558)
- Revert "Isolate Kotlin compiler instances for Multiplex workers. (#515)
- Fix duplicate worker output (#561) …
- Add forwarding references for js, jvm, ktlint. (#557)
- Should fix the need to import rules_android if you don't use them
- May require changing load() statements to point at different .bzl
e.g.kt_jvm_librarywould be loaded fromjvm.bzlinstead ofkotlin.bzl
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 (Beta 3)
Kotlin rules for Bazel - 1.5.0 Beta 3
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.
Beta 3 Revisions
- Fix duplicate testonly attributes being passed to kt_android_local_test (2e7d520)
- Call System.gc between work requests (#558)
- Revert "Isolate Kotlin compiler instances for Multiplex workers. (#515)
- Fix duplicate worker output (#561) …
- Add forwarding references for js, jvm, ktlint. (#557)
- Should fix the need to import rules_android if you don't use them
- May require changing load() statements to point at different .bzl
e.g.kt_jvm_librarywould be loaded fromjvm.bzlinstead ofkotlin.bzl
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