Skip to content

Commit a390ac3

Browse files
update release process for v0.1.0.1 release
1 parent dba5360 commit a390ac3

3 files changed

Lines changed: 27 additions & 1 deletion

File tree

‎affectedmoduledetector/build.gradle‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
id 'java-gradle-plugin'
55
id 'maven-publish'
66
id "com.gradle.plugin-publish" version "0.12.0"
7+
id 'signing'
78
}
89

910

@@ -12,6 +13,8 @@ apply from: rootProject.file("gradle/jacoco.gradle")
1213
java {
1314
sourceCompatibility = JavaVersion.VERSION_1_7
1415
targetCompatibility = JavaVersion.VERSION_1_7
16+
withJavadocJar()
17+
withSourcesJar()
1518
}
1619

1720
dependencies {
@@ -23,7 +26,7 @@ dependencies {
2326

2427
ext {
2528
DESCRIPTION = "A Gradle Plugin and library to determine which modules were affected in a commit."
26-
VERSION = "0.1.0"
29+
VERSION = "0.1.0.1"
2730
GIT_URL = 'https://github.com/Dropbox/AffectedModuleDetector'
2831
GROUP_ID = "com.dropbox.affectedmoduledetector"
2932
}
@@ -72,6 +75,12 @@ publishing {
7275
}
7376
}
7477

78+
signing {
79+
if (!version.endsWith('SNAPSHOT')) {
80+
sign publishing.publications.maven
81+
}
82+
}
83+
7584
gradlePlugin {
7685
plugins {
7786
affectedModuleDetectorPlugin {

‎tools/release/deploy_snapshot.sh‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
#
3+
# Deploy a jar, source jar, and javadoc jar to Sonatype's snapshot repo.
4+
#
5+
# Adapted from https://coderwall.com/p/9b_lfq and
6+
# http://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/
7+
8+
JDK="oraclejdk8"
9+
BRANCH="main"
10+
11+
set -e
12+
13+
echo "Deploying AMD..."
14+
openssl aes-256-cbc -md sha256 -d -in tools/release/secring.gpg.aes -out tools/release/secring.gpg -k "${ENCRYPT_KEY}"
15+
# https://docs.gradle.org/current/userguide/signing_plugin.html#sec:signatory_credentials
16+
./gradlew uploadArchives -PSONATYPE_USERNAME="${SONATYPE_USERNAME}" -PSONATYPE_PASSWORD="${SONATYPE_PASSWORD}" -Psigning.keyId="${SIGNING_ID}" -Psigning.password="${SIGNING_PASSWORD}" -Psigning.secretKeyRingFile=${PWD}/tools/release/secring.gpg
17+
echo "Store deployed!"

‎tools/release/secring.gpg.aes‎

3.73 KB
Binary file not shown.

0 commit comments

Comments
 (0)