Skip to content

Commit

Permalink
#24 ensure compatibility with Gradle 8.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
klu2 committed Mar 6, 2023
1 parent 1612751 commit bfebd47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Expand Up @@ -8,6 +8,8 @@ import org.assertj.core.api.Assertions.assertThat
import org.gradle.testkit.runner.TaskOutcome
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.ValueSource
import java.nio.file.Paths
import kotlin.io.path.exists

Expand All @@ -23,9 +25,10 @@ class LicensePluginTest {
assertThat(result2.task(":clfLicenseReport")?.outcome).isEqualTo(TaskOutcome.UP_TO_DATE)
}

@Test
fun `clfLicenseReport is called with clean build`(): Unit =
licenseFixture("single-java-module") {
@ParameterizedTest
@ValueSource(strings = ["7.4.2", "7.6", "8.0.2"])
fun `clfLicenseReport is called with clean build`(gradleVersion: String): Unit =
licenseFixture("single-java-module", gradleVersion = gradleVersion) {
val result = run("clean", "build", "clfCreateTrackerReport")
assertThat(result.task(":clfLicenseReport")?.outcome).isEqualTo(TaskOutcome.SUCCESS)
}
Expand Down Expand Up @@ -154,7 +157,7 @@ class LicensePluginTest {
}

@Test
fun `android-module build`():Unit = licenseFixture("android-module") {
fun `android-module build`(): Unit = licenseFixture("android-module") {
val result = runCleanBuild()
assertThat(result.task(":app:clfLicenseReport")?.outcome).isEqualTo(TaskOutcome.SUCCESS)

Expand Down

0 comments on commit bfebd47

Please sign in to comment.