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
{
dependencies
{
provided
'cn.com.duiba:wolf'
provided
"cn.com.duiba:wolf"
provided
'cn.com.duiba.boot:spring-boot-ext-api'
provided
"cn.com.duiba.boot:spring-boot-ext-api"
provided
'org.springframework:spring-web'
provided
"org.springframework:spring-web"
}
}
service-template/bizModule/build.gradle
View file @
95ecf802
apply
plugin:
'org.springframework.boot'
apply
plugin:
"org.springframework.boot"
jar
{
jar
{
baseName
=
'{artifactId}'
baseName
=
"{artifactId}"
version
=
''
version
=
""
}
}
description
=
'{artifactId}-biz'
description
=
"{artifactId}-biz"
dependencies
{
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-perftest"
compile
'cn.com.duiba.boot:spring-boot-starter-mybatis'
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-cat"
compile
'org.springframework.boot:spring-boot-starter-web'
compile
"org.springframework.boot:spring-boot-starter-web"
compile
'org.springframework.boot:spring-boot-starter-actuator'
compile
"org.springframework.boot:spring-boot-starter-actuator"
compile
'org.springframework.boot:spring-boot-starter-jdbc'
compile
"org.springframework.boot:spring-boot-starter-jdbc"
compile
'org.springframework.cloud:spring-cloud-starter-config'
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-eureka-client"
compile
'org.springframework.cloud:spring-cloud-starter-netflix-hystrix'
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-netflix-ribbon"
compile
'org.springframework.cloud:spring-cloud-starter-openfeign'
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
{
//
install
{
//
...
...
service-template/build.gradle
View file @
95ecf802
buildscript
{
buildscript
{
ext
{
ext
{
springBootVersion
=
'1.5.14.RELEASE'
springBootVersion
=
"1.5.14.RELEASE"
}
}
repositories
{
repositories
{
mavenLocal
()
mavenLocal
()
maven
{
url
'http://nexus.dui88.com:8081/nexus/content/groups/public/'
}
maven
{
url
"http://nexus.dui88.com:8081/nexus/content/groups/public/"
}
maven
{
url
'https://plugins.gradle.org/m2/'
}
//sonarqube
maven
{
url
"https://plugins.gradle.org/m2/"
}
//sonarqube
maven
{
url
'http://repo.spring.io/plugins-release'
}
maven
{
url
"http://repo.spring.io/plugins-release"
}
mavenCentral
()
mavenCentral
()
}
}
dependencies
{
dependencies
{
classpath
'io.spring.gradle:dependency-management-plugin:1.0.5.RELEASE'
classpath
"io.spring.gradle:dependency-management-plugin:1.0.5.RELEASE"
classpath
'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5'
//sonarqube
classpath
"org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5"
//sonarqube
classpath
'org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}'
classpath
"org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath
'org.springframework.build.gradle:propdeps-plugin:0.0.7'
classpath
"org.springframework.build.gradle:propdeps-plugin:0.0.7"
classpath
'cn.com.duiba:duiba-gradle-plugin:0.1.7'
classpath
"cn.com.duiba:duiba-gradle-plugin:0.1.7"
}
}
}
}
apply
plugin:
'org.sonarqube'
apply
plugin:
"org.sonarqube"
allprojects
{
allprojects
{
apply
plugin:
'maven'
apply
plugin:
"maven"
apply
plugin:
'java'
apply
plugin:
"java"
apply
plugin:
'idea'
apply
plugin:
"idea"
apply
plugin:
'eclipse'
apply
plugin:
"eclipse"
apply
plugin:
'jacoco'
apply
plugin:
"jacoco"
apply
plugin:
'io.spring.dependency-management'
apply
plugin:
"io.spring.dependency-management"
apply
plugin:
'propdeps'
apply
plugin:
"propdeps"
test
{
test
{
ignoreFailures
=
true
ignoreFailures
=
true
}
}
group
=
'{groupId}'
group
=
"{groupId}"
version
=
'0.0.1-SNAPSHOT'
version
=
"0.0.1-SNAPSHOT"
}
}
subprojects
{
subprojects
{
...
@@ -40,24 +40,24 @@ subprojects {
...
@@ -40,24 +40,24 @@ subprojects {
targetCompatibility
=
1.8
targetCompatibility
=
1.8
configurations
{
configurations
{
all
*.
exclude
group:
'log4j'
,
module:
'log4j'
all
*.
exclude
group:
"log4j"
,
module:
"log4j"
all
*.
exclude
group:
'org.slf4j'
,
module:
'slf4j-log4j12'
all
*.
exclude
group:
"org.slf4j"
,
module:
"slf4j-log4j12"
all
*.
exclude
group:
'javax.servlet'
,
module:
'servlet-api'
//servlet 2.5
all
*.
exclude
group:
"javax.servlet"
,
module:
"servlet-api"
//servlet 2.5
}
}
dependencyManagement
{
dependencyManagement
{
dependencies
{
dependencies
{
imports
{
imports
{
mavenBom
'cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.200'
mavenBom
"cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.200"
mavenBom
'org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4'
mavenBom
"org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4"
}
}
}
}
}
}
repositories
{
repositories
{
mavenLocal
()
mavenLocal
()
maven
{
url
'http://nexus.dui88.com:8081/nexus/content/groups/public/'
}
maven
{
url
"http://nexus.dui88.com:8081/nexus/content/groups/public/"
}
mavenCentral
()
mavenCentral
()
}
}
...
@@ -65,37 +65,37 @@ subprojects {
...
@@ -65,37 +65,37 @@ subprojects {
uploadArchives
{
uploadArchives
{
repositories
{
repositories
{
mavenDeployer
{
mavenDeployer
{
snapshotRepository
(
url:
'http://nexus.dui88.com:8081/nexus/content/repositories/snapshots/'
)
{
snapshotRepository
(
url:
"http://nexus.dui88.com:8081/nexus/content/repositories/snapshots/"
)
{
authentication
(
userName:
'admin'
,
password:
'admin123'
)
authentication
(
userName:
"admin"
,
password:
"admin123"
)
}
}
repository
(
url:
'http://nexus.dui88.com:8081/nexus/content/repositories/releases/'
)
{
repository
(
url:
"http://nexus.dui88.com:8081/nexus/content/repositories/releases/"
)
{
authentication
(
userName:
'admin'
,
password:
'admin123'
)
authentication
(
userName:
"admin"
,
password:
"admin123"
)
}
}
pom
.
project
{
pom
.
project
{
name
project
.
name
name
project
.
name
packaging
'jar'
packaging
"jar"
description
project
.
name
description
project
.
name
url
'www.duiba.com.cn'
url
"www.duiba.com.cn"
scm
{
scm
{
url
''
url
""
connection
''
connection
""
developerConnection
''
developerConnection
""
}
}
licenses
{
licenses
{
license
{
license
{
name
'No License'
name
"No License"
url
'http://www.duiba.com.cn'
url
"http://www.duiba.com.cn"
distribution
'repo'
distribution
"repo"
}
}
}
}
developers
{
developers
{
developer
{
developer
{
id
'xuhengfei'
id
"xuhengfei"
name
'Hengfei Xu'
name
"Hengfei Xu"
}
}
}
}
}
}
...
@@ -104,7 +104,7 @@ subprojects {
...
@@ -104,7 +104,7 @@ subprojects {
}
}
task
sourcesJar
(
type:
Jar
,
dependsOn:
classes
)
{
task
sourcesJar
(
type:
Jar
,
dependsOn:
classes
)
{
classifier
=
'sources'
classifier
=
"sources"
from
sourceSets
.
main
.
allSource
from
sourceSets
.
main
.
allSource
}
}
...
@@ -112,7 +112,7 @@ subprojects {
...
@@ -112,7 +112,7 @@ subprojects {
archives
sourcesJar
archives
sourcesJar
}
}
task
listJars
(
description:
'Display all compile jars.'
)
<<
{
task
listJars
(
description:
"Display all compile jars."
)
<<
{
configurations
.
compile
.
each
{
File
file
->
println
file
.
name
}
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
{
buildscript
{
ext
{
ext
{
springBootVersion
=
'1.5.14.RELEASE'
springBootVersion
=
"1.5.14.RELEASE"
}
}
repositories
{
repositories
{
mavenLocal
()
mavenLocal
()
maven
{
url
'http://nexus.dui88.com:8081/nexus/content/groups/public/'
}
maven
{
url
"http://nexus.dui88.com:8081/nexus/content/groups/public/"
}
maven
{
url
'https://plugins.gradle.org/m2/'
}
//sonarqube
maven
{
url
"https://plugins.gradle.org/m2/"
}
//sonarqube
maven
{
url
'http://repo.spring.io/plugins-release'
}
maven
{
url
"http://repo.spring.io/plugins-release"
}
mavenCentral
()
mavenCentral
()
}
}
dependencies
{
dependencies
{
classpath
'io.spring.gradle:dependency-management-plugin:1.0.5.RELEASE'
classpath
"io.spring.gradle:dependency-management-plugin:1.0.5.RELEASE"
classpath
'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5'
//sonarqube
classpath
"org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5"
//sonarqube
classpath
'org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}'
classpath
"org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath
'org.springframework.build.gradle:propdeps-plugin:0.0.7'
classpath
"org.springframework.build.gradle:propdeps-plugin:0.0.7"
classpath
'cn.com.duiba:duiba-gradle-plugin:0.1.7'
classpath
"cn.com.duiba:duiba-gradle-plugin:0.1.7"
}
}
}
}
apply
plugin:
'duiba.gradle.plugin'
apply
plugin:
"duiba.gradle.plugin"
apply
plugin:
'maven'
apply
plugin:
"maven"
apply
plugin:
'java'
apply
plugin:
"java"
apply
plugin:
'idea'
apply
plugin:
"idea"
apply
plugin:
'eclipse'
apply
plugin:
"eclipse"
apply
plugin:
'jacoco'
apply
plugin:
"jacoco"
apply
plugin:
'io.spring.dependency-management'
apply
plugin:
"io.spring.dependency-management"
apply
plugin:
'org.springframework.boot'
apply
plugin:
"org.springframework.boot"
apply
plugin:
'propdeps'
apply
plugin:
"propdeps"
test
{
test
{
ignoreFailures
=
true
ignoreFailures
=
true
}
}
group
=
'{groupId}'
group
=
"{groupId}"
version
=
'0.0.1-SNAPSHOT'
version
=
"0.0.1-SNAPSHOT"
sourceCompatibility
=
1.8
sourceCompatibility
=
1.8
targetCompatibility
=
1.8
targetCompatibility
=
1.8
jar
{
jar
{
baseName
=
'{artifactId}'
baseName
=
"{artifactId}"
version
=
''
version
=
""
}
}
configurations
{
configurations
{
all
*.
exclude
group:
'log4j'
,
module:
'log4j'
all
*.
exclude
group:
"log4j"
,
module:
"log4j"
all
*.
exclude
group:
'org.slf4j'
,
module:
'slf4j-log4j12'
all
*.
exclude
group:
"org.slf4j"
,
module:
"slf4j-log4j12"
all
*.
exclude
group:
'javax.servlet'
,
module:
'servlet-api'
//servlet 2.5
all
*.
exclude
group:
"javax.servlet"
,
module:
"servlet-api"
//servlet 2.5
}
}
repositories
{
repositories
{
mavenLocal
()
mavenLocal
()
maven
{
url
'http://nexus.dui88.com:8081/nexus/content/groups/public/'
}
maven
{
url
"http://nexus.dui88.com:8081/nexus/content/groups/public/"
}
maven
{
url
'https://plugins.gradle.org/m2/'
}
//sonarqube
maven
{
url
"https://plugins.gradle.org/m2/"
}
//sonarqube
maven
{
url
'http://repo.spring.io/plugins-release'
}
maven
{
url
"http://repo.spring.io/plugins-release"
}
mavenCentral
()
mavenCentral
()
}
}
...
@@ -63,35 +63,35 @@ dependencyManagement {
...
@@ -63,35 +63,35 @@ dependencyManagement {
dependencies
{
dependencies
{
imports
{
imports
{
mavenBom
'cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.200'
mavenBom
"cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.200"
mavenBom
'org.springframework.boot:spring-boot-dependencies:${springBootVersion}'
mavenBom
"org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
mavenBom
'org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4'
mavenBom
"org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4"
}
}
}
}
}
}
dependencies
{
dependencies
{
compile
'cn.com.duiba.boot:spring-boot-starter-perftest'
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-cat"
compile
'cn.com.duiba.boot:spring-boot-starter-xss'
compile
"cn.com.duiba.boot:spring-boot-starter-xss"
compile
'org.springframework.boot:spring-boot-starter-web'
compile
"org.springframework.boot:spring-boot-starter-web"
compile
'org.springframework.boot:spring-boot-starter-actuator'
compile
"org.springframework.boot:spring-boot-starter-actuator"
compile
'org.springframework.boot:spring-boot-starter-freemarker'
compile
"org.springframework.boot:spring-boot-starter-freemarker"
compile
'org.springframework.cloud:spring-cloud-starter-config'
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-eureka-client"
compile
'org.springframework.cloud:spring-cloud-starter-netflix-hystrix'
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-netflix-ribbon"
compile
'org.springframework.cloud:spring-cloud-starter-openfeign'
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-swagger-ui:2.5.0"
compile
'io.springfox:springfox-swagger2: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
{
//
install
{
//
...
@@ -104,37 +104,37 @@ uploadArchives {//
...
@@ -104,37 +104,37 @@ uploadArchives {//
uploadArchives
{
uploadArchives
{
repositories
{
repositories
{
mavenDeployer
{
mavenDeployer
{
snapshotRepository
(
url:
'http://nexus.dui88.com:8081/nexus/content/repositories/snapshots/'
)
{
snapshotRepository
(
url:
"http://nexus.dui88.com:8081/nexus/content/repositories/snapshots/"
)
{
authentication
(
userName:
'admin'
,
password:
'admin123'
)
authentication
(
userName:
"admin"
,
password:
"admin123"
)
}
}
repository
(
url:
'http://nexus.dui88.com:8081/nexus/content/repositories/releases/'
)
{
repository
(
url:
"http://nexus.dui88.com:8081/nexus/content/repositories/releases/"
)
{
authentication
(
userName:
'admin'
,
password:
'admin123'
)
authentication
(
userName:
"admin"
,
password:
"admin123"
)
}
}
pom
.
project
{
pom
.
project
{
name
project
.
name
name
project
.
name
packaging
'jar'
packaging
"jar"
description
project
.
name
description
project
.
name
url
'www.duiba.com.cn'
url
"www.duiba.com.cn"
scm
{
scm
{
url
''
url
""
connection
''
connection
""
developerConnection
''
developerConnection
""
}
}
licenses
{
licenses
{
license
{
license
{
name
'No License'
name
"No License"
url
'http://www.duiba.com.cn'
url
"http://www.duiba.com.cn"
distribution
'repo'
distribution
"repo"
}
}
}
}
developers
{
developers
{
developer
{
developer
{
id
'xuhengfei'
id
"xuhengfei"
name
'Hengfei Xu'
name
"Hengfei Xu"
}
}
}
}
}
}
...
@@ -142,7 +142,7 @@ uploadArchives {
...
@@ -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
}
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