diff --git a/nebula-archrules-gradle-plugin/gradle.lockfile b/nebula-archrules-gradle-plugin/gradle.lockfile index a3d4091..57a6d99 100644 --- a/nebula-archrules-gradle-plugin/gradle.lockfile +++ b/nebula-archrules-gradle-plugin/gradle.lockfile @@ -15,7 +15,7 @@ com.netflix.nebula:archrules-security:0.9.0=archRules,mainArchRulesRuntime,testA com.netflix.nebula:archrules-testing-frameworks:0.9.0=archRules,mainArchRulesRuntime,testArchRulesRuntime com.netflix.nebula:nebula-archrules-core:0.14.2=mainArchRulesRuntime,testArchRulesRuntime com.netflix.nebula:nebula-archrules-core:0.8.0=archRules -com.netflix.nebula:nebula-test:11.12.0=testArchRulesRuntime,testCompileClasspath,testRuntimeClasspath +com.netflix.nebula:nebula-test:12.0.0=testArchRulesRuntime,testCompileClasspath,testRuntimeClasspath com.tngtech.archunit:archunit:1.4.1=archRules,compileClasspath,mainArchRulesRuntime,runtimeClasspath,testArchRulesRuntime,testCompileClasspath,testRuntimeClasspath io.github.java-diff-utils:java-diff-utils:4.12=kotlinInternalAbiValidation net.bytebuddy:byte-buddy:1.18.3=testArchRulesRuntime,testCompileClasspath,testRuntimeClasspath diff --git a/nebula-archrules-gradle-plugin/src/main/kotlin/com/netflix/nebula/archrules/gradle/ArchrulesRunnerPlugin.kt b/nebula-archrules-gradle-plugin/src/main/kotlin/com/netflix/nebula/archrules/gradle/ArchrulesRunnerPlugin.kt index 550fc4d..1f7b083 100644 --- a/nebula-archrules-gradle-plugin/src/main/kotlin/com/netflix/nebula/archrules/gradle/ArchrulesRunnerPlugin.kt +++ b/nebula-archrules-gradle-plugin/src/main/kotlin/com/netflix/nebula/archrules/gradle/ArchrulesRunnerPlugin.kt @@ -55,17 +55,13 @@ class ArchrulesRunnerPlugin : Plugin { project.configureCheckTaskForSourceSet(this, archRulesExt) } - val jsonReportDependencies = project.configurations.dependencyScope("archRulesJsonReporting"){ - project.dependencies.add(this.name, ARCHRULES_DEPENDENCY) - project.dependencies.add(this.name, JACKSON_DEPENDENCY) - } - val jsonReportClasspath = project.configurations.resolvable("archRulesJsonReportingResolved"){ - extendsFrom(jsonReportDependencies.get()) - } val jsonReportTask = project.tasks.register("archRulesJsonReport") { dataFiles.from(project.tasks.withType()) getJsonReportFile().set(archRulesReportDir.map { it.file("report.json").asFile }) - reportingClasspath.setFrom(jsonReportClasspath) + reportingClasspath.setFrom(project.configurations.detachedConfiguration( + project.dependencies.create(ARCHRULES_DEPENDENCY), + project.dependencies.create(JACKSON_DEPENDENCY) + )) onlyIf { archRulesExt.jsonReportEnabled.get() } }