Skip to content

Commit cce32d7

Browse files
committed
attempt to fix the failing CI builds
- squash this commit if it works
1 parent c9660f2 commit cce32d7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

archunit-junit/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,17 @@ def addCleanThirdPartyTask = {
6969
inputs.file(jarPath)
7070
from zipTree(jarPath)
7171
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()
7276

7377
doLast {
7478
assert jarPath.delete()
7579
assert tempPath.renameTo(jarPath)
7680
}
7781
}
78-
finishArchive.dependsOn removeDuplicateThirdParty
82+
finishArchive.dependsOn replaceArchiveWithCleanedThirdParty
7983
}
8084
ext.configureJUnitArchive = { configureDependencies ->
8185
return {

0 commit comments

Comments
 (0)