File tree Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ image: objectboxio/buildenv:21.11.11-centos7
5
5
# - SONATYPE_USER
6
6
# - SONATYPE_PWD
7
7
# - GOOGLE_CHAT_WEBHOOK_JAVA_CI
8
- # Additionally, Gradle scripts assume these Gradle project properties are set:
9
- # https://docs.gradle.org/current/userguide/build_environment.html#sec:project_properties
8
+ # Additionally, these environment variables used by the objectbox-publish Gradle script:
10
9
# - ORG_GRADLE_PROJECT_signingKeyFile
11
10
# - ORG_GRADLE_PROJECT_signingKeyId
12
11
# - ORG_GRADLE_PROJECT_signingPassword
Original file line number Diff line number Diff line change
1
+ // This script supports some Gradle project properties:
2
+ // https://docs.gradle.org/current/userguide/build_environment.html#sec:project_properties
3
+ // - versionPostFix: appended to snapshot version number, e.g. "1.2.3-<versionPostFix>-SNAPSHOT".
4
+ // Use to create different versions based on branch/tag.
5
+ // - sonatypeUsername: Maven Central credential used by Nexus publishing.
6
+ // - sonatypePassword: Maven Central credential used by Nexus publishing.
7
+
1
8
buildscript {
2
9
// Typically, only edit those two:
3
10
val objectboxVersionNumber = " 3.4.1" // without "-SNAPSHOT", e.g. "2.5.0" or "2.4.0-RC"
Original file line number Diff line number Diff line change
1
+ // This script requires some Gradle project properties to be set
2
+ // (to set as environment variable prefix with ORG_GRADLE_PROJECT_):
3
+ // https://docs.gradle.org/current/userguide/build_environment.html#sec:project_properties
4
+ //
5
+ // To publish artifacts to the internal GitLab repo set:
6
+ // - gitlabUrl
7
+ // - gitlabPrivateToken
8
+ // - gitlabTokenName: optional, if set used instead of "Private-Token". Use for CI to specify e.g. "Job-Token".
9
+ //
10
+ // To sign artifacts using an ASCII encoded PGP key given via a file set:
11
+ // - signingKeyFile
12
+ // - signingKeyId
13
+ // - signingPassword
14
+
1
15
plugins {
2
16
id(" maven-publish" )
3
17
id(" signing" )
@@ -73,6 +87,8 @@ publishing {
73
87
74
88
signing {
75
89
if (hasSigningProperties()) {
90
+ // Sign using an ASCII-armored key read from a file
91
+ // https://docs.gradle.org/current/userguide/signing_plugin.html#using_in_memory_ascii_armored_openpgp_subkeys
76
92
val signingKey = File (project.property(" signingKeyFile" ).toString()).readText()
77
93
useInMemoryPgpKeys(
78
94
project.property(" signingKeyId" ).toString(),
You can’t perform that action at this time.
0 commit comments