File: 0005-remove-dynamic-project-properties.patch

package info (click to toggle)
pgpainless 1.6.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,472 kB
  • sloc: java: 45,272; xml: 217; sh: 86; makefile: 74; python: 31
file content (41 lines) | stat: -rw-r--r-- 1,837 bytes parent folder | download
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()