Skip to content

Conversation

bigdaz
Copy link
Member

@bigdaz bigdaz commented Jun 29, 2019

Fixes #1697 (currently most 👍 for Gradle Build Tool)

There remain some limitations in the implementation.

  • Property replacement is not supported for Kotlin DSL: the project properties are not in scope when invoking the plugins block.
  • The Groovy DSL leaks the (not-yet-initialized) Project instance into the plugins block. This is mitigated by:

@bigdaz bigdaz requested review from JLLeitschuh and big-guy June 29, 2019 00:07
@bigdaz bigdaz merged commit 41442d8 into master Jun 29, 2019
@bigdaz
Copy link
Member Author

bigdaz commented Jun 29, 2019

@big-guy @JLLeitschuh To obtain closure, I've merged this to master pre-review. I'll leave it in your capable hands to decide: accept/revert/improve.

Thanks!!!!

@bigdaz bigdaz deleted the dd/plugins-property-replacement branch June 29, 2019 00:12
2 | 'id("noop").version("part-${unknown}-part")' | "Could not get unknown property 'unknown'"
}


Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Formatting

verifyPluginApplied('2.0')
}

def "can specify plugin version using buildSrc constant"() {
Copy link

Choose a reason for hiding this comment

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

pardon for necro-posting, but this test is exactly the same as previous

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.

Allow the plugin DSL to expand properties as part of the version

3 participants