mirror of
https://github.com/corda/corda.git
synced 2024-12-19 04:57:58 +00:00
Merge pull request #5960 from corda/chrisr3-groovy-fix
ENT-4652: Tighten Groovy code for writing META-INF/Cordapp-Dependencies.
This commit is contained in:
commit
014a03575e
@ -63,10 +63,13 @@ dependencies {
|
|||||||
def cordappDependencies = file("${sourceSets['main'].output.resourcesDir}/META-INF/Cordapp-Dependencies")
|
def cordappDependencies = file("${sourceSets['main'].output.resourcesDir}/META-INF/Cordapp-Dependencies")
|
||||||
task generateDependencies {
|
task generateDependencies {
|
||||||
dependsOn project(':finance:contracts').tasks.jar
|
dependsOn project(':finance:contracts').tasks.jar
|
||||||
|
inputs.files(configurations.cordapp)
|
||||||
outputs.files(cordappDependencies)
|
outputs.files(cordappDependencies)
|
||||||
doLast {
|
doLast {
|
||||||
|
cordappDependencies.newWriter().withWriter { writer ->
|
||||||
configurations.cordapp.forEach { cordapp ->
|
configurations.cordapp.forEach { cordapp ->
|
||||||
cordappDependencies << sha256(cordapp) << System.lineSeparator()
|
writer << sha256(cordapp) << System.lineSeparator()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user