Skip to content

Commit 3d9bdeb

Browse files
committed
Publish to Maven Central
1 parent bf19039 commit 3d9bdeb

File tree

10 files changed

+163
-70
lines changed

10 files changed

+163
-70
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
*.gpg
2+
13
.gradle/
24
.*
35
!.gitignore

.travis.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
dist: trusty
12
language: java
23
jdk:
34
- openjdk8
@@ -6,12 +7,23 @@ cache:
67
directories:
78
- "$HOME/.gradle"
89
install: true
9-
script: "./gradlew clean build jacocoTestReport coveralls"
10+
script:
11+
- ./ci_build.sh
12+
before_install:
13+
- openssl aes-256-cbc -K $encrypted_c2f58914b0fd_key -iv $encrypted_c2f58914b0fd_iv -in secret-keys.gpg.enc -out secret-keys.gpg -d
1014
after_success:
11-
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./publish.sh; fi
15+
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./ci_publish.sh; fi
1216
env:
1317
global:
1418
- CI_NAME=travis-ci
15-
- secure: "eIA27RK7BgAcOuyRFKWqN7V8T3Ta5ZcqYPU3NTrg26ljesZLp9kdtdpjxcW+wyhca8ilHG1x/ci+kfSmnxTIrxohfAsPMqCmK0QBxX5CH2b91DxrsadyPMpn602wVU4z/L8POgYnlK+JHS2EO7ZurazkdQtlJ5BFIW7uw4L9rxvU4MWVK3D6zEKX9n0dSRgy+B1zriD9ujok1WaEEVnvjDOxblemYGAOsOl+zyvB+3SfUZ/lgXLFjEgDoHx2MinEtmMT5hX+Hzpd333XrQ8TOTO45LVsZyQnkyMPO9xo6OiFUh5vbNyjRomSVx1jdIGfXE00SkudCCLSeiWtvWHc+xrZ3AboabEgFU5vUwSKyL2uCc/7MeRZI38ZSla4d7QH0zWULDJkF6UgH7GwuYlYmUwhYAnVxUMsaGceGN9ucf3S0YuL1yF3qCbRz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ijgdTZmkLqDUKUnMgGVBXQZ0FVBumY4P2dGac1x/PtTmbCZ8GXyxSrWzcZIW/J4N9SNN29eap6EmfN78kIhMOwoPjRII7dkZXrAMPz99+ribA1rDPB9k9YSEDYepgQF/DFaM79h11rx2s8GoVdMIa5wCyrwbK4AZ2XhmCgoU0DKwjlxCKd0Wr+1UhtlPt6b4/q/4pE6sC+Cnm6ni+0="
28+
# SIGNING_PASSWORD
29+
- secure: "ixVx7DbwtOslNK9NTSvLjOws64k6f748ST9koQq7hmbiBLWlavhfK7w1dkdbmbrTQClcitMxgKDyoFCodnxgC942bRkiwz8+1hxCHPIxupaIGFhJeZzit09fLoe4Quc8861jVL3Cu/JMhd5p0shkuhuMg9vdXpISPXyI7OaujKTZg+H2drCoUsPGKwHWeHMu5C7wLQoUZaHdyRPYgq6T/3Wz35CJn6Vgtduw9WuuPBxUfgIPKvU4soIX/vKumi10UChDQeYL+pjNy1lXYtBn+SWn5sfiekUeJbZJseVLsgbr0z5G9C4ACE7aR4u9o4WLBSVLISgxFqvY6PNqUjLJ9Fk6megCgp7+BxtScl9W3rJrUSBTuLysSvgF8GiIFyxWO5hZ4gMZ6O/0mYpnxIvnYibTKoc9hV/J0rbvhRlj2czmZD8i3ynqIQwXHxOF/l4Wo8DpG4oMHDGMYfe8IFTrEVrNszAKUqOp+gcMXRuK/ZOJQKbgwBVJTBi+2tm/irQ9FQyAhQL59CvNLW6rbHWGHDwxALKI2cHWThed5fGTXx686jesJTWOb8KcYaiUkoMzv9RxYpfi04cUcCzT1WtL3dQr4iXZVI36ZP8qnHCuPHWu50kcz8DCe3LgChWs01A7F61kLHYpJu087P18SAa3SQfN4dXzoyUEOufCZi9r2y0="

README.md

Lines changed: 44 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@ Details and background information can be read on our [ePages Developer Blog](ht
3131
<!-- /TOC -->
3232
## Contents
3333

34-
This repository consists of four projects
34+
This repository consists of two libraries:
3535

3636
* `restdocs-wiremock`: The library to extend Spring REST Docs with WireMock stub snippet generation.
37-
* `restdocs-server`: A sample server documenting its REST API (i.e. the Spring REST Docs "notes" example).
38-
Besides producing human-readable documentation it will also generate JSON snippets to be used as stubs for WireMock.
3937
* `wiremock-spring-boot-starter`: A spring boot starter which adds a `WireMockServer` to your client's ApplicationContext for integration testing.
4038
This is optional, but highly recommended when verifying your client contract in a SpringBootTest.
39+
40+
And two sample projects:
41+
42+
* `restdocs-server`: A sample server documenting its REST API (i.e. the Spring REST Docs "notes" example).
43+
Besides producing human-readable documentation it will also generate JSON snippets to be used as stubs for WireMock.
4144
* `restdocs-client`: A sample client using the server API, with integration testing its client contract against the stubs provided via WireMock.
4245

4346

@@ -334,6 +337,17 @@ public class MyTest {
334337
335338
## Building from source
336339
340+
This project uses JDK 8.
341+
JDK 8 can be used via [SDKMAN!](https://sdkman.io/).
342+
343+
```
344+
# (a) not installed, yet
345+
sdk install java 8.0.282.j9-adpt
346+
347+
# (b) already installed
348+
sdk use java 8.0.282.j9-adpt
349+
```
350+
337351
Please execute at least step 1 + 2 if before importing restdocs-wiremock into your IDE.
338352
339353
1. Publish the current restdocs-wiremock library code into your local maven repository.
@@ -359,17 +373,37 @@ Please execute at least step 1 + 2 if before importing restdocs-wiremock into yo
359373
360374
## Publishing
361375
362-
This project makes use of the [axion-release-plugin](https://github.com/allegro/axion-release-plugin)
363-
and publishing is automated in travis, when a new release is tagged in git.
364-
365-
Locally you should be able to create a new release by running the `release` task on gradle. A successful
366-
travis build of this tag should finally end up on [bintray](https://bintray.com/epages/maven/restdocs-wiremock/).
376+
Given that the `master` branch on the upstream repository is in the state from which you want to create a release, execute the following steps:
367377
368378
```shell
369-
./gradlew clean build release
379+
git checkout master
380+
git pull upstream master
381+
382+
# Print current version to the terminal
383+
./gradlew currentVersion
384+
385+
# (a) Release new patch version
386+
./gradlew release -Prelease.versionIncrementer=incrementPatch
387+
388+
# (b) Release new minor version
389+
./gradlew release -Prelease.versionIncrementer=incrementMajor
390+
391+
## (c) Release new major version
392+
./gradlew release -Prelease.versionIncrementer=incrementMajor
393+
394+
# Print current version to the terminal
395+
./gradlew currentVersion
370396
```
371397
398+
TravisCI will then take care to call the Gradle tasks which upload the release to Sonatype.
399+
A new staging repository will be create at [oss.sonatype.org](https://oss.sonatype.org/#stagingRepositories).
400+
You need to login there, go to the latest staging repository, and then close and release the repository in the Sonatype UI.
401+
402+
(Once this process is working reliably we can also automate the final manual steps.)
403+
372404
## Other resources
373405
406+
- [gradle-nexus/publish-plugin](https://github.com/gradle-nexus/publish-plugin)
407+
- [allegro/axion-release-plugin](https://axion-release-plugin.readthedocs.io)
408+
- [Maven Publish Plugin](https://docs.gradle.org/current/userguide/publishing_maven.html)
374409
- A similar approach is taken by [Spring Cloud Contract](https://cloud.spring.io/spring-cloud-contract/)
375-

build.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ buildscript {
22
repositories {
33
jcenter()
44
}
5-
dependencies {
6-
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0"
7-
}
85
}
96

107
plugins {
8+
id 'io.github.gradle-nexus.publish-plugin' version '1.0.0'
119
id 'pl.allegro.tech.build.axion-release' version '1.9.1'
1210
id 'com.github.ben-manes.versions' version '0.20.0'
1311
id 'publishing'
@@ -28,9 +26,14 @@ scmVersion {
2826
}
2927
}
3028

29+
group = 'com.epages'
30+
3131
allprojects {
3232
project.version = scmVersion.version
3333
}
3434

35-
publish.dependsOn(':restdocs-wiremock:bintrayUpload')
36-
publish.dependsOn(':wiremock-spring-boot-starter:bintrayUpload')
35+
nexusPublishing {
36+
repositories {
37+
sonatype ()
38+
}
39+
}

ci_build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -e # Exit with nonzero exit code if anything fails
3+
4+
./gradlew clean build jacocoTestReport coveralls \
5+
--exclude-task signMavenJavaPublication \
6+
--exclude-task signArchives

ci_publish.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
set -e # Exit with nonzero exit code if anything fails
3+
4+
if [[ "$TRAVIS_TAG" =~ ^[0-9.]+ ]] ; then
5+
./gradlew publishToSonatype \
6+
--exclude-task :restdocs-server:publishToSonatype \
7+
--info \
8+
-Dorg.gradle.project.sonatypeUsername="${SONATYPE_USERNAME}" \
9+
-Dorg.gradle.project.sonatypePassword="${SONATYPE_PASSWORD}" \
10+
-Dorg.gradle.project.signing.keyId="${SIGNING_KEY_ID}" \
11+
-Dorg.gradle.project.signing.password="${SIGNING_PASSWORD}" \
12+
-Dorg.gradle.project.signing.secretKeyRingFile="${SIGNING_KEYRING_FILE}"
13+
fi

publish.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

secret-keys.gpg.enc

4.83 KB
Binary file not shown.

wiremock-spring-boot-starter/build.gradle

Lines changed: 37 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@ buildscript {
88
}
99

1010
plugins {
11+
id 'eclipse'
1112
id 'java'
1213
id 'maven'
1314
id 'maven-publish'
14-
id 'eclipse'
15+
id 'signing'
1516
}
1617

1718
apply plugin: 'org.springframework.boot'
1819

19-
apply plugin: 'com.jfrog.bintray'
20-
2120
repositories {
2221
jcenter()
2322
}
@@ -47,28 +46,44 @@ publishing {
4746
from components.java
4847
artifactId 'wiremock-spring-boot-starter'
4948
groupId = project.group
50-
51-
artifact sourceJar {
52-
classifier 'sources'
49+
50+
pom {
51+
name = 'WireMock Spring Boot Starter'
52+
description = 'A Spring Boot Starter which adds a WireMockServer to your client\'s ApplicationContext for integration testing.'
53+
url = 'https://github.com/ePages-de/restdocs-wiremock'
54+
licenses {
55+
license {
56+
name = 'The Apache License, Version 2.0'
57+
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
58+
}
59+
}
60+
developers {
61+
developer {
62+
id = 'ePages'
63+
name = 'ePages Devs'
64+
email = 'info@epages.com'
65+
}
66+
}
67+
scm {
68+
connection = 'scm:git:git://github.com:ePages-de/restdocs-wiremock.git'
69+
developerConnection = 'scm:git:ssh://github.com:ePages-de/restdocs-wiremock.git'
70+
url = 'https://github.com/ePages-de/restdocs-wiremock'
71+
}
5372
}
5473
}
5574
}
5675
}
5776

58-
bintray {
59-
user = project.findProperty('bintrayUser') ?: System.getenv('BINTRAY_USER')
60-
key = project.findProperty('bintrayApiKey') ?: System.getenv('BINTRAY_API_KEY')
61-
publications = ['mavenJava','sourceJar']
62-
publish = true
63-
pkg {
64-
repo = "maven"
65-
name = 'wiremock-spring-boot-starter'
66-
userOrg = 'epages'
67-
websiteUrl = 'https://github.com/ePages-de/restdocs-wiremock'
68-
issueTrackerUrl = 'https://github.com/ePages-de/restdocs-wiremock/issues'
69-
vcsUrl = 'https://github.com/ePages-de/restdocs-wiremock.git'
70-
githubRepo = 'ePages-de/restdocs-wiremock'
71-
githubReleaseNotesFile = 'README.md'
72-
licenses = ['Apache-2.0']
73-
}
77+
java {
78+
withSourcesJar()
79+
withJavadocJar()
80+
}
81+
82+
javadoc {
83+
options.addStringOption('Xdoclint:none', '-quiet')
84+
}
85+
86+
signing {
87+
sign publishing.publications.mavenJava
88+
sign configurations.archives
7489
}

wiremock/build.gradle

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
plugins {
2+
id 'com.github.kt3k.coveralls' version '2.8.2'
3+
id 'jacoco'
24
id 'java'
35
id 'maven'
46
id 'maven-publish'
5-
id 'jacoco'
6-
id 'com.github.kt3k.coveralls' version '2.8.2'
7+
id 'signing'
78
}
89

9-
apply plugin: 'com.jfrog.bintray'
10-
1110
repositories {
1211
jcenter()
1312
}
@@ -49,28 +48,43 @@ publishing {
4948
artifactId 'restdocs-wiremock'
5049
groupId = project.group
5150

52-
artifact sourceJar {
53-
classifier 'sources'
51+
pom {
52+
name = 'REST Docs WireMock'
53+
description = 'Spring REST Docs WireMock Integration'
54+
url = 'https://github.com/ePages-de/restdocs-wiremock'
55+
licenses {
56+
license {
57+
name = 'The Apache License, Version 2.0'
58+
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
59+
}
60+
}
61+
developers {
62+
developer {
63+
id = 'ePages'
64+
name = 'ePages Devs'
65+
email = 'info@epages.com'
66+
}
67+
}
68+
scm {
69+
connection = 'scm:git:git://github.com:ePages-de/restdocs-wiremock.git'
70+
developerConnection = 'scm:git:ssh://github.com:ePages-de/restdocs-wiremock.git'
71+
url = 'https://github.com/ePages-de/restdocs-wiremock'
72+
}
5473
}
5574
}
5675
}
5776
}
5877

78+
java {
79+
withSourcesJar()
80+
withJavadocJar()
81+
}
5982

60-
bintray {
61-
user = project.findProperty('bintrayUser') ?: System.getenv('BINTRAY_USER')
62-
key = project.findProperty('bintrayApiKey') ?: System.getenv('BINTRAY_API_KEY')
63-
publications = ['mavenJava','sourceJar']
64-
publish = true
65-
pkg {
66-
repo = "maven"
67-
name = 'restdocs-wiremock'
68-
userOrg = 'epages'
69-
websiteUrl = 'https://github.com/ePages-de/restdocs-wiremock'
70-
issueTrackerUrl = 'https://github.com/ePages-de/restdocs-wiremock/issues'
71-
vcsUrl = 'https://github.com/ePages-de/restdocs-wiremock.git'
72-
githubRepo = 'ePages-de/restdocs-wiremock'
73-
githubReleaseNotesFile = 'README.md'
74-
licenses = ['Apache-2.0']
75-
}
83+
javadoc {
84+
options.addStringOption('Xdoclint:none', '-quiet')
85+
}
86+
87+
signing {
88+
sign publishing.publications.mavenJava
89+
sign configurations.archives
7690
}

0 commit comments

Comments
 (0)