Skip to content

Commit e231da5

Browse files
Keep release scoped to dropdown options
1 parent 08d8681 commit e231da5

21 files changed

Lines changed: 575 additions & 151 deletions

.github/workflows/close-and-release-repository.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
repository:
7-
description: 'Manually trigger gradle closeAndReleaseRepository task in case of timeout from previous publishing'
7+
description: 'Manually trigger release in case of timeout from previous publishing'
88

99
jobs:
1010
closeAndReleaseRepository:
@@ -20,7 +20,9 @@ jobs:
2020
java-version: 11
2121

2222
- name: Publish Release to Maven Central
23-
run: ./gradlew closeAndReleaseRepository --no-daemon --no-parallel --repository ${{ inputs.repository }}
23+
run: ./gradlew publishAndReleaseToMavenCentral --no-daemon --no-parallel --no-configuration-cache --stacktrace
2424
env:
2525
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
2626
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
27+
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
28+
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}

.github/workflows/github-actions.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,26 @@ jobs:
4747
distribution: 'zulu'
4848
java-version: 11
4949

50-
- name: Upload Artifacts
51-
run: ./gradlew publishToMavenCentral --no-daemon --no-parallel --no-configuration-cache --stacktrace
50+
- name: Retrieve version
51+
run: echo "PACKAGE_VERSION=$(cat VERSION)" >> $GITHUB_ENV
52+
53+
- name: Publish to Maven Central
54+
run: ./gradlew publishAndReleaseToMavenCentral --no-daemon --no-parallel --no-configuration-cache --stacktrace
55+
if: "!endsWith(env.PACKAGE_VERSION, '-SNAPSHOT')"
5256
env:
5357
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
5458
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
5559
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
5660
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
5761

58-
- name: Retrieve version
59-
run: echo "PACKAGE_VERSION=$(cat VERSION)" >> $GITHUB_ENV
60-
61-
- name: Publish Release to Maven Central
62-
run: ./gradlew releaseRepository --no-daemon --no-parallel
63-
if: "!endsWith(env.PACKAGE_VERSION, '-SNAPSHOT')"
62+
- name: Publish Snapshot
63+
run: ./gradlew publishToMavenCentral --no-daemon --no-parallel --no-configuration-cache --stacktrace
64+
if: "endsWith(env.PACKAGE_VERSION, '-SNAPSHOT')"
6465
env:
6566
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
6667
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
68+
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
69+
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
6770

6871
# This job runs on merging to "v1" branch
6972
# Creates a new tag using the value in the VERSION file

build.gradle

Lines changed: 12 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,33 @@
11

2-
buildscript {
3-
repositories {
4-
mavenCentral()
5-
}
6-
dependencies {
7-
classpath 'com.android.tools.build:gradle:2.3.+'
8-
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
9-
classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.25.0'
10-
}
11-
}
122

133
plugins {
4+
id 'java'
145
id 'com.vanniktech.maven.publish' version '0.34.0'
156
id 'com.diffplug.spotless' version '6.25.0'
167
}
178

18-
apply plugin: 'java'
19-
apply plugin: 'maven-publish'
20-
apply plugin: 'signing'
21-
229
group = 'com.dropbox.sign'
23-
archivesBaseName = 'dropbox-sign'
2410
version = '1.13.0'
25-
sourceCompatibility = JavaVersion.VERSION_1_8
26-
targetCompatibility = JavaVersion.VERSION_1_8
11+
12+
base {
13+
archivesName.set('dropbox-sign')
14+
}
15+
16+
java {
17+
sourceCompatibility = JavaVersion.VERSION_1_8
18+
targetCompatibility = JavaVersion.VERSION_1_8
19+
}
2720

2821
repositories {
2922
mavenCentral()
3023
}
3124

32-
tasks.withType(JavaCompile) {
25+
tasks.withType(JavaCompile).configureEach {
3326
options.encoding = 'UTF-8'
3427
}
3528

36-
if (JavaVersion.current().isJava8Compatible()) {
37-
tasks.withType(Javadoc) {
38-
// disable the crazy super-strict doclint tool in Java 8
39-
//noinspection SpellCheckingInspection
29+
tasks.withType(Javadoc).configureEach {
4030
options.addStringOption('Xdoclint:none', '-quiet')
41-
}
4231
}
4332

4433
task javadocJar(type: Jar) {
@@ -68,53 +57,6 @@ artifacts {
6857
archives javadocJar, sourcesJar, fatJar
6958
}
7059

71-
publishing {
72-
publications {
73-
mavenJava(MavenPublication) {
74-
pom {
75-
name = 'Dropbox Sign'
76-
packaging = 'jar'
77-
// optionally artifactId can be defined here
78-
artifactId = 'dropbox-sign'
79-
description = 'Use the Dropbox SIgn Java SDK to connect your Java app to Dropbox Sign\'s service in microseconds!'
80-
url = 'https://www.hellosign.com/'
81-
82-
scm {
83-
connection = 'scm:git:git://github.com/hellosign/dropbox-sign-java.git'
84-
developerConnection = 'scm:git:git@github.com:hellosign/dropbox-sign-java.git'
85-
url = 'https://github.com/hellosign/dropbox-sign-java'
86-
}
87-
88-
licenses {
89-
license {
90-
name = 'MIT License'
91-
url = 'http://www.opensource.org/licenses/mit-license.php'
92-
}
93-
}
94-
95-
developers {
96-
developer {
97-
name = 'Dropbox Sign API Team'
98-
email = 'apisupport@hellosign.com'
99-
url = 'https://www.hellosign.com'
100-
}
101-
}
102-
}
103-
}
104-
}
105-
repositories {
106-
maven {
107-
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
108-
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
109-
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
110-
credentials {
111-
username findProperty('ossrhUsername')
112-
password findProperty('ossrhPassword')
113-
}
114-
}
115-
}
116-
}
117-
11860
ext {
11961
swagger_annotations_version = "1.6.5"
12062
jackson_version = "2.17.1"

docs/SignatureRequestCreateEmbeddedRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
| `testMode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | |
3131
| `title` | ```String``` | The title you want to assign to the SignatureRequest. | |
3232
| `useTextTags` | ```Boolean``` | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | |
33+
| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | |
3334
| `populateAutoFillFields` | ```Boolean``` | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer&#39;s information during signing.<br><br>**NOTE:** Keep your signer&#39;s information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | |
3435
| `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | |
3536

docs/SignatureRequestEditEmbeddedRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
| `testMode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | |
3131
| `title` | ```String``` | The title you want to assign to the SignatureRequest. | |
3232
| `useTextTags` | ```Boolean``` | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | |
33+
| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | |
3334
| `populateAutoFillFields` | ```Boolean``` | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer&#39;s information during signing.<br><br>**NOTE:** Keep your signer&#39;s information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | |
3435
| `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | |
3536

docs/SignatureRequestEditRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
| `testMode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | |
3333
| `title` | ```String``` | The title you want to assign to the SignatureRequest. | |
3434
| `useTextTags` | ```Boolean``` | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | |
35+
| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | |
3536
| `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | |
3637

3738

docs/SignatureRequestSendRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
| `testMode` | ```Boolean``` | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | |
3434
| `title` | ```String``` | The title you want to assign to the SignatureRequest. | |
3535
| `useTextTags` | ```Boolean``` | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | |
36+
| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | |
3637
| `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | |
3738

3839

docs/TemplateCreateEmbeddedDraftRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
| `testMode` | ```Boolean``` | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | |
3434
| `title` | ```String``` | The title you want to assign to the SignatureRequest. | |
3535
| `usePreexistingFields` | ```Boolean``` | Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). | |
36+
| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | |
3637

3738

3839

docs/TemplateCreateRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
| `testMode` | ```Boolean``` | Whether this is a test, the signature request created from this draft will not be legally binding if set to `true`. Defaults to `false`. | |
2727
| `title` | ```String``` | The title you want to assign to the SignatureRequest. | |
2828
| `usePreexistingFields` | ```Boolean``` | Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). | |
29+
| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | |
2930

3031

3132

docs/UnclaimedDraftCreateEmbeddedRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
| `type` | [```TypeEnum```](#TypeEnum) | The type of the draft. By default this is `request_signature`, but you can set it to `send_document` if you want to self sign a document and download it. | |
4343
| `usePreexistingFields` | ```Boolean``` | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | |
4444
| `useTextTags` | ```Boolean``` | Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. | |
45+
| `ignoreTextTagsExtractionErrors` | ```Boolean``` | Sent with a value of `true` to ignore the validation errors from text tags extraction. Defaults to `false`. | |
4546
| `populateAutoFillFields` | ```Boolean``` | Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer&#39;s information during signing.<br><br>**NOTE:** Keep your signer&#39;s information safe by ensuring that the _signer on your signature request is the intended party_ before using this feature. | |
4647
| `expiresAt` | ```Integer``` | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.<br><br>**NOTE:** This does not correspond to the **expires_at** returned in the response. | |
4748

0 commit comments

Comments
 (0)