2022-03-21 23:12:19 +00:00
|
|
|
From 9362c4dc020c30ced791d1aaeb7efc4a6149f415 Mon Sep 17 00:00:00 2001
|
2021-10-15 07:26:35 +00:00
|
|
|
From: signald <nobody@signald.org>
|
2022-03-21 23:12:19 +00:00
|
|
|
Date: Mon, 21 Mar 2022 17:51:58 -0700
|
2021-10-24 19:47:40 +00:00
|
|
|
Subject: [PATCH] update gradle files
|
2021-10-15 07:26:35 +00:00
|
|
|
|
|
|
|
---
|
2022-03-21 23:12:19 +00:00
|
|
|
java/build.gradle | 9 +--------
|
|
|
|
java/client/build.gradle | 26 ++++++++------------------
|
|
|
|
java/settings.gradle | 2 +-
|
|
|
|
3 files changed, 10 insertions(+), 27 deletions(-)
|
2021-10-15 07:26:35 +00:00
|
|
|
|
|
|
|
diff --git a/java/build.gradle b/java/build.gradle
|
2022-03-21 23:12:19 +00:00
|
|
|
index 3eb575c..bd34b09 100644
|
2021-10-15 07:26:35 +00:00
|
|
|
--- a/java/build.gradle
|
|
|
|
+++ b/java/build.gradle
|
2022-03-21 23:12:19 +00:00
|
|
|
@@ -6,7 +6,7 @@ def version_number = "0.14.0"
|
|
|
|
|
2022-02-12 06:51:17 +00:00
|
|
|
subprojects {
|
2022-03-21 23:12:19 +00:00
|
|
|
ext.version_number = version_number
|
2022-02-12 06:51:17 +00:00
|
|
|
- ext.group_info = "org.whispersystems"
|
|
|
|
+ ext.group_info = "org.signald"
|
|
|
|
|
|
|
|
if (JavaVersion.current().isJava8Compatible()) {
|
|
|
|
allprojects {
|
2022-03-21 23:12:19 +00:00
|
|
|
@@ -31,13 +31,6 @@ task makeJniLibrariesDesktop(type:Exec) {
|
|
|
|
commandLine './build_jni.sh', 'desktop'
|
2021-11-19 01:55:16 +00:00
|
|
|
}
|
|
|
|
|
2021-10-24 20:02:35 +00:00
|
|
|
-task makeAll() {
|
|
|
|
- group 'Rust'
|
|
|
|
- description 'Build the native libraries'
|
|
|
|
-
|
2021-10-24 19:47:40 +00:00
|
|
|
- dependsOn 'makeJniLibrariesDesktop', 'makeJniLibrariesAndroid'
|
2021-10-24 20:02:35 +00:00
|
|
|
-}
|
2022-03-21 23:12:19 +00:00
|
|
|
-
|
|
|
|
task cargoClean(type:Exec) {
|
|
|
|
group 'Rust'
|
|
|
|
commandLine 'cargo', 'clean'
|
|
|
|
diff --git a/java/client/build.gradle b/java/client/build.gradle
|
|
|
|
index e72aec3..e85ab25 100644
|
|
|
|
--- a/java/client/build.gradle
|
|
|
|
+++ b/java/client/build.gradle
|
|
|
|
@@ -1,7 +1,6 @@
|
2021-11-19 01:55:16 +00:00
|
|
|
plugins {
|
2022-03-21 23:12:19 +00:00
|
|
|
id 'java-library'
|
|
|
|
id 'maven-publish'
|
|
|
|
- id 'signing'
|
2021-10-24 20:02:35 +00:00
|
|
|
}
|
|
|
|
|
2022-03-21 23:12:19 +00:00
|
|
|
sourceCompatibility = 1.8
|
|
|
|
@@ -46,20 +45,13 @@ java {
|
|
|
|
withJavadocJar()
|
2021-10-15 07:26:35 +00:00
|
|
|
}
|
2021-10-24 20:02:35 +00:00
|
|
|
|
2022-03-21 23:12:19 +00:00
|
|
|
-processResources {
|
|
|
|
- // TODO: Build a different variant of the JNI library for server.
|
|
|
|
- dependsOn ':makeJniLibrariesDesktop'
|
|
|
|
- if (gradle.taskGraph.hasTask(":client:publish")) {
|
|
|
|
- dependsOn ':downloadNonLinuxLibraries'
|
2021-10-24 20:02:35 +00:00
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
2022-03-21 23:12:19 +00:00
|
|
|
// MARK: Publishing
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
|
|
|
- artifactId = archivesBaseName
|
2021-11-19 01:55:16 +00:00
|
|
|
+ artifactId = archivesBaseName + "-" + System.getenv("TARGET")
|
2022-03-21 23:12:19 +00:00
|
|
|
from components.java
|
|
|
|
|
|
|
|
pom {
|
|
|
|
@@ -90,16 +82,14 @@ publishing {
|
2021-11-19 01:55:16 +00:00
|
|
|
}
|
|
|
|
repositories {
|
2022-03-21 23:12:19 +00:00
|
|
|
maven {
|
|
|
|
- url = getReleaseRepositoryUrl()
|
|
|
|
- credentials {
|
|
|
|
- username = getRepositoryUsername()
|
|
|
|
- password = getRepositoryPassword()
|
2021-10-15 07:26:35 +00:00
|
|
|
+ url System.getenv("CI_API_V4_URL") + "/projects/" + System.getenv("CI_PROJECT_ID") + "/packages/maven"
|
|
|
|
+ credentials(HttpHeaderCredentials) {
|
|
|
|
+ name = 'Job-Token'
|
|
|
|
+ value = System.getenv("CI_JOB_TOKEN")
|
|
|
|
+ }
|
|
|
|
+ authentication {
|
|
|
|
+ header(HttpHeaderAuthentication)
|
2022-03-21 23:12:19 +00:00
|
|
|
}
|
2021-11-19 01:55:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
-
|
2022-03-21 23:12:19 +00:00
|
|
|
-signing {
|
|
|
|
- required { isReleaseBuild() && gradle.taskGraph.hasTask(":client:publish") }
|
|
|
|
- sign publishing.publications.mavenJava
|
2021-11-19 01:55:16 +00:00
|
|
|
-}
|
2021-10-24 20:02:35 +00:00
|
|
|
diff --git a/java/settings.gradle b/java/settings.gradle
|
2022-03-21 23:12:19 +00:00
|
|
|
index 2c6638a..34cf927 100644
|
2021-10-24 20:02:35 +00:00
|
|
|
--- a/java/settings.gradle
|
|
|
|
+++ b/java/settings.gradle
|
2022-03-21 23:12:19 +00:00
|
|
|
@@ -6,4 +6,4 @@ pluginManagement {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-include ':client', ':android', ':server'
|
|
|
|
+include ':client'
|
2021-10-15 07:26:35 +00:00
|
|
|
--
|
2022-02-12 06:51:17 +00:00
|
|
|
2.30.2
|
2021-10-15 07:26:35 +00:00
|
|
|
|