2021-11-19 03:02:58 +00:00
|
|
|
From db918ccd37635338b9ba9605493732d65e44237f Mon Sep 17 00:00:00 2001
|
2021-11-19 02:56:25 +00:00
|
|
|
From: finn <finn@janky.solutions>
|
|
|
|
Date: Thu, 18 Nov 2021 18:55:31 -0800
|
2021-10-27 02:46:14 +00:00
|
|
|
Subject: [PATCH] update gradle files
|
2021-10-27 01:01:41 +00:00
|
|
|
|
|
|
|
---
|
2021-11-19 02:56:25 +00:00
|
|
|
build.gradle | 10 +---------
|
|
|
|
dependencies.gradle | 1 -
|
2021-11-19 03:02:58 +00:00
|
|
|
service/build.gradle | 21 ++++++++++-----------
|
2021-11-19 02:56:25 +00:00
|
|
|
settings.gradle | 2 +-
|
2021-11-19 03:02:58 +00:00
|
|
|
4 files changed, 12 insertions(+), 22 deletions(-)
|
2021-10-27 01:01:41 +00:00
|
|
|
|
|
|
|
diff --git a/build.gradle b/build.gradle
|
2021-11-19 02:56:25 +00:00
|
|
|
index 5a4cded..a1d8d70 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()
|
|
|
|
}
|
|
|
|
@@ -23,15 +24,6 @@ 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 {
|
2021-11-19 02:56:25 +00:00
|
|
|
ext.lib_signal_service_version_number = "2.15.3_unofficial_34"
|
2021-10-27 02:46:14 +00:00
|
|
|
ext.lib_signal_service_group_info = "com.github.turasa"
|
2021-10-27 01:01:41 +00:00
|
|
|
diff --git a/dependencies.gradle b/dependencies.gradle
|
2021-11-19 02:56:25 +00:00
|
|
|
index c1288ca..f32a970 100644
|
2021-10-27 01:01:41 +00:00
|
|
|
--- a/dependencies.gradle
|
|
|
|
+++ b/dependencies.gradle
|
2021-11-19 02:56:25 +00:00
|
|
|
@@ -9,7 +9,6 @@ dependencyResolutionManagement {
|
2021-10-27 01:01:41 +00:00
|
|
|
|
|
|
|
// 1st Party
|
2021-11-19 02:56:25 +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')
|
2021-10-27 01:01:41 +00:00
|
|
|
|
|
|
|
// Third Party
|
2021-10-27 02:46:14 +00:00
|
|
|
alias('jackson-core').to('com.fasterxml.jackson.core:jackson-databind:2.9.9.2')
|
2021-10-27 01:01:41 +00:00
|
|
|
diff --git a/service/build.gradle b/service/build.gradle
|
2021-11-19 03:02:58 +00:00
|
|
|
index 98377c1..1fadd35 100644
|
2021-10-27 01:01:41 +00:00
|
|
|
--- a/service/build.gradle
|
|
|
|
+++ b/service/build.gradle
|
2021-11-08 23:47:39 +00:00
|
|
|
@@ -23,6 +23,7 @@ compileJava {
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
2021-11-19 02:56:25 +00:00
|
|
|
@@ -103,8 +104,8 @@ def getRepositoryPassword() {
|
2021-10-27 01:01:41 +00:00
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
- mavenJava(MavenPublication) {
|
|
|
|
- artifactId = 'signal-service-java'
|
2021-11-09 00:53:59 +00:00
|
|
|
+ library(MavenPublication) {
|
2021-11-19 02:56:25 +00:00
|
|
|
+ artifactId = 'signal-service-java'+ "-" + System.getenv("TARGET")
|
2021-11-09 00:53:59 +00:00
|
|
|
from components.java
|
2021-11-19 02:56:25 +00:00
|
|
|
|
|
|
|
pom {
|
2021-11-19 03:02:58 +00:00
|
|
|
@@ -145,16 +146,14 @@ 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")
|
|
|
|
+ }
|
|
|
|
+ authentication {
|
|
|
|
+ header(HttpHeaderAuthentication)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-27 02:46:14 +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
|
2021-11-19 02:56:25 +00:00
|
|
|
index 8861c00..c180376 100644
|
2021-10-27 01:01:41 +00:00
|
|
|
--- a/settings.gradle
|
|
|
|
+++ b/settings.gradle
|
2021-11-19 02:56:25 +00:00
|
|
|
@@ -1,6 +1,6 @@
|
2021-10-27 01:01:41 +00:00
|
|
|
enableFeaturePreview('VERSION_CATALOGS')
|
|
|
|
|
|
|
|
-include ':android'
|
2021-11-19 02:56:25 +00:00
|
|
|
+
|
|
|
|
|
2021-10-27 01:01:41 +00:00
|
|
|
include 'libsignal-service'
|
|
|
|
project(':libsignal-service').projectDir = file('service')
|
|
|
|
--
|
|
|
|
2.20.1
|
|
|
|
|