Skip to content

Commit fb12c72

Browse files
Rename jar to include watson fixes #4
💚 Testing deployment 💚 Second try 💚 Switch to use tags Auto release
1 parent 7159712 commit fb12c72

File tree

6 files changed

+11
-24
lines changed

6 files changed

+11
-24
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ before_install:
1919
script:
2020
- ./gradlew check
2121
- ./gradlew install -x check
22-
- ./gradlew checkstyleMain
23-
- ./gradlew checkstyleTest
2422
- ./gradlew codeCoverageReport --continue
2523

2624
after_success:
@@ -33,10 +31,11 @@ deploy:
3331
on:
3432
repo: watson-developer-cloud/spring-boot-starter
3533
jdk: oraclejdk8
34+
tags: true
3635

3736
- provider: releases
3837
api_key: ${GITHUB_TOKEN}
39-
file: spring-boot-starter/build/libs/spring-boot-starter-${TRAVIS_BRANCH}-jar-with-dependencies.jar
38+
file: spring-boot-starter/build/libs/watson-spring-boot-starter-${TRAVIS_BRANCH}-jar-with-dependencies.jar
4039
skip_cleanup: true
4140
on:
4241
repo: watson-developer-cloud/spring-boot-starter

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Watson Spring Boot
22

33
[![Build Status](https://travis-ci.org/watson-developer-cloud/spring-boot-starter.svg?branch=master)](https://travis-ci.org/watson-developer-cloud/spring-boot-starter)
4-
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.ibm.watson.developer_cloud/spring-boot-starter/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.ibm.watson.developer_cloud/spring-boot-starter)
4+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.ibm.watson.developer_cloud/watson-spring-boot-starter/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.ibm.watson.developer_cloud/watson-spring-boot-starter)
55
[![CLA assistant](https://cla-assistant.io/readme/badge/watson-developer-cloud/spring-boot-starter)](https://cla-assistant.io/watson-developer-cloud/spring-boot-starter)
66

77
This project adds Spring Boot support for the Watson services.
@@ -13,20 +13,20 @@ using the standard Spring autoconfiguration framework.
1313

1414
All you need to do is:
1515

16-
1. Add the Watson spring-boot-starter dependency to your Spring Boot app:
16+
1. Add the Watson `watson-spring-boot-starter` dependency to your Spring Boot app:
1717

1818
In your maven `pom.xml`
1919
```
2020
<dependency>
2121
<groupId>com.ibm.watson.developer_cloud</groupId>
22-
<artifactId>spring-boot-starter</artifactId>
22+
<artifactId>watson-spring-boot-starter</artifactId>
2323
<version>0.0.1</version>
2424
</dependency>
2525
```
2626
2727
or in your gradle `build.gradle`, in the dependencies stanza, add
2828
```
29-
compile 'com.ibm.watson.developer_cloud:spring-boot-starter:0.0.1'
29+
compile 'com.ibm.watson.developer_cloud:watson-spring-boot-starter:0.0.1'
3030
```
3131
3232
2. Add your Watson service(s) credentials and version info to your application

RELEASES.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Release Process
22

33
* code: https://github.com/watson-developer-cloud/spring-boot-starter
4-
* maven: http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22spring-boot-starter%22
4+
* maven: http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22watson-spring-boot-starter%22
55

66
## Guide to uploading artifacts to the Central Repository
77

@@ -30,15 +30,6 @@ If you are not familiar with Sonatype and/or the maven release process please re
3030
bumpversion major|minor|patch
3131
```
3232

33-
1. Perform a release deployment to OSSRH (Staging) with:
34-
35-
```bash
36-
gradle release
37-
```
38-
39-
You will have to answer prompts for versions and tags. That will tag and commit a new version into your repository automatically.
40-
41-
4233
### Travis setup
4334

4435
Travis should have the following environment variables setup:

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ buildscript {
2121
}
2222
}
2323

24-
2524
plugins {
2625
id 'com.github.johnrengelman.shadow' version '1.2.4'
2726
id 'io.codearte.nexus-staging' version '0.11.0'
@@ -40,7 +39,7 @@ apply plugin: 'propdeps-maven'
4039

4140
import org.apache.tools.ant.filters.*
4241

43-
archivesBaseName = 'spring-boot-starter'
42+
archivesBaseName = 'watson-spring-boot-starter'
4443
description = 'Spring Boot Starter for the IBM Watson Services'
4544

4645
task sourcesJar(type: Jar) {

scripts/deploy.sh

100644100755
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env bash
22

3-
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
4-
openssl aes-256-cbc -K $encrypted_c32defe8b915_key -iv $encrypted_c32defe8b915_iv -in secring.gpg.enc -out scripts/secring.gpg -d
5-
./gradlew uploadArchives -Psigning.keyId=$SIGNING_KEY -Psigning.password=$SIGNING_PASSWORD -Psigning.secretKeyRingFile=./scripts/secring.gpg
6-
./gradlew closeAndReleaseRepository
7-
fi
3+
openssl aes-256-cbc -K $encrypted_c32defe8b915_key -iv $encrypted_c32defe8b915_iv -in scripts/secring.gpg.enc -out scripts/secring.gpg -d
4+
./gradlew uploadArchives -Psigning.keyId=$SIGNING_KEY -Psigning.password=$SIGNING_PASSWORD -Psigning.secretKeyRingFile=./scripts/secring.gpg
5+
./gradlew closeAndReleaseRepository -PnexusUsername=$CI_DEPLOY_USERNAME -PnexusPassword=$CI_DEPLOY_PASSWORD
File renamed without changes.

0 commit comments

Comments
 (0)