libsignal-service-java/libsignal-service-java.patch

155 lines
5.5 KiB
Diff
Raw Normal View History

2022-03-22 01:59:33 +00:00
From db07031c50fd4418bb64b000399c9746abeff44d Mon Sep 17 00:00:00 2001
From: signald <nobody@signald.org>
2022-03-22 01:58:14 +00:00
Date: Mon, 21 Mar 2022 18:40:29 -0700
2021-10-27 02:46:14 +00:00
Subject: [PATCH] update gradle files
2021-10-27 01:01:41 +00:00
---
build.gradle | 18 +++---------------
dependencies.gradle | 3 +--
2022-03-22 01:58:14 +00:00
gradle/verification-metadata.xml | 10 +++++-----
service/build.gradle | 21 ++++++++++-----------
settings.gradle | 1 -
2022-03-22 01:58:14 +00:00
5 files changed, 19 insertions(+), 34 deletions(-)
2021-10-27 01:01:41 +00:00
diff --git a/build.gradle b/build.gradle
2022-03-22 01:58:14 +00:00
index 7b6a436..6641bb0 100644
2021-10-27 01:01:41 +00:00
--- a/build.gradle
+++ b/build.gradle
2021-11-08 23:47:39 +00:00
@@ -1,5 +1,6 @@
buildscript {
2021-11-08 23:18:19 +00:00
repositories {
2021-11-08 23:47:39 +00:00
+ maven {url "https://gitlab.com/api/v4/groups/6853927/-/packages/maven"} // https://gitlab.com/groups/signald/-/packages
2021-11-08 23:18:19 +00:00
google()
mavenCentral()
}
@@ -9,11 +10,7 @@ buildscript {
}
}
-plugins {
- id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
-}
-
-project.group = "com.github.turasa"
+project.group = "org.signald"
def getRepositoryUsername() {
return hasProperty('whisperSonatypeUsername') ? whisperSonatypeUsername : ""
@@ -23,18 +20,9 @@ def getRepositoryPassword() {
2021-10-27 02:46:14 +00:00
return hasProperty('whisperSonatypePassword') ? whisperSonatypePassword : ""
2021-10-27 01:01:41 +00:00
}
2021-10-27 02:46:14 +00:00
-nexusPublishing {
- repositories {
- sonatype {
- username = getRepositoryUsername()
- password = getRepositoryPassword()
- }
- }
-}
-
subprojects {
2022-03-22 01:58:14 +00:00
ext.lib_signal_service_version_number = "2.15.3_unofficial_45"
- ext.lib_signal_service_group_info = "com.github.turasa"
+ ext.lib_signal_service_group_info = "org.signald"
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
2021-10-27 01:01:41 +00:00
diff --git a/dependencies.gradle b/dependencies.gradle
2022-03-22 01:58:14 +00:00
index d468f38..1f0ba1b 100644
2021-10-27 01:01:41 +00:00
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -8,8 +8,7 @@ dependencyResolutionManagement {
alias('google-libphonenumber').to('com.googlecode.libphonenumber:libphonenumber:8.12.33')
2021-10-27 01:01:41 +00:00
// 1st Party
- alias('signal-client-java').to('org.whispersystems', 'signal-client-java').versionRef('signal-client')
2021-10-27 02:46:14 +00:00
- alias('signal-client-android').to('org.whispersystems', 'signal-client-android').versionRef('signal-client')
2022-03-22 01:58:14 +00:00
+ alias('signal-client-java').to('org.signald', 'signal-client-java-' + System.getenv("TARGET")).versionRef('signal-client')
2021-10-27 01:01:41 +00:00
// Third Party
alias('jackson-core').to('com.fasterxml.jackson.core:jackson-databind:2.13.0')
diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml
2022-03-22 01:59:33 +00:00
index 261b8e2..da3309a 100644
--- a/gradle/verification-metadata.xml
+++ b/gradle/verification-metadata.xml
2022-03-22 01:58:14 +00:00
@@ -1148,12 +1148,12 @@
<sha256 value="ebcdde2d03c677dbefd612819b8cf477cbb35872f1d59d4ab61bda3d56a9c87f" origin="Generated by Gradle"/>
</artifact>
</component>
2022-03-22 01:58:14 +00:00
- <component group="org.whispersystems" name="signal-client-java" version="0.14.0">
- <artifact name="signal-client-java-0.14.0.jar">
- <sha256 value="c9e98d95d427caac518ad9ae0300502ae76cc228def2dd2ada0c23f52b8dfed6" origin="Generated by Gradle"/>
+ <component group="org.signald" name="signal-client-java-{TARGET}" version="0.14.0">
+ <artifact name="signal-client-java-{TARGET}-0.14.0.jar">
+ <sha256 value="{TARGET_JAR_SHA256}" origin="Generated by Gradle"/>
2022-03-22 01:58:14 +00:00
</artifact>
- <artifact name="signal-client-java-0.14.0.module">
- <sha256 value="9f0b7ab60329b9049c19f6f762a3e603df287662247a2317f7dea657ff749b2f" origin="Generated by Gradle"/>
+ <artifact name="signal-client-java-{TARGET}-0.14.0.module">
2022-03-22 01:59:33 +00:00
+ <sha256 value="{TARGET_MODULE_SHA256}" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="xerces" name="xercesImpl" version="2.12.0">
2021-10-27 01:01:41 +00:00
diff --git a/service/build.gradle b/service/build.gradle
2022-03-22 01:58:14 +00:00
index db7d2eb..8e6d0d1 100644
2021-10-27 01:01:41 +00:00
--- a/service/build.gradle
+++ b/service/build.gradle
@@ -21,6 +21,7 @@ compileJava {
2021-11-08 23:47:39 +00:00
}
repositories {
2021-11-08 23:47:39 +00:00
+ maven {url "https://gitlab.com/api/v4/groups/6853927/-/packages/maven"} // https://gitlab.com/groups/signald/-/packages
mavenCentral()
mavenLocal()
2021-11-08 23:47:39 +00:00
}
2022-03-22 01:58:14 +00:00
@@ -98,7 +99,7 @@ def getRepositoryPassword() {
2021-10-27 01:01:41 +00:00
publishing {
publications {
2022-03-22 01:58:14 +00:00
mavenJava(MavenPublication) {
2021-10-27 01:01:41 +00:00
- artifactId = 'signal-service-java'
+ artifactId = 'signal-service-java-' + System.getenv("TARGET")
2021-11-09 00:53:59 +00:00
from components.java
pom {
2022-03-22 01:58:14 +00:00
@@ -139,16 +140,14 @@ publishing {
2021-11-08 23:47:39 +00:00
2021-10-27 01:01:41 +00:00
repositories {
maven {
- url = getReleaseRepositoryUrl()
2021-10-27 01:01:41 +00:00
- credentials {
- username getRepositoryUsername()
- password getRepositoryPassword()
2021-11-19 03:02:58 +00:00
+ url System.getenv("CI_API_V4_URL") + "/projects/" + System.getenv("CI_PROJECT_ID") + "/packages/maven"
2021-10-27 01:01:41 +00:00
+ credentials(HttpHeaderCredentials) {
+ name = 'Job-Token'
+ value = System.getenv("CI_JOB_TOKEN")
2022-03-22 01:58:14 +00:00
+ }
2021-10-27 01:01:41 +00:00
+ authentication {
2022-03-22 01:58:14 +00:00
+ header(HttpHeaderAuthentication)
}
2021-10-27 01:01:41 +00:00
}
}
-}
2021-10-27 01:01:41 +00:00
-
-signing {
- required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
- sign publishing.publications.mavenJava
-}
+}
\ No newline at end of file
2021-10-27 01:01:41 +00:00
diff --git a/settings.gradle b/settings.gradle
index 8861c00..8dd0342 100644
2021-10-27 01:01:41 +00:00
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,6 +1,5 @@
2021-10-27 01:01:41 +00:00
enableFeaturePreview('VERSION_CATALOGS')
-include ':android'
2021-10-27 01:01:41 +00:00
include 'libsignal-service'
project(':libsignal-service').projectDir = file('service')
--
2.30.2
2021-10-27 01:01:41 +00:00