Skip to content

Commit 453e456

Browse files
committed
also fix gradle plugin to be early enough in the chain
1 parent efdd32b commit 453e456

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

buildSrc/src/main/kotlin/datadog/gradle/plugin/muzzle/MuzzleMavenRepoUtils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ internal object MuzzleMavenRepoUtils {
110110
module = muzzleDirective.module
111111
versions = version.toString()
112112
assertPass = !muzzleDirective.assertPass
113+
additionalRepositories = muzzleDirective.additionalRepositories
113114
excludedDependencies = muzzleDirective.excludedDependencies
114115
includeSnapshots = muzzleDirective.includeSnapshots
115116
}

buildSrc/src/main/kotlin/datadog/gradle/plugin/muzzle/MuzzlePlugin.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ class MuzzlePlugin : Plugin<Project> {
185185
}
186186
}
187187
instrumentationProject.configurations.register(muzzleTaskName) {
188+
MuzzleExcludedDependencySupport.applyTo(instrumentationProject, this, muzzleDirective, versionArtifact)
189+
188190
if (!muzzleDirective.isCoreJdk && versionArtifact != null) {
189191
val depId = buildString {
190192
append("${versionArtifact.groupId}:${versionArtifact.artifactId}:${versionArtifact.version}")

0 commit comments

Comments
 (0)