-
Notifications
You must be signed in to change notification settings - Fork 16
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
Replace <version>-android with <version>-jre #97
Comments
It's too opinionated to make a default rule, but I wrote one internally that I have sitting on a branch - the only way we can do it with rules is with one specific to every version. Feel free to PR us over at https://github.com/nebula-plugins/gradle-resolution-rules if you want to add this as an optional rule (filename must start with
|
I feared that this would be the result, keeping this up to date will be a pain. There are already many more versions out. I guess that #42 needs to be resolved and support for capturing groups needs to be added so that one could write: "substitute": [
{
"module" : "com.google.guava:guava:(.*)-android",
"with" : "com.google.guava:guava:$1-jre",
"reason" : "Avoid Android/JDK 7 subset of Guava",
"author" : "Danny Thomas <[email protected]>",
"date" : "2018-03-14"
}
] |
I am currently using the following snippet in my
build.gradle.kts
but would love to replace this with a rule for the plugin:I couldn't figure out how to do this based on the information available in the Wiki.
The text was updated successfully, but these errors were encountered: