File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,12 @@ allprojects {
68
68
}
69
69
70
70
val argbash by configurations.creating
71
- val develocityInjection = configurations.dependencyScope(" develocityInjection" ).get()
71
+ val develocityInjection = configurations.dependencyScope(" develocityInjection" ) {
72
+ attributes.attribute(Category .CATEGORY_ATTRIBUTE , objects.named(" develocity-injection-script" ))
73
+ }.get()
72
74
val develocityInjectionResolvable = configurations.resolvable(" ${develocityInjection.name} Resolvable" ) {
73
75
extendsFrom(develocityInjection)
76
+ attributes.attribute(Category .CATEGORY_ATTRIBUTE , objects.named(" develocity-injection-script" ))
74
77
}
75
78
val develocityComponents by configurations.creating {
76
79
attributes.attribute(
Original file line number Diff line number Diff line change @@ -29,3 +29,12 @@ rootProject.name = "build-validation-scripts"
29
29
include(" components/configure-gradle-enterprise-maven-extension" )
30
30
31
31
project(" :components/configure-gradle-enterprise-maven-extension" ).name = " configure-gradle-enterprise-maven-extension"
32
+
33
+ val develocityCiInjectionProjectDir = providers.gradleProperty(" develocityCiInjectionProjectDir" )
34
+ if (develocityCiInjectionProjectDir.isPresent) {
35
+ includeBuild(develocityCiInjectionProjectDir) {
36
+ dependencySubstitution {
37
+ substitute(module(" com.gradle:develocity-injection" )).using(project(" :" ))
38
+ }
39
+ }
40
+ }
You can’t perform that action at this time.
0 commit comments