update to unofficial_32

This commit is contained in:
finn 2021-11-08 15:47:39 -08:00
parent f3450d57ca
commit 59c0de568f
2 changed files with 35 additions and 27 deletions

View file

@ -2,7 +2,7 @@ stages:
- build - build
variables: variables:
version: "v2.15.3_unofficial_31" version: "v2.15.3_unofficial_32"
GRADLE_OPTS: -Dorg.gradle.daemon=false GRADLE_OPTS: -Dorg.gradle.daemon=false
build: build:

View file

@ -1,27 +1,26 @@
From 52e706bcab638b77c287a68bdf0318b83f846812 Mon Sep 17 00:00:00 2001 From 679a423f659506e1dc3b597bb940eb5c9c12b02f Mon Sep 17 00:00:00 2001
From: finn <finn@janky.solutions> From: nobody <nobody@signald.org>
Date: Tue, 26 Oct 2021 20:18:43 -0700 Date: Mon, 8 Nov 2021 15:46:59 -0800
Subject: [PATCH] update gradle files Subject: [PATCH] update gradle files
--- ---
build.gradle | 10 +------- build.gradle | 10 +-------
dependencies.gradle | 6 ++--- dependencies.gradle | 6 ++---
service/build.gradle | 56 ++++++++------------------------------------ service/build.gradle | 57 ++++++++------------------------------------
settings.gradle | 2 -- settings.gradle | 2 --
4 files changed, 13 insertions(+), 61 deletions(-) 4 files changed, 13 insertions(+), 62 deletions(-)
diff --git a/build.gradle b/build.gradle diff --git a/build.gradle b/build.gradle
index 9e69283..f559be4 100644 index 623f06c..785dbcc 100644
--- a/build.gradle --- a/build.gradle
+++ b/build.gradle +++ b/build.gradle
@@ -2,6 +2,7 @@ buildscript { @@ -1,5 +1,6 @@
buildscript {
repositories { repositories {
+ maven {url "https://gitlab.com/api/v4/groups/6853927/-/packages/maven"} // https://gitlab.com/groups/signald/-/packages
google() google()
mavenCentral() mavenCentral()
+ maven {url "https://gitlab.com/api/v4/groups/6853927/-/packages/maven"} // https://gitlab.com/groups/signald/-/packages
} }
dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
@@ -23,15 +24,6 @@ def getRepositoryPassword() { @@ -23,15 +24,6 @@ def getRepositoryPassword() {
return hasProperty('whisperSonatypePassword') ? whisperSonatypePassword : "" return hasProperty('whisperSonatypePassword') ? whisperSonatypePassword : ""
} }
@ -36,14 +35,14 @@ index 9e69283..f559be4 100644
-} -}
- -
subprojects { subprojects {
ext.lib_signal_service_version_number = "2.15.3_unofficial_31" ext.lib_signal_service_version_number = "2.15.3_unofficial_32"
ext.lib_signal_service_group_info = "com.github.turasa" ext.lib_signal_service_group_info = "com.github.turasa"
diff --git a/dependencies.gradle b/dependencies.gradle diff --git a/dependencies.gradle b/dependencies.gradle
index 0fd41a7..30b02c4 100644 index a046f96..01adfb6 100644
--- a/dependencies.gradle --- a/dependencies.gradle
+++ b/dependencies.gradle +++ b/dependencies.gradle
@@ -9,10 +9,8 @@ dependencyResolutionManagement { @@ -9,10 +9,8 @@ dependencyResolutionManagement {
alias('google-libphonenumber').to('com.googlecode.libphonenumber:libphonenumber:8.12.17') alias('google-libphonenumber').to('com.googlecode.libphonenumber:libphonenumber:8.12.33')
// 1st Party // 1st Party
- alias('signal-client-java').to('org.whispersystems', 'signal-client-java').versionRef('signal-client') - alias('signal-client-java').to('org.whispersystems', 'signal-client-java').versionRef('signal-client')
@ -56,25 +55,34 @@ index 0fd41a7..30b02c4 100644
// Third Party // Third Party
alias('jackson-core').to('com.fasterxml.jackson.core:jackson-databind:2.9.9.2') alias('jackson-core').to('com.fasterxml.jackson.core:jackson-databind:2.9.9.2')
diff --git a/service/build.gradle b/service/build.gradle diff --git a/service/build.gradle b/service/build.gradle
index 5222870..fa93603 100644 index e354777..399b27c 100644
--- a/service/build.gradle --- a/service/build.gradle
+++ b/service/build.gradle +++ b/service/build.gradle
@@ -25,6 +25,7 @@ compileJava { @@ -23,6 +23,7 @@ compileJava {
repositories {
mavenCentral()
mavenLocal()
+ maven {url "https://gitlab.com/api/v4/groups/6853927/-/packages/maven"} // https://gitlab.com/groups/signald/-/packages
} }
configurations { repositories {
@@ -104,58 +105,21 @@ def getRepositoryPassword() { + maven {url "https://gitlab.com/api/v4/groups/6853927/-/packages/maven"} // https://gitlab.com/groups/signald/-/packages
mavenCentral()
mavenLocal()
}
@@ -91,8 +92,7 @@ def isReleaseBuild() {
}
def getReleaseRepositoryUrl() {
- return hasProperty('sonatypeRepo') ? sonatypeRepo
- : "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
+ return System.getenv("CI_API_V4_URL") + "/projects/" + System.getenv("CI_PROJECT_ID") + "/packages/maven"
}
def getRepositoryUsername() {
@@ -105,58 +105,21 @@ def getRepositoryPassword() {
publishing { publishing {
publications { publications {
- mavenJava(MavenPublication) { - mavenJava(MavenPublication) {
- artifactId = 'signal-service-java' - artifactId = 'signal-service-java'
+ library(MavenPublication) { - from components.java
from components.java
- -
- pom { - pom {
- name = 'signal-service-java' - name = 'signal-service-java'
@ -109,17 +117,17 @@ index 5222870..fa93603 100644
- } - }
- } - }
- -
+ library(MavenPublication) {
+ artifactId = archivesBaseName + "-" + System.getenv("TARGET") + artifactId = archivesBaseName + "-" + System.getenv("TARGET")
} }
} }
-
repositories { repositories {
maven { maven {
- url = getReleaseRepositoryUrl() url = getReleaseRepositoryUrl()
- credentials { - credentials {
- username getRepositoryUsername() - username getRepositoryUsername()
- password getRepositoryPassword() - password getRepositoryPassword()
+ url System.getenv("CI_API_V4_URL") + "/projects/" + System.getenv("CI_PROJECT_ID") + "/packages/maven"
+ credentials(HttpHeaderCredentials) { + credentials(HttpHeaderCredentials) {
+ name = 'Job-Token' + name = 'Job-Token'
+ value = System.getenv("CI_JOB_TOKEN") + value = System.getenv("CI_JOB_TOKEN")