-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support configuration-specific dependency management with Gradle's Kotlin DSL #320
Comments
Unfortunately, I don't think you can at the moment. The support is built using Groovy's method missing feature which doesn't translate correctly to the Kotlin DSL. You have two options for the time being:
The second option would leave your example looking like this:
As a slight aside, instead of declaring dependency management for each of Spring Framework's modules individually, you may want to consider importing |
A workaround is to call Define some extension functions:
This enables management of dependencies by configuration object or name:
|
java-conventions.gradle.kts
https://docs.spring.io/dependency-management-plugin/docs/current-SNAPSHOT/reference/html/#working-with-managed-versions-dependency-management-task
I can't build
testImplementation
DSL in precompiled scripts. How can I usetestImplementation
likes maven test scope in dependency management?The text was updated successfully, but these errors were encountered: