Releases: GradleUp/Tapmoc
v0.4.0
New gradle(String) helper. New, more granular, way to enable/disable the dependencies checks. As well as a couple of important fixes for Android.
Add TapmocExtension.gradle(String) (#35)
TapmocExtension.gradle(String) makes it easy to configure compatibility for your Gradle plugins:
tapmoc {
/**
* Sets Java and Kotlin flags according to
* https://docs.gradle.org/current/userguide/compatibility.html
*
* This is equivalent to calling `java(8)` and `kotlin("1.8.0")`
*/
gradle("8.14")
}checkDependencies() does not check the kotlin-stdlib version by default anymore (#74).
kotlin-stdlib can be safely upgraded in most cases (Gradle plugins is the exception). Calling checkDependencies() does not check for mismatched kotlin-stdlib versions anymore.
add checkJavaClassFiles(), checkKotlinMetadata() and checkKotlinStdlibs() (#74).
You may now enable/disable check individually. checkDependencies() is still present and calls both checkJavaClassFiles()and checkKotlinMetadata().
All changes
- [NEW] Add
TapmocExtension.gradle()for configuring Gradle plugins (#35) - [NEW] Checking for
kotlin-stdlibversions in dependencies is now a separate check (#74) - [NEW] Fail if the requested Kotlin version is higher than the KGP version (#72)
- [UPDATE] Update Gratatouille (#75)
- [FIX] Fix getting the java-api and java-runtime dependencies for Android (#74)
- [FIX] Fix downgrading the
kotlin-stdlibversion for Android (#74)
v0.3.2
v0.3.1
- [NEW] Add a specific error message to warn about
java-gradle-pluginaddinggradleApi()in the wrong configuration (#65) - [FIX] Support for
com.android.testandcom.android.dynamic-featureplugins (#62, #63) - [BREAKING] Remove
com.gradleup.compat.patrouillelegacy plugin. It was only provided as a helper for the rename (#64)
Many thanks @simonlebras for catching the com.android.test regression 🙏
v0.3.0
This release adds checkDependencies(), checks for Java class files versions and hopefully makes the plugin more lazy and more robust.
Changes:
- [NEW] Add
checkDependencies()as a shortcut for bothcheckApiDependencies()andcheckRuntimeDependencies().checkDependencies()also checks for the Java class files version (#58, #49, #37) - [FIX] Make the plugin react to other plugins (#51, #58). The order in which plugins are applied should now be unimportant.
- [FIX] Reorganize the dependency checking logic and only check the dependencies for JVM consumable configurations. Test dependencies are not checked anymore (#47).
- [CHANGE] Checking the dependencies is now lenient. If no java/kotlin version is set, no check will be made and no error will be raised. (#53)
- [CHANGE] Downgrade the JVM stdlib instead of setting
coreLibrariesVersion. SettingcoreLibrariesVersionhad unfortunate effects in KMP projects and I hope this approach will be more robust (#49, #56).
v0.2.0
Project is renamed to tapmoc
tapmoc is backwards compat! Many thanks @JakeWharton for the nice name 💙
You'll need to update your plugin id and extension block:
plugins {
// Replace
id("com.gradleup.compat.patrouille").version("0.1.0")
// With
id("com.gradleup.tapmoc").version("0.2.0")
}
// replace
compatPatrouille {
java(17)
kotlin("2.0.0")
}
// with
tapmoc {
java(17)
kotlin("2.0.0")
}See #5 for more details.
Other changes
TapmocExtension::kotlin()may now be called even if KGP is not present in the build classpath (#42). This makes it easier to use tapmoc in a central convention plugin. It also allows checking runtime dependencies for incompatible usages ofkotlin-stdlibfor Java projects that may rely on Kotlin dependencies.- Use
implementationinstead ofapifor thekotlin-stdlibconfiguration of non-JVM tests, fixes a warning when using KGP 2.3.0. (#41) - Make the plugin uses lazier Gradle APIs (#33, #34), many thanks @simonlebras.
v0.1.0
Add support for com.android.kotlin.multiplatform.library in #31
New Contributors
- @milosgarunovic made their first contribution in #30
Full Changelog: v0.0.3...v0.1.0
v0.0.3
v0.0.2
A few bugfixes, upgrades and ergonomics improvements. Many thanks @OliverO2 and @Mr3zee for their feedback in this release.
What's Changed
- [NEW] Add compatPatrouilleCheckRuntimeDependencies as a lifecycle task #23
- [NEW] For JS and Wasm, add the KGP kotlin-stdlib instead of relying on
coreLibrariesVersion#24 - [FIX] Make checkApiDependencies lazier #20
- [FIX] Fix KMP with multiple targets #21
- [UPGRADE] Use latest kotlin-metadata lib #22
Full Changelog: v0.0.1...v0.0.2
v0.0.1
Version 0.0.1 adds 2 new tasks to check the API and Runtime dependencies and fixes declaring the Kotlin compatibility of common source sets.
What's Changed
- [NEW] Introduce
checkApiDependencies()by @martinbonnin in #2 - [NEW] Introduce
checkRuntimeDependencies()by @martinbonnin in #16 - [FIX] Fix detecting apiVersion in
commonMainandcommonTestsource sets by @martinbonnin in #7 - [UPDATE] update KGP, simplify GitHub actions files by @martinbonnin in #9
- [UPDATE] Bump gradle to 9 by @martinbonnin in #15
- [MISC] Add more integration tests by @martinbonnin in #10
Full Changelog: v0.0.0...v0.0.1
v0.0.0
Release 0.0.0