Skip to content

Conversation

hfhbd
Copy link

@hfhbd hfhbd commented Nov 5, 2024

No description provided.

@@ -170,7 +170,7 @@ private fun KotlinVersion.atLeast(major: Int, minor: Int, patch: Int) =
private fun Project.isCompilerPluginAvailable() = getKotlinVersion().atLeast(1, 6, 20)

internal fun Project.getBooleanProperty(name: String) =
rootProject.findProperty(name)?.toString()?.toBooleanStrict() ?: false
providers.gradleProperty(name).orNull?.toBooleanStrict() ?: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is also worth looking into ExtraPropertiesExtension extension

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly do you mean? AFAIK, you should avoid the (untyped) ext api too.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

findProperty could previously look through extra properties.
And I mean from the 'less breaking change' point of view we should support ext as well.

@dkrasnoff dkrasnoff requested review from dkrasnoff and removed request for dkrasnoff December 6, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants