File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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")
1213java {
1314 sourceCompatibility = JavaVersion . VERSION_1_7
1415 targetCompatibility = JavaVersion . VERSION_1_7
16+ withJavadocJar()
17+ withSourcesJar()
1518}
1619
1720dependencies {
@@ -23,7 +26,7 @@ dependencies {
2326
2427ext {
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+
7584gradlePlugin {
7685 plugins {
7786 affectedModuleDetectorPlugin {
Original file line number Diff line number Diff line change 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!"
You can’t perform that action at this time.
0 commit comments