Skip to content

Commit

Permalink
Set minimal gradle version via variant attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
serpro69 committed Dec 23, 2023
1 parent 64f6579 commit 4ec953e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions semantic-versioning/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ configurations {
getByName("functionalTestRuntimeOnly") { extendsFrom(testRuntimeOnly.get()) }
}

configurations.configureEach {
if (isCanBeConsumed) {
attributes {
attribute(
GradlePluginApiVersion.GRADLE_PLUGIN_API_VERSION_ATTRIBUTE,
objects.named("7.5")
)
}
}
}

val release = project.rootProject.subprojects.first { it.name == "release" }
?: throw GradleException("release project not found")

Expand Down

0 comments on commit 4ec953e

Please sign in to comment.