From b01c450d1ba16221936c3e15ded646321e1070cf Mon Sep 17 00:00:00 2001 From: Tom MacKenzie Date: Sat, 17 Aug 2019 18:59:13 -0500 Subject: [PATCH] 1.4: release 1.4 --- README.md | 2 +- docs/Contribute.md | 6 ++++++ otter/build.gradle | 17 ++++++++++++++++- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 94450d1d..82eef803 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ example application. Only 5 files to get started. org.rootservices otter - 1.3 + 1.4 ``` diff --git a/docs/Contribute.md b/docs/Contribute.md index 6ec0ea5d..93ef73a0 100644 --- a/docs/Contribute.md +++ b/docs/Contribute.md @@ -17,3 +17,9 @@ ```bash $ ./gradlew clean publish ``` + +Goto [Maven Central staging repositories](https://oss.sonatype.org/#stagingRepositories) +Search for `Otter` or `rootservices`. +Select the repository just uploaded. +Click `close` it will then prompt to make sure you want to do it. +Click `release` when its done. diff --git a/otter/build.gradle b/otter/build.gradle index fe19b934..ff602ea2 100644 --- a/otter/build.gradle +++ b/otter/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'maven-publish' apply plugin: 'signing' group = "org.rootservices" -version = "1.4-SNAPSHOT" +version = "1.4" archivesBaseName="otter" description = """Otter""" @@ -67,9 +67,24 @@ test { mkdir 'logs/jetty' } +task sourcesJar(type: Jar) { + from sourceSets.main.allJava + archiveClassifier = 'sources' +} + +task javadocJar(type: Jar) { + from javadoc + archiveClassifier = 'javadoc' +} + publishing { publications { mavenJava(MavenPublication) { + artifactId = 'otter' + from components.java + artifact sourcesJar + artifact javadocJar + pom { name = 'otter' packaging = 'jar'