-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
195 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/SETTINGS/1.0.0" xsi:schemalocation="http://maven.apache.org/SETTINGS/1.0.0 | ||
http://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
<servers> | ||
<server> | ||
<!-- Maven Central Deployment --> | ||
<id>ossrh</id> | ||
<username>${env.SONATYPE_USERNAME}</username> | ||
<password>${env.SONATYPE_PASSWORD}</password> | ||
</server> | ||
</servers> | ||
|
||
<profiles> | ||
<profile> | ||
<id>ossrh</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
<properties> | ||
<gpg.executable>${env.GPG_EXECUTABLE}</gpg.executable> | ||
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase> | ||
</properties> | ||
</profile> | ||
</profiles> | ||
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,19 +4,56 @@ | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>io.57blocks</groupId> | ||
<version>0.1.0</version> | ||
<version>0.1.1</version> | ||
<artifactId>sms-spring-boot-starter</artifactId> | ||
<packaging>jar</packaging> | ||
|
||
<name>sms-spring-boot-starter</name> | ||
<description> | ||
sms-spring-boot provide a convenient approach to integrate sms service by pre-defined | ||
configuration. It supports templating with resource bundle. | ||
</description> | ||
<url>https://github.com/57blocks/sms-spring-boot</url> | ||
|
||
<licenses> | ||
<license> | ||
<name>MIT License</name> | ||
<url>http://www.opensource.org/licenses/mit-license.php</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
|
||
<scm> | ||
<url>https://github.com/57blocks/email-spring-boot</url> | ||
<connection>scm:git:https://github.com/57blocks/email-spring-boot.git</connection> | ||
<developerConnection>scm:git:https://github.com/57blocks/email-spring-boot.git</developerConnection> | ||
</scm> | ||
|
||
<developers> | ||
<developer> | ||
<name>Roy Xie</name> | ||
<email>[email protected]</email> | ||
<url>https://github.com/crazypisces</url> | ||
</developer> | ||
<developer> | ||
<name>Troy Young</name> | ||
<email>[email protected]</email> | ||
<url>https://github.com/sgyyz</url> | ||
</developer> | ||
</developers> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<java.version>1.8</java.version> | ||
<twilio-spring-boot-starter.version>0.1.1</twilio-spring-boot-starter.version> | ||
|
||
<gitflow-maven-plugin.version>1.11.0</gitflow-maven-plugin.version> | ||
<twilio-spring-boot-starter.version>0.1.0</twilio-spring-boot-starter.version> | ||
<java-doc-plugin.version>3.0.1</java-doc-plugin.version> | ||
<maven-source-plugin.version>3.0.1</maven-source-plugin.version> | ||
<nexus-staging-maven-plugin.version>1.6.2</nexus-staging-maven-plugin.version> | ||
<maven-gpg-plugin.version>1.5</maven-gpg-plugin.version> | ||
</properties> | ||
|
||
<dependencies> | ||
|
@@ -55,9 +92,10 @@ | |
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.3</version> | ||
<configuration> | ||
<source>8</source> | ||
<target>8</target> | ||
<source>${java.version}</source> | ||
<target>${java.version}</target> | ||
</configuration> | ||
</plugin> | ||
|
||
|
@@ -73,7 +111,84 @@ | |
<commitDevelopmentVersionAtStart>true</commitDevelopmentVersionAtStart> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>${java-doc-plugin.version}</version> | ||
<configuration> | ||
<breakiterator>true</breakiterator> | ||
<charset>UTF-8</charset> | ||
<docencoding>UTF-8</docencoding> | ||
<encoding>UTF-8</encoding> | ||
<failOnError>true</failOnError> | ||
<show>protected</show> | ||
<source>1.8</source> | ||
<version>true</version> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>attach-javadocs</id> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
<phase>package</phase> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<version>${maven-source-plugin.version}</version> | ||
<executions> | ||
<execution> | ||
<id>attach-sources</id> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.sonatype.plugins</groupId> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
<version>${nexus-staging-maven-plugin.version}</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<serverId>ossrh</serverId> | ||
<nexusUrl>https://oss.sonatype.org/</nexusUrl> | ||
<autoReleaseAfterClose>true</autoReleaseAfterClose> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-gpg-plugin</artifactId> | ||
<version>${maven-gpg-plugin.version}</version> | ||
<executions> | ||
<execution> | ||
<id>sign-artifacts</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>sign</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>ossrh</id> | ||
<url>https://oss.sonatype.org/content/repositories/snapshots</url> | ||
</snapshotRepository> | ||
<repository> | ||
<id>ossrh</id> | ||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</repository> | ||
</distributionManagement> | ||
|
||
</project> |