Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
project-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭燕飞
project-template
Commits
95ecf802
Commit
95ecf802
authored
Aug 02, 2018
by
郭燕飞
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单引号全部改成双引号
parent
b0c99fed
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
129 additions
and
129 deletions
+129
-129
build.gradle
service-template/apiModule/build.gradle
+4
-4
build.gradle
service-template/bizModule/build.gradle
+20
-20
build.gradle
service-template/build.gradle
+41
-41
build.gradle
web-template/build.gradle
+64
-64
No files found.
service-template/apiModule/build.gradle
View file @
95ecf802
description
=
'{artifactId}-api'
description
=
"{artifactId}-api"
dependencies
{
provided
'cn.com.duiba:wolf'
provided
'cn.com.duiba.boot:spring-boot-ext-api'
provided
'org.springframework:spring-web'
provided
"cn.com.duiba:wolf"
provided
"cn.com.duiba.boot:spring-boot-ext-api"
provided
"org.springframework:spring-web"
}
service-template/bizModule/build.gradle
View file @
95ecf802
apply
plugin:
'org.springframework.boot'
apply
plugin:
"org.springframework.boot"
jar
{
baseName
=
'{artifactId}'
version
=
''
baseName
=
"{artifactId}"
version
=
""
}
description
=
'{artifactId}-biz'
description
=
"{artifactId}-biz"
dependencies
{
compile
project
(
':{artifactId}-api'
)
compile
project
(
":{artifactId}-api"
)
compile
'cn.com.duiba.boot:spring-boot-starter-perftest'
compile
'cn.com.duiba.boot:spring-boot-starter-mybatis'
compile
'cn.com.duiba.boot:spring-boot-starter-cat'
compile
"cn.com.duiba.boot:spring-boot-starter-perftest"
compile
"cn.com.duiba.boot:spring-boot-starter-mybatis"
compile
"cn.com.duiba.boot:spring-boot-starter-cat"
compile
'org.springframework.boot:spring-boot-starter-web'
compile
'org.springframework.boot:spring-boot-starter-actuator'
compile
'org.springframework.boot:spring-boot-starter-jdbc'
compile
'org.springframework.cloud:spring-cloud-starter-config'
compile
'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
compile
'org.springframework.cloud:spring-cloud-starter-netflix-hystrix'
compile
'org.springframework.cloud:spring-cloud-starter-netflix-ribbon'
compile
'org.springframework.cloud:spring-cloud-starter-openfeign'
compile
"org.springframework.boot:spring-boot-starter-web"
compile
"org.springframework.boot:spring-boot-starter-actuator"
compile
"org.springframework.boot:spring-boot-starter-jdbc"
compile
"org.springframework.cloud:spring-cloud-starter-config"
compile
"org.springframework.cloud:spring-cloud-starter-netflix-eureka-client"
compile
"org.springframework.cloud:spring-cloud-starter-netflix-hystrix"
compile
"org.springframework.cloud:spring-cloud-starter-netflix-ribbon"
compile
"org.springframework.cloud:spring-cloud-starter-openfeign"
compile
'org.apache.commons:commons-dbcp2'
compile
"org.apache.commons:commons-dbcp2"
compile
'mysql:mysql-connector-java'
compile
"mysql:mysql-connector-java"
compile
'javax.validation:validation-api'
compile
"javax.validation:validation-api"
testCompile
'org.springframework.boot:spring-boot-starter-test'
testCompile
"org.springframework.boot:spring-boot-starter-test"
}
install
{
//
...
...
service-template/build.gradle
View file @
95ecf802
buildscript
{
ext
{
springBootVersion
=
'1.5.14.RELEASE'
springBootVersion
=
"1.5.14.RELEASE"
}
repositories
{
mavenLocal
()
maven
{
url
'http://nexus.dui88.com:8081/nexus/content/groups/public/'
}
maven
{
url
'https://plugins.gradle.org/m2/'
}
//sonarqube
maven
{
url
'http://repo.spring.io/plugins-release'
}
maven
{
url
"http://nexus.dui88.com:8081/nexus/content/groups/public/"
}
maven
{
url
"https://plugins.gradle.org/m2/"
}
//sonarqube
maven
{
url
"http://repo.spring.io/plugins-release"
}
mavenCentral
()
}
dependencies
{
classpath
'io.spring.gradle:dependency-management-plugin:1.0.5.RELEASE'
classpath
'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5'
//sonarqube
classpath
'org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}'
classpath
'org.springframework.build.gradle:propdeps-plugin:0.0.7'
classpath
'cn.com.duiba:duiba-gradle-plugin:0.1.7'
classpath
"io.spring.gradle:dependency-management-plugin:1.0.5.RELEASE"
classpath
"org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5"
//sonarqube
classpath
"org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath
"org.springframework.build.gradle:propdeps-plugin:0.0.7"
classpath
"cn.com.duiba:duiba-gradle-plugin:0.1.7"
}
}
apply
plugin:
'org.sonarqube'
apply
plugin:
"org.sonarqube"
allprojects
{
apply
plugin:
'maven'
apply
plugin:
'java'
apply
plugin:
'idea'
apply
plugin:
'eclipse'
apply
plugin:
'jacoco'
apply
plugin:
'io.spring.dependency-management'
apply
plugin:
'propdeps'
apply
plugin:
"maven"
apply
plugin:
"java"
apply
plugin:
"idea"
apply
plugin:
"eclipse"
apply
plugin:
"jacoco"
apply
plugin:
"io.spring.dependency-management"
apply
plugin:
"propdeps"
test
{
ignoreFailures
=
true
}
group
=
'{groupId}'
version
=
'0.0.1-SNAPSHOT'
group
=
"{groupId}"
version
=
"0.0.1-SNAPSHOT"
}
subprojects
{
...
...
@@ -40,24 +40,24 @@ subprojects {
targetCompatibility
=
1.8
configurations
{
all
*.
exclude
group:
'log4j'
,
module:
'log4j'
all
*.
exclude
group:
'org.slf4j'
,
module:
'slf4j-log4j12'
all
*.
exclude
group:
'javax.servlet'
,
module:
'servlet-api'
//servlet 2.5
all
*.
exclude
group:
"log4j"
,
module:
"log4j"
all
*.
exclude
group:
"org.slf4j"
,
module:
"slf4j-log4j12"
all
*.
exclude
group:
"javax.servlet"
,
module:
"servlet-api"
//servlet 2.5
}
dependencyManagement
{
dependencies
{
imports
{
mavenBom
'cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.200'
mavenBom
'org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4'
mavenBom
"cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.200"
mavenBom
"org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4"
}
}
}
repositories
{
mavenLocal
()
maven
{
url
'http://nexus.dui88.com:8081/nexus/content/groups/public/'
}
maven
{
url
"http://nexus.dui88.com:8081/nexus/content/groups/public/"
}
mavenCentral
()
}
...
...
@@ -65,37 +65,37 @@ subprojects {
uploadArchives
{
repositories
{
mavenDeployer
{
snapshotRepository
(
url:
'http://nexus.dui88.com:8081/nexus/content/repositories/snapshots/'
)
{
authentication
(
userName:
'admin'
,
password:
'admin123'
)
snapshotRepository
(
url:
"http://nexus.dui88.com:8081/nexus/content/repositories/snapshots/"
)
{
authentication
(
userName:
"admin"
,
password:
"admin123"
)
}
repository
(
url:
'http://nexus.dui88.com:8081/nexus/content/repositories/releases/'
)
{
authentication
(
userName:
'admin'
,
password:
'admin123'
)
repository
(
url:
"http://nexus.dui88.com:8081/nexus/content/repositories/releases/"
)
{
authentication
(
userName:
"admin"
,
password:
"admin123"
)
}
pom
.
project
{
name
project
.
name
packaging
'jar'
packaging
"jar"
description
project
.
name
url
'www.duiba.com.cn'
url
"www.duiba.com.cn"
scm
{
url
''
connection
''
developerConnection
''
url
""
connection
""
developerConnection
""
}
licenses
{
license
{
name
'No License'
url
'http://www.duiba.com.cn'
distribution
'repo'
name
"No License"
url
"http://www.duiba.com.cn"
distribution
"repo"
}
}
developers
{
developer
{
id
'xuhengfei'
name
'Hengfei Xu'
id
"xuhengfei"
name
"Hengfei Xu"
}
}
}
...
...
@@ -104,7 +104,7 @@ subprojects {
}
task
sourcesJar
(
type:
Jar
,
dependsOn:
classes
)
{
classifier
=
'sources'
classifier
=
"sources"
from
sourceSets
.
main
.
allSource
}
...
...
@@ -112,7 +112,7 @@ subprojects {
archives
sourcesJar
}
task
listJars
(
description:
'Display all compile jars.'
)
<<
{
task
listJars
(
description:
"Display all compile jars."
)
<<
{
configurations
.
compile
.
each
{
File
file
->
println
file
.
name
}
}
...
...
web-template/build.gradle
View file @
95ecf802
description
=
'{artifactId}'
description
=
"{artifactId}"
apply
plugin:
'org.sonarqube'
apply
plugin:
"org.sonarqube"
buildscript
{
ext
{
springBootVersion
=
'1.5.14.RELEASE'
springBootVersion
=
"1.5.14.RELEASE"
}
repositories
{
mavenLocal
()
maven
{
url
'http://nexus.dui88.com:8081/nexus/content/groups/public/'
}
maven
{
url
'https://plugins.gradle.org/m2/'
}
//sonarqube
maven
{
url
'http://repo.spring.io/plugins-release'
}
maven
{
url
"http://nexus.dui88.com:8081/nexus/content/groups/public/"
}
maven
{
url
"https://plugins.gradle.org/m2/"
}
//sonarqube
maven
{
url
"http://repo.spring.io/plugins-release"
}
mavenCentral
()
}
dependencies
{
classpath
'io.spring.gradle:dependency-management-plugin:1.0.5.RELEASE'
classpath
'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5'
//sonarqube
classpath
'org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}'
classpath
'org.springframework.build.gradle:propdeps-plugin:0.0.7'
classpath
'cn.com.duiba:duiba-gradle-plugin:0.1.7'
classpath
"io.spring.gradle:dependency-management-plugin:1.0.5.RELEASE"
classpath
"org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5"
//sonarqube
classpath
"org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath
"org.springframework.build.gradle:propdeps-plugin:0.0.7"
classpath
"cn.com.duiba:duiba-gradle-plugin:0.1.7"
}
}
apply
plugin:
'duiba.gradle.plugin'
apply
plugin:
'maven'
apply
plugin:
'java'
apply
plugin:
'idea'
apply
plugin:
'eclipse'
apply
plugin:
'jacoco'
apply
plugin:
'io.spring.dependency-management'
apply
plugin:
'org.springframework.boot'
apply
plugin:
'propdeps'
apply
plugin:
"duiba.gradle.plugin"
apply
plugin:
"maven"
apply
plugin:
"java"
apply
plugin:
"idea"
apply
plugin:
"eclipse"
apply
plugin:
"jacoco"
apply
plugin:
"io.spring.dependency-management"
apply
plugin:
"org.springframework.boot"
apply
plugin:
"propdeps"
test
{
ignoreFailures
=
true
}
group
=
'{groupId}'
version
=
'0.0.1-SNAPSHOT'
group
=
"{groupId}"
version
=
"0.0.1-SNAPSHOT"
sourceCompatibility
=
1.8
targetCompatibility
=
1.8
jar
{
baseName
=
'{artifactId}'
version
=
''
baseName
=
"{artifactId}"
version
=
""
}
configurations
{
all
*.
exclude
group:
'log4j'
,
module:
'log4j'
all
*.
exclude
group:
'org.slf4j'
,
module:
'slf4j-log4j12'
all
*.
exclude
group:
'javax.servlet'
,
module:
'servlet-api'
//servlet 2.5
all
*.
exclude
group:
"log4j"
,
module:
"log4j"
all
*.
exclude
group:
"org.slf4j"
,
module:
"slf4j-log4j12"
all
*.
exclude
group:
"javax.servlet"
,
module:
"servlet-api"
//servlet 2.5
}
repositories
{
mavenLocal
()
maven
{
url
'http://nexus.dui88.com:8081/nexus/content/groups/public/'
}
maven
{
url
'https://plugins.gradle.org/m2/'
}
//sonarqube
maven
{
url
'http://repo.spring.io/plugins-release'
}
maven
{
url
"http://nexus.dui88.com:8081/nexus/content/groups/public/"
}
maven
{
url
"https://plugins.gradle.org/m2/"
}
//sonarqube
maven
{
url
"http://repo.spring.io/plugins-release"
}
mavenCentral
()
}
...
...
@@ -63,35 +63,35 @@ dependencyManagement {
dependencies
{
imports
{
mavenBom
'cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.200'
mavenBom
'org.springframework.boot:spring-boot-dependencies:${springBootVersion}'
mavenBom
'org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4'
mavenBom
"cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.200"
mavenBom
"org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
mavenBom
"org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4"
}
}
}
dependencies
{
compile
'cn.com.duiba.boot:spring-boot-starter-perftest'
compile
'cn.com.duiba.boot:spring-boot-starter-cat'
compile
'cn.com.duiba.boot:spring-boot-starter-xss'
compile
"cn.com.duiba.boot:spring-boot-starter-perftest"
compile
"cn.com.duiba.boot:spring-boot-starter-cat"
compile
"cn.com.duiba.boot:spring-boot-starter-xss"
compile
'org.springframework.boot:spring-boot-starter-web'
compile
'org.springframework.boot:spring-boot-starter-actuator'
compile
'org.springframework.boot:spring-boot-starter-freemarker'
compile
'org.springframework.cloud:spring-cloud-starter-config'
compile
'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
compile
'org.springframework.cloud:spring-cloud-starter-netflix-hystrix'
compile
'org.springframework.cloud:spring-cloud-starter-netflix-ribbon'
compile
'org.springframework.cloud:spring-cloud-starter-openfeign'
compile
"org.springframework.boot:spring-boot-starter-web"
compile
"org.springframework.boot:spring-boot-starter-actuator"
compile
"org.springframework.boot:spring-boot-starter-freemarker"
compile
"org.springframework.cloud:spring-cloud-starter-config"
compile
"org.springframework.cloud:spring-cloud-starter-netflix-eureka-client"
compile
"org.springframework.cloud:spring-cloud-starter-netflix-hystrix"
compile
"org.springframework.cloud:spring-cloud-starter-netflix-ribbon"
compile
"org.springframework.cloud:spring-cloud-starter-openfeign"
compile
'javax.validation:validation-api'
compile
"javax.validation:validation-api"
compile
'io.springfox:springfox-swagger-ui:2.5.0'
compile
'io.springfox:springfox-swagger2:2.5.0'
compile
"io.springfox:springfox-swagger-ui:2.5.0"
compile
"io.springfox:springfox-swagger2:2.5.0"
compile
'com.alibaba:fastjson'
compile
"com.alibaba:fastjson"
testCompile
'org.springframework.boot:spring-boot-starter-test'
testCompile
"org.springframework.boot:spring-boot-starter-test"
}
install
{
//
...
...
@@ -104,37 +104,37 @@ uploadArchives {//
uploadArchives
{
repositories
{
mavenDeployer
{
snapshotRepository
(
url:
'http://nexus.dui88.com:8081/nexus/content/repositories/snapshots/'
)
{
authentication
(
userName:
'admin'
,
password:
'admin123'
)
snapshotRepository
(
url:
"http://nexus.dui88.com:8081/nexus/content/repositories/snapshots/"
)
{
authentication
(
userName:
"admin"
,
password:
"admin123"
)
}
repository
(
url:
'http://nexus.dui88.com:8081/nexus/content/repositories/releases/'
)
{
authentication
(
userName:
'admin'
,
password:
'admin123'
)
repository
(
url:
"http://nexus.dui88.com:8081/nexus/content/repositories/releases/"
)
{
authentication
(
userName:
"admin"
,
password:
"admin123"
)
}
pom
.
project
{
name
project
.
name
packaging
'jar'
packaging
"jar"
description
project
.
name
url
'www.duiba.com.cn'
url
"www.duiba.com.cn"
scm
{
url
''
connection
''
developerConnection
''
url
""
connection
""
developerConnection
""
}
licenses
{
license
{
name
'No License'
url
'http://www.duiba.com.cn'
distribution
'repo'
name
"No License"
url
"http://www.duiba.com.cn"
distribution
"repo"
}
}
developers
{
developer
{
id
'xuhengfei'
name
'Hengfei Xu'
id
"xuhengfei"
name
"Hengfei Xu"
}
}
}
...
...
@@ -142,7 +142,7 @@ uploadArchives {
}
}
task
listJars
(
description:
'Display all compile jars.'
)
<<
{
task
listJars
(
description:
"Display all compile jars."
)
<<
{
configurations
.
compile
.
each
{
File
file
->
println
file
.
name
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment