We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c808691 commit 6b787d4Copy full SHA for 6b787d4
1 file changed
build.gradle.kts
@@ -46,13 +46,11 @@ java {
46
//
47
// This project is a dependency of all C Thing Software projects. Therefore, to avoid circular
48
// dependencies, it should not depend on any C Thing Software project.
49
+val prohibitedGroups = setOf("org.cthing", "com.cthing")
50
configurations.all {
- resolutionStrategy {
51
- eachDependency {
52
- val prohibitedGroups = listOf("org.cthing", "com.cthing")
53
- if (requested.group in prohibitedGroups) {
54
- throw GradleException("A dependency on '${requested.group}:${requested.name}' is prohibited.")
55
- }
+ resolutionStrategy.eachDependency {
+ if (requested.group in prohibitedGroups) {
+ throw GradleException("A dependency on '${requested.group}:${requested.name}' is prohibited.")
56
}
57
58
0 commit comments