Skip to content

Commit

Permalink
Add a check to ensure the checksum workaround is in place
Browse files Browse the repository at this point in the history
This adds a check to the start of the build script
to verify that the build is being performed with the
org.gradle.internal.publish.checksums.insecure property set. This
ensures that the project can be deployed to Central without checksum
issues.

References: gradle/gradle#11308 (comment)
  • Loading branch information
io7m committed Apr 16, 2020
1 parent 907acd9 commit 178640d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Expand Up @@ -3,6 +3,11 @@ buildscript {
throw new GradleException("Gradle version 6.3 is required (received $gradle.gradleVersion)")
}

// https://github.com/gradle/gradle/issues/11308#issuecomment-554317655
if (System.properties['org.gradle.internal.publish.checksums.insecure'] != 'true') {
throw new GradleException("org.gradle.internal.publish.checksums.insecure must be 'true'")
}

ext.kotlin_version = "1.3.70"
ext.nav_version = "2.3.0-alpha04"

Expand Down

0 comments on commit 178640d

Please sign in to comment.