Skip to content

v0.5.0

Latest

Choose a tag to compare

@martinbonnin martinbonnin released this 13 Oct 14:25
· 1 commit to main since this release

New package name

Tapmoc 0.5.0 also changes the package name from tapmoc to com.gradleup.tapmoc to avoid a conflict with the top-level tapmoc extension in Gradle scripts. Update your imports:

// Replace 
import Severity.ERROR
// With
import com.gradleup.tapmoc.Severity.ERROR

Changed dependencies detection machinery

Tapmoc 0.5.0 changes the internal machinery that tried to auto-detect the api/runtime outgoing configuration for dependency checking. Instead of using Gradle attribute-aware resolution, Tapmoc 0.5.0 acts on "known" outgoing configuration names such as "apiElements", "runtimeElements", "releaseApiElements", etc...

Relying only on attributes was creating hard to diagnose resolution issues (see #100, gradle/gradle#12126 and https://github.com/liutikas/gmm-wiki).

This change should be transparent for most cases unless you declare custom outgoing variants. In those cases, you'll need to specify the outgoing configuration name explicitly:

tapmoc {
  checkJavaClassfiles("java8ApiElements", provider { Severity.ERROR })
  checkJavaClassfiles("java8RuntimeElements", provider { Severity.ERROR })
  checkKotlinMetadata("java8ApiElements", provider { Severity.ERROR })
}

While this change puts more load on the caller in some edge cases (by not trying to auto-detect all possible outgoing variants), we believe it's going to be safer to debug and maintain in the long run.

All changes

  • [BREAKING] The package name is now com.gradleup.tapmoc (was tapmoc) to avoid a conflict with the top-level tapmoc extension in Gradle scripts. Update your imports (#115)
  • [CHANGED] Robustify the handling of dependency checks (#107, #112)
  • [FIX] Ignore module-info.class and class files with a non lower-case .class extension when checking class file versions (#109)
  • [NEW] Add tapmocCheckDependencies, a task that runs all the Tapmoc dependency checks (Kotlin stdlib, Kotlin metadata and Java class files versions) (#116)
  • [NEW] Add checkJavaClassFiles() and checkKotlinMetadata() overloads taking a Provider<Severity> (#114)
  • [NEW] Support Gradle 8.0 (#112)