2022-03-04 23:20:09 +00:00
|
|
|
From 2022d9a860a53d9ba3641ac2716f3197a8d85c10 Mon Sep 17 00:00:00 2001
|
2022-01-16 01:17:26 +00:00
|
|
|
From: signald <nobody@signald.org>
|
2022-02-12 07:18:25 +00:00
|
|
|
Date: Fri, 11 Feb 2022 23:16:57 -0800
|
2021-10-27 02:46:14 +00:00
|
|
|
Subject: [PATCH] update gradle files
|
2021-10-27 01:01:41 +00:00
|
|
|
|
|
|
|
---
|
2022-01-16 01:17:26 +00:00
|
|
|
build.gradle | 18 +++---------------
|
|
|
|
dependencies.gradle | 3 +--
|
2022-02-12 07:18:25 +00:00
|
|
|
gradle/verification-metadata.xml | 11 +++++++++++
|
2022-03-04 23:20:09 +00:00
|
|
|
service/build.gradle | 23 +++++++++++------------
|
2022-02-12 07:18:25 +00:00
|
|
|
settings.gradle | 2 --
|
2022-03-04 23:20:09 +00:00
|
|
|
5 files changed, 26 insertions(+), 31 deletions(-)
|
2021-10-27 01:01:41 +00:00
|
|
|
|
|
|
|
diff --git a/build.gradle b/build.gradle
|
2022-02-12 07:18:25 +00:00
|
|
|
index 41c2533..f486ea8 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()
|
|
|
|
}
|
2022-01-16 01:17:26 +00:00
|
|
|
@@ -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-02-12 07:18:25 +00:00
|
|
|
ext.lib_signal_service_version_number = "2.15.3_unofficial_41"
|
2022-01-16 01:17:26 +00:00
|
|
|
- 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-04 22:27:01 +00:00
|
|
|
index b9e6765..d57dea2 100644
|
2021-10-27 01:01:41 +00:00
|
|
|
--- a/dependencies.gradle
|
|
|
|
+++ b/dependencies.gradle
|
2021-11-20 23:50:18 +00:00
|
|
|
@@ -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
|
2021-11-20 23:50:18 +00:00
|
|
|
- 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-04 22:27:01 +00:00
|
|
|
+ alias('signal-client-java').to('org.signald', 'signal-client-java-'+ System.getenv("TARGET").replaceAll("_", "-")).versionRef('signal-client')
|
2021-10-27 01:01:41 +00:00
|
|
|
|
|
|
|
// Third Party
|
2022-01-16 01:17:26 +00:00
|
|
|
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-02-12 07:18:25 +00:00
|
|
|
index 77f8957..01c281e 100644
|
2022-01-16 01:17:26 +00:00
|
|
|
--- a/gradle/verification-metadata.xml
|
|
|
|
+++ b/gradle/verification-metadata.xml
|
2022-02-12 07:18:25 +00:00
|
|
|
@@ -482,6 +482,9 @@
|
|
|
|
<artifact name="protoc-3.18.0-linux-x86_64.exe">
|
|
|
|
<sha256 value="e977a0b300a3b0c7c0135a02b8a4d746081e1cd8946ea747e0247412535692fe" origin="Generated by Gradle"/>
|
2022-01-16 01:17:26 +00:00
|
|
|
</artifact>
|
2022-02-12 07:18:25 +00:00
|
|
|
+ <artifact name="protoc-3.18.0-osx-x86_64.exe">
|
|
|
|
+ <sha256 value="956241e25cac149cf8d01d4f9125f2913b3bc471deea6856231367cdf4be71a4" origin="Generated by Gradle"/>
|
2022-01-16 01:17:26 +00:00
|
|
|
+ </artifact>
|
|
|
|
</component>
|
|
|
|
<component group="com.google.testing.platform" name="core-proto" version="0.0.8-alpha04">
|
|
|
|
<artifact name="core-proto-0.0.8-alpha04.jar">
|
2022-02-12 07:18:25 +00:00
|
|
|
@@ -1125,6 +1128,14 @@
|
|
|
|
<sha256 value="1dee0481072d19c929b623e155e14d2f6085dc011529a0a0dbefc84cf571d865" origin="Generated by Gradle"/>
|
2022-01-16 01:17:26 +00:00
|
|
|
</artifact>
|
|
|
|
</component>
|
2022-02-12 07:18:25 +00:00
|
|
|
+ <component group="org.signald" name="signal-client-java-{TARGET}" version="0.12.3">
|
|
|
|
+ <artifact name="signal-client-java-{TARGET}-0.12.3.jar">
|
2022-01-16 01:17:26 +00:00
|
|
|
+ <sha256 value="{TARGET_JAR_SHA256}" origin="Generated by Gradle"/>
|
|
|
|
+ </artifact>
|
2022-02-12 07:18:25 +00:00
|
|
|
+ <artifact name="signal-client-java-{TARGET}-0.12.3.module">
|
2022-01-16 01:17:26 +00:00
|
|
|
+ <sha256 value="{TARGET_MODULE_SHA256}" origin="Generated by Gradle"/>
|
2022-02-12 07:18:25 +00:00
|
|
|
+ </artifact>
|
|
|
|
+ </component>
|
|
|
|
<component group="org.tensorflow" name="tensorflow-lite-metadata" version="0.1.0-rc2">
|
|
|
|
<artifact name="tensorflow-lite-metadata-0.1.0-rc2.jar">
|
|
|
|
<sha256 value="2c2a264f842498c36d34d2a7b91342490d9a962862c85baac1acd54ec2fca6d9" origin="Generated by Gradle"/>
|
2021-10-27 01:01:41 +00:00
|
|
|
diff --git a/service/build.gradle b/service/build.gradle
|
2022-03-04 23:20:09 +00:00
|
|
|
index db7d2eb..307642b 100644
|
2021-10-27 01:01:41 +00:00
|
|
|
--- a/service/build.gradle
|
|
|
|
+++ b/service/build.gradle
|
2022-03-04 23:20:09 +00:00
|
|
|
@@ -5,13 +5,13 @@ apply plugin: 'maven-publish'
|
|
|
|
apply plugin: 'signing'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
|
|
|
|
-sourceCompatibility = 1.8
|
|
|
|
+sourceCompatibility = 1.9
|
|
|
|
archivesBaseName = "signal-service-java"
|
|
|
|
version = lib_signal_service_version_number
|
|
|
|
group = lib_signal_service_group_info
|
|
|
|
|
|
|
|
java {
|
|
|
|
- targetCompatibility = 1.8
|
|
|
|
+ targetCompatibility = 1.9
|
|
|
|
withJavadocJar()
|
|
|
|
withSourcesJar()
|
|
|
|
}
|
2022-01-16 01:17:26 +00:00
|
|
|
@@ -21,6 +21,7 @@ compileJava {
|
2021-11-08 23:47:39 +00:00
|
|
|
}
|
|
|
|
|
2021-11-08 23:20:04 +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:20:04 +00:00
|
|
|
mavenCentral()
|
|
|
|
mavenLocal()
|
2021-11-08 23:47:39 +00:00
|
|
|
}
|
2022-01-16 01:17:26 +00:00
|
|
|
@@ -74,7 +75,6 @@ protobuf {
|
|
|
|
idea {
|
|
|
|
module {
|
|
|
|
generatedSourceDirs += file("${protobuf.generatedFilesBaseDir}/main/java")
|
|
|
|
- scopes.COMPILE.plus += [configurations.ideaTestFixturesImplementation]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-12 07:18:25 +00:00
|
|
|
@@ -98,7 +98,7 @@ def getRepositoryPassword() {
|
2021-10-27 01:01:41 +00:00
|
|
|
publishing {
|
|
|
|
publications {
|
2022-02-12 07:18:25 +00:00
|
|
|
mavenJava(MavenPublication) {
|
2021-10-27 01:01:41 +00:00
|
|
|
- artifactId = 'signal-service-java'
|
2022-03-04 22:27:01 +00:00
|
|
|
+ artifactId = 'signal-service-java-' + System.getenv("TARGET").replaceAll("_", "-")
|
2021-11-09 00:53:59 +00:00
|
|
|
from components.java
|
2021-11-19 02:56:25 +00:00
|
|
|
|
|
|
|
pom {
|
2022-02-12 07:18:25 +00:00
|
|
|
@@ -139,16 +139,15 @@ publishing {
|
2021-11-08 23:47:39 +00:00
|
|
|
|
2021-10-27 01:01:41 +00:00
|
|
|
repositories {
|
|
|
|
maven {
|
2021-11-19 02:56:25 +00:00
|
|
|
- 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-01-16 01:17:26 +00:00
|
|
|
}
|
2021-10-27 01:01:41 +00:00
|
|
|
+ authentication {
|
|
|
|
+ header(HttpHeaderAuthentication)
|
2022-01-16 01:17:26 +00:00
|
|
|
+ }
|
2021-10-27 01:01:41 +00:00
|
|
|
}
|
|
|
|
}
|
2022-02-12 07:18:25 +00:00
|
|
|
}
|
|
|
|
|
2021-10-27 01:01:41 +00:00
|
|
|
-signing {
|
|
|
|
- required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
|
|
|
|
- sign publishing.publications.mavenJava
|
|
|
|
-}
|
|
|
|
diff --git a/settings.gradle b/settings.gradle
|
2022-02-12 07:18:25 +00:00
|
|
|
index 8861c00..4048aab 100644
|
2021-10-27 01:01:41 +00:00
|
|
|
--- a/settings.gradle
|
|
|
|
+++ b/settings.gradle
|
2022-02-12 07:18:25 +00:00
|
|
|
@@ -1,7 +1,5 @@
|
2021-10-27 01:01:41 +00:00
|
|
|
enableFeaturePreview('VERSION_CATALOGS')
|
|
|
|
|
|
|
|
-include ':android'
|
2022-02-12 07:18:25 +00:00
|
|
|
-
|
2021-10-27 01:01:41 +00:00
|
|
|
include 'libsignal-service'
|
|
|
|
project(':libsignal-service').projectDir = file('service')
|
2022-02-12 07:18:25 +00:00
|
|
|
|
2021-10-27 01:01:41 +00:00
|
|
|
--
|
2022-01-16 01:17:26 +00:00
|
|
|
2.30.2
|
2021-10-27 01:01:41 +00:00
|
|
|
|