Skip to content

Commit

Permalink
Add consumable configuration exposing the injection script
Browse files Browse the repository at this point in the history
  • Loading branch information
erichaagdev committed Oct 25, 2024
1 parent 1e6e93e commit 93a3c73
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ plugins {
`jvm-test-suite`
}

group = "com.gradle"

repositories {
mavenCentral()
}
Expand Down Expand Up @@ -40,3 +42,11 @@ tasks.register<Copy>("promote") {
}
into("reference")
}

// Exposes the init script as a resolvable artifact when this project is used as
// an included build.
configurations.consumable("develocityInjectionScript") {
attributes.attribute(Category.CATEGORY_ATTRIBUTE, objects.named("develocity-injection-script"))
outgoing.artifact(tasks.named<ProcessResources>("processResources")
.map { it.destinationDir.resolve("develocity-injection.init.gradle") })
}

0 comments on commit 93a3c73

Please sign in to comment.