Created
November 23, 2016 23:22
-
-
Save qinyu/0d655a11f7a8fe2fdfff93498f4aedfb to your computer and use it in GitHub Desktop.
使用依赖的dynamic version时忽略snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configurations.all { configuration -> | |
configuration.resolutionStrategy { ResolutionStrategy componentSelection -> | |
componentSelection.componentSelection { rules -> | |
rules.all { ComponentSelection selection, ComponentMetadata metadata -> | |
boolean accepted = metadata.status == 'release' | |
if (!accepted) { | |
selection.reject("Component status ${metadata.status} rejected by release") | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment