Skip to content

Commit 69d757d

Browse files
authored
Merge pull request #22 from aoju/develop
Develop
2 parents cdda4e4 + 4876e6f commit 69d757d

File tree

42 files changed

+105
-63
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+105
-63
lines changed

bus-all/pom.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66

77
<groupId>org.aoju</groupId>
88
<artifactId>bus-all</artifactId>
9-
<version>3.0.6</version>
9+
<version>3.0.8</version>
1010
<packaging>jar</packaging>
1111

12+
<name>bus-all</name>
13+
<description>Bus All</description>
14+
<url>https://github.com/aoju/bus</url>
15+
1216
<properties>
1317
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1418
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
@@ -124,11 +128,11 @@
124128
<artifactId>bus-http</artifactId>
125129
<version>${project.version}</version>
126130
</dependency>
127-
<!-- <dependency>
131+
<dependency>
128132
<groupId>org.aoju</groupId>
129133
<artifactId>bus-limiter</artifactId>
130134
<version>${project.version}</version>
131-
</dependency>-->
135+
</dependency>
132136
<dependency>
133137
<groupId>org.aoju</groupId>
134138
<artifactId>bus-logger</artifactId>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* The MIT License
3+
*
4+
* Copyright (c) 2017, aoju.org All rights reserved.
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
package org.aoju;
25+
26+
import org.aoju.bus.Version;
27+
28+
/**
29+
* 用于识别当前版本号和版权声明!
30+
* Version is Licensed under the MIT License, Version 3.0.0 (the "License")
31+
*
32+
* @author Kimi Liu
33+
* @version 3.0.6
34+
* @since JDK 1.8
35+
*/
36+
public final class Bus extends Version {
37+
38+
}

bus-base/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.aoju</groupId>
88
<artifactId>bus-base</artifactId>
9-
<version>3.0.6</version>
9+
<version>3.0.8</version>
1010
<packaging>jar</packaging>
1111

1212
<name>bus-base</name>

bus-boot/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.aoju</groupId>
88
<artifactId>bus-boot</artifactId>
9-
<version>3.0.6</version>
9+
<version>3.0.8</version>
1010
<packaging>jar</packaging>
1111

1212
<name>bus-boot</name>

bus-boot/src/main/java/org/aoju/bus/Bus.java renamed to bus-boot/src/main/java/org/aoju/bus/Version.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,20 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222
* THE SOFTWARE.
2323
*/
24-
package org.aoju;
24+
package org.aoju.bus;
2525

2626
/**
2727
* 用于识别当前版本号和版权声明!
28-
* Bus is Licensed under the MIT License, Bus 3.0.0 (the "License")
28+
* Version is Licensed under the MIT License, Version 3.0.0 (the "License")
2929
*
3030
* @author Kimi Liu
3131
* @version 3.0.6
3232
* @since JDK 1.8
3333
*/
34-
public final class Bus {
35-
36-
37-
Bus() {
38-
}
34+
public class Version {
3935

4036
/**
41-
* 获取 Bus 的版本号,版本号的命名规范
37+
* 获取 Version 的版本号,版本号的命名规范
4238
*
4339
* <pre>
4440
* [大版本].[小版本].[发布流水号]
@@ -82,7 +78,7 @@ public static String minor() {
8278
* @return 阶段号
8379
*/
8480
public static String stage() {
85-
return "5";
81+
return "8";
8682
}
8783

8884
/**

bus-boot/src/main/java/org/aoju/bus/boot/consts/BusConsts.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ public class BusConsts {
3636
/***
3737
* 应用名: 备注 @Value("${spring.application.name:@null}")
3838
*/
39-
public static final String BUS_APP_NAME = "spring.application.name";
39+
public static final String BUS_VERSION = "version";
4040

41+
/***
42+
* 应用名: 备注 @Value("${spring.application.name:@null}")
43+
*/
44+
public static final String BUS_APP_NAME = "spring.application.name";
4145
/***
4246
* 应用版本号
4347
*/

bus-boot/src/main/java/org/aoju/bus/boot/env/BusEnvironment.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
package org.aoju.bus.boot.env;
2525

26-
import org.aoju.Bus;
26+
import org.aoju.bus.Version;
2727
import org.aoju.bus.boot.consts.BusConsts;
2828
import org.springframework.boot.SpringApplication;
2929
import org.springframework.boot.env.EnvironmentPostProcessor;
@@ -50,7 +50,7 @@ public void postProcessEnvironment(ConfigurableEnvironment environment,
5050
SpringApplication application) {
5151

5252
/**
53-
* Get Bus version properties
53+
* Get Version version properties
5454
*/
5555
Properties properties = getProperties();
5656

@@ -79,12 +79,12 @@ protected Properties getProperties() {
7979
}
8080

8181
/**
82-
* Get Bus Version string.
82+
* Get Version Version string.
8383
*
8484
* @return version
8585
*/
8686
protected String getVersion() {
87-
return Bus.version() == null ? "" : Bus.version();
87+
return Version.version() == null ? "" : Version.version();
8888
}
8989

9090
}

bus-cache/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.aoju</groupId>
88
<artifactId>bus-cache</artifactId>
9-
<version>3.0.6</version>
9+
<version>3.0.8</version>
1010
<packaging>jar</packaging>
1111

1212
<name>bus-cache</name>

bus-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.aoju</groupId>
88
<artifactId>bus-core</artifactId>
9-
<version>3.0.6</version>
9+
<version>3.0.8</version>
1010
<packaging>jar</packaging>
1111

1212
<name>bus-core</name>

bus-cron/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.aoju</groupId>
88
<artifactId>bus-cron</artifactId>
9-
<version>3.0.6</version>
9+
<version>3.0.8</version>
1010
<packaging>jar</packaging>
1111

1212
<name>bus-cron</name>

0 commit comments

Comments
 (0)