Kotlin / binary-compatibility-validator

Public API management tool
Apache License 2.0
759 stars 55 forks source link

Add Gradle version compatibility tests #222

Open fzhinkin opened 2 months ago

fzhinkin commented 2 months ago

Readme claims that BCV works with Gradle >= 6.0.

There are no tests checking that, so we need to add them.

fzhinkin commented 2 months ago

I tried to add such functional tests, but, for some reason, tests use project's Kotlin version (1.9.22) instead of the version specified in the test's build config. And 1.9.22 requires Gradle 6.8.3 or later.

aSemy commented 2 months ago

for some reason, tests use project's Kotlin version (1.9.22) instead of the version specified in the test's build config

This is probably because of withPluginClasspath()

https://github.com/Kotlin/binary-compatibility-validator/blob/3a7003363502236e64bbf044540e569b3eb808a4/src/functionalTest/kotlin/kotlinx/validation/api/TestDsl.kt#L40