Gradle plugin for JVM projects written in Java, Kotlin, Groovy, or Scala; and Android projects written in Java or Kotlin. Provides advice for managing dependencies and other applied plugins
Apache License 2.0
1.67k
stars
115
forks
source link
[TestKit Plugin] gradle-testkit-support version problem #1109
Describe the bug
There are some issues with the latest version released for the TestKit plugin.
First of all the default withSupportLibrary points to an unreleased 0.16 version of the support lib, that was fixed in this commit but not released.
Not a big deal as you can set your own value, but using the latest gradle-testkit-truth library also fails as it depends on an unreleased 0.16-SNAPSHOT version of the support library.
You can see it even in the maven repo: https://mvnrepository.com/artifact/com.autonomousapps/gradle-testkit-truth/1.6
Using 0.15 works (and using 0.16 and constraints should work too) but it is a bit difficult to understand why everything fails if you follow the readme (which also needs some updates)
To Reproduce
Steps to reproduce the behavior:
Create new project
Add the plugin and support/truth dependencies to it
Thanks for the issue! I am aware of that problem and it has been fixed on main already -- but I haven't published a new release with that fix. I will do that.
Plugin version 0.9
Gradle version 8.1.1
JDK version OpenJDK 11
Describe the bug There are some issues with the latest version released for the TestKit plugin. First of all the default
withSupportLibrary
points to an unreleased 0.16 version of the support lib, that was fixed in this commit but not released. Not a big deal as you can set your own value, but using the latestgradle-testkit-truth
library also fails as it depends on an unreleased 0.16-SNAPSHOT version of the support library. You can see it even in the maven repo: https://mvnrepository.com/artifact/com.autonomousapps/gradle-testkit-truth/1.6 Using 0.15 works (and using 0.16 and constraints should work too) but it is a bit difficult to understand why everything fails if you follow the readme (which also needs some updates)To Reproduce Steps to reproduce the behavior:
Expected behavior Works
Additional context