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 24, 2024
1 parent 5c039f7 commit a3ad9d4
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 a3ad9d4

Please sign in to comment.