diff --git a/bin/package-install.cmd b/bin/package-install.cmd new file mode 100644 index 0000000..eefa295 --- /dev/null +++ b/bin/package-install.cmd @@ -0,0 +1,7 @@ +@echo off + +echo project is packaging and installing .... +cd .. +mvn clean package install -Dmeven.test.skip=true +echo project is installed +cd ./bin \ No newline at end of file diff --git a/bin/package-install.sh b/bin/package-install.sh new file mode 100644 index 0000000..2e05381 --- /dev/null +++ b/bin/package-install.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +echo 'project is packaging and installing ....' +cd .. +mvn clean package install -Dmeven.test.skip=true +echo 'project is installed' +cd ./bin \ No newline at end of file diff --git a/bin/release.cmd b/bin/release.cmd new file mode 100644 index 0000000..8bf5d40 --- /dev/null +++ b/bin/release.cmd @@ -0,0 +1,7 @@ +@echo off + +echo project is releasing .... +cd .. +mvn clean package deploy -Dmeven.test.skip=true +echo project is released +cd ./bin \ No newline at end of file diff --git a/bin/release.sh b/bin/release.sh new file mode 100644 index 0000000..ada773c --- /dev/null +++ b/bin/release.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +echo 'project is releasing ....' +cd .. +mvn clean package deploy -Dmeven.test.skip=true +echo 'project is released' +cd ./bin \ No newline at end of file diff --git a/bin/updateVersion.cmd b/bin/updateVersion.cmd new file mode 100644 index 0000000..1c74190 --- /dev/null +++ b/bin/updateVersion.cmd @@ -0,0 +1,10 @@ +@echo off +set /P version= com.github.jackieonway.sms sms-spring-boot-starter - 0.0.1 - + 0.0.2-SNAPSHOT - + + + + + + + + + com.github.jackieonway.sms + ucpass-client + 0.0.2-SNAPSHOT + org.springframework.boot spring-boot-starter-test diff --git a/demo-sms/src/main/java/com/example/demo/sms/controller/HelloController.java b/demo-sms/src/main/java/com/example/demo/sms/controller/HelloController.java index a48f2c6..12953f9 100644 --- a/demo-sms/src/main/java/com/example/demo/sms/controller/HelloController.java +++ b/demo-sms/src/main/java/com/example/demo/sms/controller/HelloController.java @@ -13,28 +13,21 @@ * @className HelloController * @description TODO * @date 2018/11/8 10:17 + * @since 0.0.2 **/ @RestController public class HelloController { /** - * 1. 可以采用排除相关依赖的方式注入Service - * 2. 可以采用加 @Qualifier("tencentSmsService")的方式注入Service , - * value的可选值目前只有 tencentSmsService 和aliSmsService两种, - * 3. 可以采用 - * @Autowired - * private SmsService tencentSmsService; - * 注入,方式与方法2类似 - * 采用方式1,最终的jar包将会比方式2和方法3小,但是最终只有一种短信模式 - * 生效,即只能使用一个短信运营商的服务,方式2,3能快速切换短信运营商 + * 相对于 0.0.1 版本的短信服务,从 0.0.2 开始,依赖取消了版本的强依赖性, + * 这样就需要在使用的时候显示引入相关依赖 + * 使用注入 SmsService 时,直接注入极客 + * 现在支持 阿里、腾讯、云之讯短信服务 */ @Autowired private SmsService smsService; -// @Autowired -// private SmsService aliSmsService; - @GetMapping("/tencent") public Object tencent() { // 具体配置请参照具体运营商 @@ -54,6 +47,6 @@ public Object ali() { aliSmsRequest.setPhoneNumbers(new String[]{"your cellphone"}); aliSmsRequest.setTemplateParam("{\"code\":\"asdsads\"}"); aliSmsRequest.setSignName("123"); - return aliSmsService.sendTemplateSms("328921",aliSmsRequest); + return smsService.sendTemplateSms("328921",aliSmsRequest); }*/ } diff --git a/pom.xml b/pom.xml index b2a84c6..ee79f15 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ com.github.jackieonway.sms sms-spring-boot-parent - 0.0.1 + 0.0.2-SNAPSHOT sms-spring-boot-parent pom @@ -57,6 +57,14 @@ + + org.codehaus.mojo + versions-maven-plugin + 2.3 + + false + + maven-compiler-plugin diff --git a/sms-spring-boot-autoconfigure/pom.xml b/sms-spring-boot-autoconfigure/pom.xml index e3b36de..30bfbe9 100644 --- a/sms-spring-boot-autoconfigure/pom.xml +++ b/sms-spring-boot-autoconfigure/pom.xml @@ -5,11 +5,11 @@ com.github.jackieonway.sms sms-spring-boot-parent - 0.0.1 + 0.0.2-SNAPSHOT ../pom.xml sms-spring-boot-autoconfigure - 0.0.1 + 0.0.2-SNAPSHOT sms-spring-boot-autoconfigure jar @@ -50,7 +50,7 @@ com.github.jackieonway.sms ucpass-client - 0.0.1 + 0.0.2-SNAPSHOT true diff --git a/sms-spring-boot-starter/pom.xml b/sms-spring-boot-starter/pom.xml index 543c463..5426c2a 100644 --- a/sms-spring-boot-starter/pom.xml +++ b/sms-spring-boot-starter/pom.xml @@ -5,11 +5,11 @@ com.github.jackieonway.sms sms-spring-boot-parent - 0.0.1 + 0.0.2-SNAPSHOT ../pom.xml sms-spring-boot-starter - 0.0.1 + 0.0.2-SNAPSHOT sms-spring-boot-starter jar @@ -21,7 +21,7 @@ com.github.jackieonway.sms sms-spring-boot-autoconfigure - 0.0.1 + 0.0.2-SNAPSHOT diff --git a/ucpass-client/pom.xml b/ucpass-client/pom.xml index f671a23..025e48f 100644 --- a/ucpass-client/pom.xml +++ b/ucpass-client/pom.xml @@ -5,12 +5,11 @@ com.github.jackieonway.sms sms-spring-boot-parent - 0.0.1 + 0.0.2-SNAPSHOT ../pom.xml - com.github.jackieonway.sms ucpass-client - 0.0.1 + 0.0.2-SNAPSHOT ucpass-client jar Ucpass project for Spring Boot