Skip to content

Commit

Permalink
升级到1.2版本
Browse files Browse the repository at this point in the history
1.把所有的版本设置为可选版本
2.需要自己把需要的druid版本加入即可.
  • Loading branch information
cuisongliu committed Dec 5, 2017
1 parent df1c44f commit b1c9bf4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,16 @@ Add the following nexus repository(fix china access slow problem,already append
在pom.xml加入依赖

Add the following dependency to your pom.xml:


<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.1.5</version>
</dependency>
<dependency>
<groupId>com.cuisongliu</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.0</version>
<version>1.2</version>
</dependency>

### gradle
Expand All @@ -60,6 +65,7 @@ Add the following nexus repository(fix china access slow problem,already append

Add the following dependency to your build.gradle:

compile "com.alibaba:druid:1+"
compile "com.cuisongliu:druid-spring-boot-starter:1+"

### springboot properties set
Expand Down
2 changes: 1 addition & 1 deletion gradle/allproject.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
allprojects {
apply from: "$rootDir/gradle/extra/ext.gradle"
group 'com.cuisongliu'
version = "${duridVersion}"
version = "${projectVersion}"
repositories {
mavenLocal()
maven { url "$nexusUrl" }
Expand Down
3 changes: 2 additions & 1 deletion gradle/extra/ext.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
ext {
junitVersion = "4.11"
springBootVersion = "1.5.3.RELEASE"
duridVersion = "1.1.0"
duridVersion = "1.1.5"
projectVersion = "1.2"
projectLocation = "https://github.com/cuisongliu/${rootProject.name}"
baseUrl = "http://maven.cuisongliu.com"
nexusUrl = "$baseUrl/content/groups/public/"
Expand Down
2 changes: 1 addition & 1 deletion gradle/subprojects/druid-spring-boot-autoconfigure.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
def springBootGroup = "org.springframework.boot"

dependencies {
compile "${springBootGroup}:spring-boot-autoconfigure:${springBootVersion}"
optional "${springBootGroup}:spring-boot-autoconfigure:${springBootVersion}"
optional "${springBootGroup}:spring-boot-configuration-processor:${springBootVersion}"
optional "${springBootGroup}:spring-boot-starter-web:${springBootVersion}"
optional "com.alibaba:druid:${duridVersion}"
Expand Down
4 changes: 2 additions & 2 deletions gradle/subprojects/druid-spring-boot-starter.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
def springBootGroup = "org.springframework.boot"

dependencies {
compile "${springBootGroup}:spring-boot-starter:${springBootVersion}"
optional "${springBootGroup}:spring-boot-starter:${springBootVersion}"
compile "${project.group}:druid-spring-boot-autoconfigure:${project.version}"
compile "com.alibaba:druid:${duridVersion}"
optional "com.alibaba:druid:${duridVersion}"
}

0 comments on commit b1c9bf4

Please sign in to comment.