1
1
ext {
2
- configuration = [
3
- javaVersion = JavaVersion . VERSION_1_7
4
- ]
5
-
6
- libraries = [
7
- mybatisSpringVersion = ' 1.3.1' ,
8
- mybatisVersion = ' 3.4.5' ,
9
- springVersion = ' 4.3.5.RELEASE' ,
10
- springBootVersion = ' 1.5.9.RELEASE' ,
11
- ]
12
-
13
- dependencies = [
14
- " jsqlparser" : " com.github.jsqlparser:jsqlparser:1.1" ,
15
- " mybatis-spring" : " org.mybatis:mybatis-spring:${ mybatisSpringVersion} " ,
16
- " mybatis" : " org.mybatis:mybatis:${ mybatisVersion} " ,
17
- " velocity" :" org.apache.velocity:velocity-engine-core:2.0" ,
18
- " slf4j-api" :" org.slf4j:slf4j-api:1.7.25" ,
19
- " junit" :" junit:junit:4.12" ,
20
- " mockito" :" org.mockito:mockito-core:2.13.0" ,
21
- " commons-dbcp2" :" org.apache.commons:commons-dbcp2:2.1.1" ,
22
- " mybatis-ehcache" :" org.mybatis.caches:mybatis-ehcache:1.1.0" ,
23
- " logback-classic" :" ch.qos.logback:logback-classic:1.2.2" ,
24
- " sqlserver" :" com.microsoft.sqlserver:sqljdbc4:4.0" ,
25
- " postgresql" :" org.postgresql:postgresql:9.4.1212" ,
26
- " oracle" :" com.oracle:ojdbc14:10.2.0.5.0" ,
27
- " h2" :" com.h2database:h2:1.4.194" ,
28
- " mysql" :" mysql:mysql-connector-java:5.1.38" ,
29
- " aspectjweaver" :" org.aspectj:aspectjweaver:1.8.9" ,
30
- " servlet-api" :" javax.servlet:servlet-api:2.5" ,
31
- " lombok" :" org.projectlombok:lombok:1.16.16" ,
32
- " hikaricp" :" com.zaxxer:HikariCP:2.7.0" ,
33
- " spring-test" :" org.springframework:spring-test:${ springVersion} " ,
34
- " spring-webmvc" :" org.springframework:spring-webmvc:${ springVersion} " ,
35
- " spring-context-support" :" org.springframework:spring-context-support:${ springVersion} " ,
36
- " spring-jdbc" :" org.springframework:spring-jdbc:${ springVersion} " ,
37
- " spring-tx" :" org.springframework:spring-tx:${ springVersion} " ,
38
- " druid" :" com.alibaba:druid:1.0.29" ,
39
- " fastjson" :" com.alibaba:fastjson:1.2.37" ,
40
- " tomcatjdbc" :" org.apache.tomcat:tomcat-jdbc:9.0.2" ,
41
- " freemarker" :" org.freemarker:freemarker:2.3.9" ,
42
-
43
- // spring boot
44
- " springboot-autoconfigure" :" org.springframework.boot:spring-boot-autoconfigure:${ springBootVersion} " ,
45
- " springboot-configuration-processor" :" org.springframework.boot:spring-boot-configuration-processor:${ springBootVersion} " ,
46
- " springboot-starter-jdbc" :" org.springframework.boot:spring-boot-starter-jdbc:${ springBootVersion} " ,
47
- ]
2
+ configuration = [
3
+ javaVersion = JavaVersion . VERSION_1_7
4
+ ]
5
+
6
+ libraries = [
7
+ mybatisSpringVersion = ' 1.3.1' ,
8
+ mybatisVersion = ' 3.4.5' ,
9
+ springVersion = ' 4.3.5.RELEASE' ,
10
+ springBootVersion = ' 1.5.9.RELEASE' ,
11
+ ]
12
+
13
+ dependencies = [
14
+ " jsqlparser" : " com.github.jsqlparser:jsqlparser:1.1" ,
15
+ " mybatis-spring" : " org.mybatis:mybatis-spring:${ mybatisSpringVersion} " ,
16
+ " mybatis" : " org.mybatis:mybatis:${ mybatisVersion} " ,
17
+ " velocity" :" org.apache.velocity:velocity-engine-core:2.0" ,
18
+ " slf4j-api" :" org.slf4j:slf4j-api:1.7.25" ,
19
+ " junit" :" junit:junit:4.12" ,
20
+ " mockito" :" org.mockito:mockito-core:2.13.0" ,
21
+ " commons-dbcp2" :" org.apache.commons:commons-dbcp2:2.1.1" ,
22
+ " mybatis-ehcache" :" org.mybatis.caches:mybatis-ehcache:1.1.0" ,
23
+ " logback-classic" :" ch.qos.logback:logback-classic:1.2.2" ,
24
+ " sqlserver" :" com.microsoft.sqlserver:sqljdbc4:4.0" ,
25
+ " postgresql" :" org.postgresql:postgresql:9.4.1212" ,
26
+ " oracle" :" com.oracle:ojdbc14:10.2.0.5.0" ,
27
+ " h2" :" com.h2database:h2:1.4.194" ,
28
+ " mysql" :" mysql:mysql-connector-java:5.1.38" ,
29
+ " aspectjweaver" :" org.aspectj:aspectjweaver:1.8.9" ,
30
+ " servlet-api" :" javax.servlet:servlet-api:2.5" ,
31
+ " lombok" :" org.projectlombok:lombok:1.16.16" ,
32
+ " hikaricp" :" com.zaxxer:HikariCP:2.7.0" ,
33
+ " spring-test" :" org.springframework:spring-test:${ springVersion} " ,
34
+ " spring-webmvc" :" org.springframework:spring-webmvc:${ springVersion} " ,
35
+ " spring-context-support" :" org.springframework:spring-context-support:${ springVersion} " ,
36
+ " spring-jdbc" :" org.springframework:spring-jdbc:${ springVersion} " ,
37
+ " spring-tx" :" org.springframework:spring-tx:${ springVersion} " ,
38
+ " druid" :" com.alibaba:druid:1.0.29" ,
39
+ " fastjson" :" com.alibaba:fastjson:1.2.37" ,
40
+ " tomcatjdbc" :" org.apache.tomcat:tomcat-jdbc:9.0.2" ,
41
+ " freemarker" :" org.freemarker:freemarker:2.3.9" ,
42
+
43
+ // spring boot
44
+ " springboot-autoconfigure" :" org.springframework.boot:spring-boot-autoconfigure:${ springBootVersion} " ,
45
+ " springboot-configuration-processor" :" org.springframework.boot:spring-boot-configuration-processor:${ springBootVersion} " ,
46
+ " springboot-starter-jdbc" :" org.springframework.boot:spring-boot-starter-jdbc:${ springBootVersion} " ,
47
+ ]
48
48
}
49
49
50
50
allprojects {
51
- group = ' com.baomidou'
52
- version = ' 2.1.9'
51
+ group = ' com.baomidou'
52
+ version = ' 2.1.9'
53
53
}
54
54
55
55
56
56
description = " Mybatis 增强工具包 - 只做增强不做改变,简化CRUD操作"
57
57
58
58
buildscript {
59
- repositories {
60
- maven { url " https://repo.spring.io/plugins-release" }
61
- }
62
- dependencies {
63
- classpath(" org.springframework.build.gradle:propdeps-plugin:0.0.7" )
64
- }
59
+ repositories {
60
+ maven { url " https://repo.spring.io/plugins-release" }
61
+ }
62
+ dependencies {
63
+ classpath(" org.springframework.build.gradle:propdeps-plugin:0.0.7" )
64
+ }
65
65
}
66
66
67
67
configure(subprojects) {
68
- apply plugin : ' propdeps'
69
- apply plugin : ' propdeps-idea'
70
- apply plugin : ' propdeps-eclipse'
68
+ apply plugin : ' propdeps'
69
+ apply plugin : ' propdeps-idea'
70
+ apply plugin : ' propdeps-eclipse'
71
71
}
72
72
73
73
subprojects {
74
74
75
- apply plugin : ' java'
76
- apply plugin : ' signing'
75
+ apply plugin : ' java'
76
+ apply plugin : ' signing'
77
77
apply plugin : ' maven-deploy'
78
78
79
- sourceCompatibility = " ${ javaVersion} "
80
- targetCompatibility = " ${ javaVersion} "
81
-
82
- // noinspection GroovyAssignabilityCheck
83
- tasks. withType(JavaCompile ) {
84
- options. encoding = ' UTF-8'
85
- }
86
-
87
- repositories {
88
- mavenLocal()
89
- maven { url " http://maven.aliyun.com/nexus/content/groups/public/" }
90
- maven { url " https://oss.sonatype.org/content/repositories/snapshots/" }
91
- maven { url " http://www.cameliatk.jp/maven2/repository/thirdparty" }
92
- jcenter()
93
- }
94
-
95
- task sourcesJar(type : Jar , dependsOn : classes) {
96
- classifier = ' sources'
97
- from sourceSets. main. allSource
98
- }
99
-
100
- javadoc {
101
- options {
102
- encoding " UTF-8"
103
- charSet ' UTF-8'
104
- author true
105
- version true
106
- failOnError false
107
- links " http://docs.oracle.com/javase/7/docs/api"
108
- }
109
- }
110
-
111
- task javadocJar(type : Jar , dependsOn : javadoc) {
112
- classifier = ' javadoc'
113
- from ' build/docs/javadoc'
114
- }
115
-
116
- artifacts {
117
- archives sourcesJar
118
- archives javadocJar
119
- }
120
-
121
- // gradle clean build uploadArchives -Dun=用户名 -Dps=密码 -x test
122
- uploadArchives {
123
- repositories {
124
- mavenDeployer {
79
+ sourceCompatibility = " ${ javaVersion} "
80
+ targetCompatibility = " ${ javaVersion} "
81
+
82
+ // noinspection GroovyAssignabilityCheck
83
+ tasks. withType(JavaCompile ) {
84
+ options. encoding = ' UTF-8'
85
+ }
86
+
87
+ repositories {
88
+ mavenLocal()
89
+ maven { url " http://maven.aliyun.com/nexus/content/groups/public/" }
90
+ maven { url " https://oss.sonatype.org/content/repositories/snapshots/" }
91
+ maven { url " http://www.cameliatk.jp/maven2/repository/thirdparty" }
92
+ jcenter()
93
+ }
94
+
95
+ task sourcesJar(type : Jar , dependsOn : classes) {
96
+ classifier = ' sources'
97
+ from sourceSets. main. allSource
98
+ }
99
+
100
+ javadoc {
101
+ options {
102
+ encoding " UTF-8"
103
+ charSet ' UTF-8'
104
+ author true
105
+ version true
106
+ failOnError false
107
+ links " http://docs.oracle.com/javase/7/docs/api"
108
+ }
109
+ }
110
+
111
+ task javadocJar(type : Jar , dependsOn : javadoc) {
112
+ classifier = ' javadoc'
113
+ from ' build/docs/javadoc'
114
+ }
115
+
116
+ artifacts {
117
+ archives sourcesJar
118
+ archives javadocJar
119
+ }
120
+
121
+ // gradle clean build uploadArchives -Dun=用户名 -Dps=密码 -x test
122
+ uploadArchives {
123
+ repositories {
124
+ mavenDeployer {
125
125
def isLocal = Boolean . valueOf(project. properties. get(" local" ))
126
126
if (isLocal){
127
127
repository(url : uri(' ../repo' ))
@@ -141,39 +141,39 @@ subprojects{
141
141
authentication(userName : userName, password : passWord)
142
142
}
143
143
}
144
- pom. project {
145
- // noinspection GroovyAssignabilityCheck
146
- name ' mybatis-plus'
147
- packaging ' jar'
148
- description ' An enhanced toolkit of Mybatis to simplify development.'
149
- url ' https://github.com/baomidou/mybatis-plus'
150
-
151
- scm {
152
- connection
' scm:[email protected] :Codearte/gradle-nexus-staging-plugin.git'
153
- developerConnection
' scm:[email protected] :Codearte/gradle-nexus-staging-plugin.git'
154
- url ' https://github.com/baomidou/mybatis-plus'
155
- }
156
-
157
- licenses {
158
- license {
159
- // noinspection GroovyAssignabilityCheck
160
- name ' The Apache License, Version 2.0'
161
- url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
162
- }
163
- }
164
-
165
- developers {
166
- developer {
167
- id ' baomidou'
168
- // noinspection GroovyAssignabilityCheck
169
- name ' hubin'
170
-
171
- }
172
- }
173
- }
174
- }
175
- }
176
- }
177
-
178
- compileJava. dependsOn(processResources)
144
+ pom. project {
145
+ // noinspection GroovyAssignabilityCheck
146
+ name ' mybatis-plus'
147
+ packaging ' jar'
148
+ description ' An enhanced toolkit of Mybatis to simplify development.'
149
+ url ' https://github.com/baomidou/mybatis-plus'
150
+
151
+ scm {
152
+ connection
' scm:[email protected] :Codearte/gradle-nexus-staging-plugin.git'
153
+ developerConnection
' scm:[email protected] :Codearte/gradle-nexus-staging-plugin.git'
154
+ url ' https://github.com/baomidou/mybatis-plus'
155
+ }
156
+
157
+ licenses {
158
+ license {
159
+ // noinspection GroovyAssignabilityCheck
160
+ name ' The Apache License, Version 2.0'
161
+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
162
+ }
163
+ }
164
+
165
+ developers {
166
+ developer {
167
+ id ' baomidou'
168
+ // noinspection GroovyAssignabilityCheck
169
+ name ' hubin'
170
+
171
+ }
172
+ }
173
+ }
174
+ }
175
+ }
176
+ }
177
+
178
+ compileJava. dependsOn(processResources)
179
179
}
0 commit comments