1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
From: =?utf-8?b?SsOpcsO0bWUgQ2hhcmFvdWk=?= <jerome@riseup.net>
Date: Wed, 20 Jul 2022 10:38:57 -0400
Subject: remove dynamic project properties
Forwarded: not-needed
---
build.gradle | 18 ------------------
1 file changed, 18 deletions(-)
Index: pgpainless/build.gradle
===================================================================
--- pgpainless.orig/build.gradle
+++ pgpainless/build.gradle
@@ -54,27 +54,9 @@ allprojects {
project.ext {
rootConfigDir = new File(rootDir, 'config')
- gitCommit = getGitCommit()
- isContinuousIntegrationEnvironment = Boolean.parseBoolean(System.getenv('CI'))
- isReleaseVersion = !isSnapshot
- signingRequired = !(isSnapshot || isContinuousIntegrationEnvironment)
- sonatypeCredentialsAvailable = project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePassword')
- sonatypeSnapshotUrl = 'https://oss.sonatype.org/content/repositories/snapshots'
- sonatypeStagingUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
}
- if (isSnapshot) {
- version = version + '-SNAPSHOT'
- }
def projectDirFile = new File("$projectDir")
- if (!project.ext.isSnapshot && !'git describe --exact-match HEAD'.execute(null, projectDirFile).text.trim().equals(ext.shortVersion)) {
- throw new InvalidUserDataException('Untagged version detected! Please tag every release.')
- }
- if (!version.endsWith('-SNAPSHOT') && version != 'git tag --points-at HEAD'.execute(null, projectDirFile).text.trim()) {
- throw new InvalidUserDataException(
- 'Tag mismatch detected, version is ' + version + ' but should be ' +
- 'git tag --points-at HEAD'.execute(null, projectDirFile).text.trim())
- }
test {
useJUnitPlatform()
|