Skip to content

Commit

Permalink
Remove checksum to allow publishing new versions without code change.
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga authored Oct 7, 2021
1 parent 2d8f7d3 commit e490823
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ protobuf {
}

val protoVersion = version.toString().removeSuffix("-SNAPSHOT").removeSuffix("-alpha")
// To generate checksum, download the file and run "shasum -a 256 ~/path/to/vfoo.zip"
val protoChecksum = "5e4131064e9471eb09294374db0d55028fdb73898b08aa07a835d17d61e5f017"
val protoArchive = file("$buildDir/archives/opentelemetry-proto-$protoVersion.zip")

tasks {
Expand All @@ -77,15 +75,8 @@ tasks {
dest(protoArchive)
}

val verifyProtoArchive by registering(Verify::class) {
dependsOn(downloadProtoArchive)
src(protoArchive)
algorithm("SHA-256")
checksum(protoChecksum)
}

val unzipProtoArchive by registering(Copy::class) {
dependsOn(verifyProtoArchive)
dependsOn(downloadProtoArchive)
from(zipTree(protoArchive))
into("$buildDir/protos")
}
Expand Down

0 comments on commit e490823

Please sign in to comment.