11apply plugin : ' java'
22apply plugin : ' idea'
33apply plugin : ' eclipse'
4- apply plugin : ' spring- boot'
4+ apply plugin : ' org.springframework. boot'
55
6+ group = ' com.raysmond.blog'
7+ version = ' 0.0.1-SNAPSHOT'
68sourceCompatibility = 1.8
7- targetCompatibility = 1.8
8-
9- version = ' 0.1'
109
1110repositories {
1211 mavenLocal()
@@ -21,37 +20,28 @@ bootRun {
2120 systemProperties = System . properties
2221}
2322
24- configurations {
25- compile. exclude module : " spring-boot-starter-tomcat"
26- all* . exclude module : ' spring-boot-starter-logging'
23+ buildscript {
24+ ext {
25+ springBootVersion = ' 1.5.9.RELEASE'
26+ }
27+ repositories {
28+ mavenLocal()
29+ jcenter()
30+ mavenCentral()
31+ }
32+ dependencies {
33+ classpath(" org.springframework.boot:spring-boot-gradle-plugin:${ springBootVersion} " )
34+ }
2735}
2836
2937dependencies {
3038 // spring boot
31- compile " org.springframework.boot:spring-boot-starter-web:1.4.0.RELEASE"
32- compile " org.springframework.boot:spring-boot-starter-jetty:1.4.0.RELEASE"
33- compile " org.springframework.boot:spring-boot-starter-thymeleaf:1.4.0.RELEASE"
39+ compile " org.springframework.boot:spring-boot-starter-web"
40+ compile " org.springframework.boot:spring-boot-starter-thymeleaf"
3441 compile " com.domingosuarez.boot:spring-boot-starter-jade4j:0.3.1"
35- compile " org.springframework.boot:spring-boot-starter-redis:1.4.0.RELEASE"
36- compile(group : ' org.springframework.boot' , name : ' spring-boot-starter' , version :' 1.4.0.RELEASE' ) {
37- exclude(module : ' spring-boot-starter-logging' )
38- }
39- compile ' org.springframework.boot:spring-boot-starter-log4j:1.3.7.RELEASE'
40- compile ' org.springframework.boot:spring-boot-starter-data-jpa:1.4.0.RELEASE'
41- compile ' org.springframework.boot:spring-boot-starter-security:1.4.0.RELEASE'
42-
43- // spring framework
44- compile ' org.springframework:spring-context:4.2.7.RELEASE'
45- compile ' org.springframework:spring-webmvc:4.2.7.RELEASE'
46- compile ' org.springframework.security:spring-security-config:3.2.7.RELEASE'
47- compile ' org.springframework.security:spring-security-web:3.2.7.RELEASE'
48-
49- // persistence
50- compile ' com.zaxxer:HikariCP:+'
51- compile ' org.springframework:spring-orm:4.2.7.RELEASE'
52- compile ' org.hibernate:hibernate-entitymanager:4.3.11.Final'
53- compile ' javax.el:javax.el-api:+'
54- compile ' org.hsqldb:hsqldb:+'
42+ compile " org.springframework.boot:spring-boot-starter-redis:1.4.7.RELEASE"
43+ compile ' org.springframework.boot:spring-boot-starter-data-jpa'
44+ compile ' org.springframework.boot:spring-boot-starter-security'
5545
5646 // view
5747 compile ' de.neuland-bfi:spring-jade4j:0.4.2'
@@ -61,35 +51,21 @@ dependencies {
6151 compile ' org.python:jython-standalone:2.7.0'
6252 compile ' org.pygments:pygments:2.0.2'
6353
64- // spring data
65- compile ' org.springframework.data:spring-data-jpa:1.10.0.RELEASE'
66-
67- // cache
68- compile ' org.springframework.data:spring-data-redis:1.7.0.RELEASE'
69- compile ' redis.clients:jedis:2.7.3'
70-
71- // MySQL
54+ // mysql/hibernate
7255 compile ' mysql:mysql-connector-java:+'
73-
74- // Validation
75- compile ' org.hibernate:hibernate-validator:4.3.2.Final'
76-
77- // Logging
78- compile ' ch.qos.logback:logback-classic:1.1.3'
79- compile ' org.slf4j:slf4j-api:+'
80- compile ' org.apache.commons:commons-lang3:+'
81-
82- // @Inject
83- compile ' javax.inject:javax.inject:+'
56+ compile " org.hibernate:hibernate-core:5.2.12.Final"
57+ compile " org.hibernate:hibernate-entitymanager:5.2.12.Final"
58+ compile " org.hibernate:hibernate-validator"
8459
8560 // JSON
8661 compile ' com.fasterxml.jackson.core:jackson-databind:2.4.1.3'
8762 compile ' com.fasterxml.jackson.core:jackson-annotations:2.4.1'
8863
8964 // Utilities
9065 compile ' com.google.guava:guava:+'
91- compile ' org.modelmapper:modelmapper:0.7.5'
92- compile ' org.projectlombok:lombok:1.16.6'
66+ compile ' org.modelmapper:modelmapper:+'
67+ compile ' org.projectlombok:lombok:+'
68+ compile ' org.apache.commons:commons-lang3:+'
9369 // compile 'com.qiniu:qiniu-java-sdk:7.0.+'
9470
9571 // static resources, ref. http://www.webjars.org/
@@ -99,34 +75,8 @@ dependencies {
9975 compile ' org.webjars:ace:1.2.0'
10076
10177 // test
102- testCompile(" org.springframework.boot:spring-boot-starter-test:1.4.0.RELEASE" )
10378 testCompile ' junit:junit:+'
104- testCompile ' org.mockito:mockito-core:+'
105- testCompile ' org.assertj:assertj-core:+'
106- testCompile ' org.hamcrest:hamcrest-core:+'
107- testCompile ' org.hamcrest:hamcrest-library:+'
108- testCompile ' org.objenesis:objenesis:+'
109- testCompile ' org.springframework:spring-test:+'
110-
79+ testCompile(' org.springframework.boot:spring-boot-starter-test' )
80+ testCompile(' org.springframework.security:spring-security-test' )
11181}
11282
113-
114- buildscript {
115- ext {
116- springBootVersion = ' 1.2.6.RELEASE'
117- }
118-
119- repositories {
120- mavenLocal()
121- jcenter()
122- mavenCentral()
123-
124- maven { url " http://repo.spring.io/release" }
125- maven { url " http://repo.spring.io/milestone" }
126- // maven { url "http://repo.spring.io/snapshot" }
127- }
128-
129- dependencies {
130- classpath " org.springframework.boot:spring-boot-gradle-plugin:${ springBootVersion} "
131- }
132- }
0 commit comments