Skip to content

Releases: GradleUp/Tapmoc

v0.4.0

29 Dec 18:32
ba16a24

Choose a tag to compare

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-stdlib versions 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-stdlib version for Android (#74)

v0.3.2

16 Dec 15:11
906d701

Choose a tag to compare

A patch release with fixes, mainly for KMP.

  • [NEW] Ignore class files in org/gradle/internal/impldep/META-INF/versions/ (#68)
  • [FIX] Fix parsing the java version for Java < 5 (#68)
  • [FIX] Fix downgrading the JVM kotlin-stdlib for KMP projects (#67, #69)

v0.3.1

09 Dec 17:25
dbc02c9

Choose a tag to compare

  • [NEW] Add a specific error message to warn about java-gradle-plugin adding gradleApi() in the wrong configuration (#65)
  • [FIX] Support for com.android.test and com.android.dynamic-feature plugins (#62, #63)
  • [BREAKING] Remove com.gradleup.compat.patrouille legacy 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

08 Dec 00:03

Choose a tag to compare

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 both checkApiDependencies() and checkRuntimeDependencies(). 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. Setting coreLibrariesVersion had unfortunate effects in KMP projects and I hope this approach will be more robust (#49, #56).

v0.2.0

27 Nov 09:04
a7f79a7

Choose a tag to compare

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 of kotlin-stdlib for Java projects that may rely on Kotlin dependencies.
  • Use implementation instead of api for the kotlin-stdlib configuration 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

10 Oct 12:33

Choose a tag to compare

Add support for com.android.kotlin.multiplatform.library in #31

New Contributors

Full Changelog: v0.0.3...v0.1.0

v0.0.3

06 Oct 08:36

Choose a tag to compare

Do not configure JavaCompile tasks eagerly (#27)

v0.0.2

20 Aug 07:54
54f9ec5

Choose a tag to compare

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

11 Aug 09:09
0ba418e

Choose a tag to compare

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

Full Changelog: v0.0.0...v0.0.1

v0.0.0

08 Apr 21:14

Choose a tag to compare

Release 0.0.0