File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,12 @@ allprojects {
6868}
6969
7070val 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()
7274val develocityInjectionResolvable = configurations.resolvable(" ${develocityInjection.name} Resolvable" ) {
7375 extendsFrom(develocityInjection)
76+ attributes.attribute(Category .CATEGORY_ATTRIBUTE , objects.named(" develocity-injection-script" ))
7477}
7578val develocityComponents by configurations.creating {
7679 attributes.attribute(
Original file line number Diff line number Diff line change @@ -29,3 +29,12 @@ rootProject.name = "build-validation-scripts"
2929include(" components/configure-gradle-enterprise-maven-extension" )
3030
3131project(" :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