We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9660f2 commit cce32d7Copy full SHA for cce32d7
1 file changed
archunit-junit/build.gradle
@@ -69,13 +69,17 @@ def addCleanThirdPartyTask = {
69
inputs.file(jarPath)
70
from zipTree(jarPath)
71
archiveFileName = tempPath.name
72
+ }
73
+ tasks.create(name: 'replaceArchiveWithCleanedThirdParty', dependsOn: removeDuplicateThirdParty) {
74
+ File tempPath = tempJar(jar.archiveFile.get().getAsFile())
75
+ File jarPath = shadowJar.archiveFile.get().getAsFile()
76
77
doLast {
78
assert jarPath.delete()
79
assert tempPath.renameTo(jarPath)
80
}
81
- finishArchive.dependsOn removeDuplicateThirdParty
82
+ finishArchive.dependsOn replaceArchiveWithCleanedThirdParty
83
84
ext.configureJUnitArchive = { configureDependencies ->
85
return {
0 commit comments