bootstrap: Skip injection-annotations

This commit is contained in:
Owain van Brakel
2022-04-29 20:06:43 +02:00
parent ab891b425e
commit 60d90a58d5

View File

@@ -128,6 +128,10 @@ open class BootstrapTask @Inject constructor(@Input val type: String) : DefaultT
val artifactsSet = HashSet<String>() val artifactsSet = HashSet<String>()
project.configurations["runtimeClasspath"].resolvedConfiguration.resolvedArtifacts.forEach { project.configurations["runtimeClasspath"].resolvedConfiguration.resolvedArtifacts.forEach {
if (it.file.name.contains("injection-annotations")) {
return@forEach
}
val module = it.moduleVersion.id.toString() val module = it.moduleVersion.id.toString()
val splat = module.split(":") val splat = module.split(":")
@@ -206,7 +210,7 @@ open class BootstrapTask @Inject constructor(@Input val type: String) : DefaultT
if (!artifactsSet.contains(filePath)) { if (!artifactsSet.contains(filePath)) {
artifactsSet.add(filePath) artifactsSet.add(filePath)
val sha = if(it.file.name.contains("injection-annotations")) "bf1ef2a463fca3e1ece80c70d63a5f5f8ce7b260396175de0d7a8e98f2c4d06b" else hash(artifactFile.readBytes()) val sha = hash(artifactFile.readBytes())
val json = JsonBuilder( val json = JsonBuilder(
"name" to it.file.name, "name" to it.file.name,