1 Star 0 Fork 413

wjggwm / porter

forked from sxfad / porter 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 2.54 KB
一键复制 编辑 原始数据 按行查看 历史
apply plugin: 'java'
version 'master'
repositories {
maven{ url"http://maven.aliyun.com/nexus/content/groups/public"}
}
buildscript {
repositories {
maven{ url"http://maven.aliyun.com/nexus/content/groups/public"}
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.5.9.RELEASE"
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'checkstyle'
ext {
group = 'cn.vbill.middleware.porter'
junitVersion = '4.12'
version 'master'
springVersion = '1.5.9.RELEASE'
swaggerVersion = '2.7.0'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
maven{ url"http://maven.aliyun.com/nexus/content/groups/public"}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
dependencies {
testCompile "junit:junit:${junitVersion}"
compile (
'com.alibaba:fastjson:1.2.28',
'com.alibaba:druid:1.1.9',
'commons-dbcp:commons-dbcp:1.4',
'org.apache.commons:commons-lang3:3.7',
"org.springframework.boot:spring-boot-starter:${springVersion}",
"org.springframework.boot:spring-boot-starter-jdbc:${springVersion}",
'commons-beanutils:commons-beanutils:1.9.2',
"org.springframework.boot:spring-boot-starter-mail:${springVersion}",
'mysql:mysql-connector-java:5.1.45'
)
compile files(rootProject.getRootDir().path+'/other_dependencies/ojdbc7.jar')
compile('org.apache.zookeeper:zookeeper:3.4.11'){
exclude group:'org.slf4j',module:'slf4j-api'
exclude group:'org.slf4j',module:'slf4j-log4j12'
exclude group:'log4j',module:'log4j'
}
compileOnly 'org.projectlombok:lombok:1.16.20'
}
//将子项目包复制到根目录
build.doLast {
def rootPath = rootProject.buildDir.getPath() + "/distributions"
copy {
from buildDir.getPath() + "/distributions" into rootPath
}
}
clean.doFirst {
delete "${buildDir}/../out"
}
checkstyle {
toolVersion = 7.7
ignoreFailures = true
configFile = file(rootProject.getRootDir().getPath() + "/checkstyle.xml")
}
test {
ignoreFailures true
}
uploadArchives {
repositories {
mavenDeployer {
mavenLocal()
}
}
}
}
Java
1
https://gitee.com/wjggwm/porter.git
git@gitee.com:wjggwm/porter.git
wjggwm
porter
porter
master

搜索帮助