diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..208df74 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,42 @@ +language: java +jdk: + - openjdk8 + +## Build and verify +install: + mvn clean install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V + +script: + mvn clean verify -DskipTests=true -Dmaven.javadoc.skip=false -Dgpg.skip -B -U + +## Only build and deploy sms-spring-boot-starter +before_deploy: + - cd $BUILDING_FOLDER + - mvn help:evaluate -N -Dexpression=project.version|grep -v '\[' + - export project_version=$(mvn help:evaluate -N -Dexpression=project.version|grep -v '\[') + - echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import + - echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust + - mvn --settings .settings.xml clean deploy -DskipTests=false -Dmaven.javadoc.skip=false -B -U + +## Create release in Github +deploy: + provider: releases + api_key: + secure: W4fKOfATeBfOXevAqcjyq7c9fbEQ/7Xyq3zd4OBQxvSCsDQV3tae3GOzu3AjvpyNoMbbzcrDwYwQJm6Oxnud9HVDrh5yQvTEtGii6gqNyKUOjxKYcahjh1gpZg3JS54Z7AjFG+otg7Yrt8KcTy82LyqJ40M5F+DlS6W7FSpwz8eNukIByHYq/Rw+vIHaujL3S2FjsiYuKZG7LlxwXB5mJn2y6agIr08+g4USKCCrVwUXkgqaLOAsob9GxQfmANCFAIo/1XbvyAMJwCfaIMtORxPAkpfheCyX4I2j4yUD26ebYczGST5sRqaJCKobxEZ9MpeJXNx8CkMfBcOXNBk7Mk2LiauOQu/MCzjwv8tJwRfV9lx0oOSuxaSucusxSfrPfvWCmI0Dr3uEZCoDV6yDm1o8J7VtV38ZPghNookCO3gb2UfnghvHY5jZmRETpb+rixXRrj5T7AQqDLnw0Gg4tKonr/gdUH7KlrCuGor924INdiQZTcSlxoDToCjZRRbLC7nAeLDp/3si7zhh59NWCzTHKgrkzHweWSge53lINpR0G8uxdUyToQwkGp9jRLHUgkfbGHKALRwV2MOfOsLO7QTvQScGH3E+faHPQ+ThQ37Oo+/QsS0GWXHdjs2nGT3C3juXUkOvNpwQ2CwhtWh0wFGPHAeA0qm7iMZF/CafTUc= + file: + - "target/sms-spring-boot-starter-$project_version.jar" + - "target/sms-spring-boot-starter-$project_version-javadoc.jar" + - "target/sms-spring-boot-starter-$project_version-sources.jar" + skip_cleanup: true + on: + tags: true + repo: 57blocks/sms-spring-boot + name: $project_version + +cache: + directories: + - ~/.m2/repository + +env: + global: + - BUILDING_FOLDER="`pwd`/sms-spring-boot-starter" diff --git a/README.md b/README.md index 2615bb6..caf9c83 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![Travis-CI](https://travis-ci.org/57blocks/sms-spring-boot.svg?branch=master)](https://travis-ci.org/57blocks/sms-spring-boot) +[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) +[![Maven Central](https://img.shields.io/maven-central/v/io.57blocks/sms-spring-boot-starter.svg)](https://search.maven.org/search?q=a:sms-spring-boot-starter) # SMS Spring Boot Starter Configure an SMS service ready for sending messages. Supports templating with resource bundles. diff --git a/pom.xml b/pom.xml index 0b0382a..3ecc73a 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ io.57blocks sms-spring-boot - 0.1.0 + 0.1.1 pom sms-spring-boot diff --git a/sms-spring-boot-example/pom.xml b/sms-spring-boot-example/pom.xml index 807e112..8889581 100644 --- a/sms-spring-boot-example/pom.xml +++ b/sms-spring-boot-example/pom.xml @@ -12,7 +12,7 @@ io.57blocks sms-spring-boot - 0.1.0 + 0.1.1 ../pom.xml @@ -38,6 +38,7 @@ org.apache.maven.plugins maven-compiler-plugin + 3.3 8 8 diff --git a/sms-spring-boot-example/twilio-sms-example/pom.xml b/sms-spring-boot-example/twilio-sms-example/pom.xml index 5a98042..2049c20 100644 --- a/sms-spring-boot-example/twilio-sms-example/pom.xml +++ b/sms-spring-boot-example/twilio-sms-example/pom.xml @@ -11,7 +11,7 @@ io.57blocks sms-spring-boot-example - 0.1.0 + 0.1.1 ../pom.xml @@ -23,12 +23,12 @@ io.57blocks sms-spring-boot-starter - 0.1.0 + 0.1.1 io.57blocks twilio-spring-boot-starter - 0.1.0 + 0.1.1 @@ -37,6 +37,7 @@ org.springframework.boot spring-boot-maven-plugin + 2.0.7.RELEASE org.codehaus.mojo diff --git a/sms-spring-boot-starter/.settings.xml b/sms-spring-boot-starter/.settings.xml new file mode 100644 index 0000000..8342622 --- /dev/null +++ b/sms-spring-boot-starter/.settings.xml @@ -0,0 +1,24 @@ + + + + + ossrh + ${env.SONATYPE_USERNAME} + ${env.SONATYPE_PASSWORD} + + + + + + ossrh + + true + + + ${env.GPG_EXECUTABLE} + ${env.GPG_PASSPHRASE} + + + + \ No newline at end of file diff --git a/sms-spring-boot-starter/pom.xml b/sms-spring-boot-starter/pom.xml index 0d25f6c..5fda116 100644 --- a/sms-spring-boot-starter/pom.xml +++ b/sms-spring-boot-starter/pom.xml @@ -4,19 +4,56 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + io.57blocks - 0.1.0 + 0.1.1 sms-spring-boot-starter + jar + sms-spring-boot-starter sms-spring-boot provide a convenient approach to integrate sms service by pre-defined configuration. It supports templating with resource bundle. + https://github.com/57blocks/sms-spring-boot + + + + MIT License + http://www.opensource.org/licenses/mit-license.php + repo + + + + + https://github.com/57blocks/email-spring-boot + scm:git:https://github.com/57blocks/email-spring-boot.git + scm:git:https://github.com/57blocks/email-spring-boot.git + + + + + Roy Xie + roy@57blocks.io + https://github.com/crazypisces + + + Troy Young + yongzhi.yang@57blocks.io + https://github.com/sgyyz + + + UTF-8 1.8 + 0.1.1 + 1.11.0 - 0.1.0 + 3.0.1 + 3.0.1 + 1.6.2 + 1.5 @@ -55,9 +92,10 @@ org.apache.maven.plugins maven-compiler-plugin + 3.3 - 8 - 8 + ${java.version} + ${java.version} @@ -73,7 +111,84 @@ true + + + org.apache.maven.plugins + maven-javadoc-plugin + ${java-doc-plugin.version} + + true + UTF-8 + UTF-8 + UTF-8 + true + protected + 1.8 + true + + + + attach-javadocs + + jar + + package + + + + + + org.apache.maven.plugins + maven-source-plugin + ${maven-source-plugin.version} + + + attach-sources + + jar + + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + ${nexus-staging-maven-plugin.version} + true + + ossrh + https://oss.sonatype.org/ + true + + + + + org.apache.maven.plugins + maven-gpg-plugin + ${maven-gpg-plugin.version} + + + sign-artifacts + verify + + sign + + + + + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + +