1 Star 4 Fork 0

青色的风 / app-engine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 2.76 KB
一键复制 编辑 原始数据 按行查看 历史
shaofeng 提交于 2016-02-02 21:03 . 优化配置
apply plugin: 'idea'
allprojects {
group = "com.appengine"
version = "0.1.RELEASE"
}
subprojects {
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'checkstyle'
apply plugin: 'findbugs'
apply plugin: 'jacoco'
sourceCompatibility = 1.8
targetCompatibility = 1.8
buildscript {
repositories {
mavenLocal()
// maven { url "http://maven.oschina.net/content/groups/public/" }
mavenCentral()
maven { url "http://repo.spring.io/milestone" }
maven { url 'http://repo.spring.io/libs-release' }
}
}
repositories {
mavenLocal()
// maven { url "http://maven.oschina.net/content/groups/public/" }
mavenCentral()
maven { url "http://repo.spring.io/milestone" }
maven { url 'http://repo.spring.io/libs-release' }
}
//idea插件会默认下载source和doc文件
idea {
module {
downloadJavadoc = false
downloadSources = false
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
}
}
dependencies {
testCompile "junit:junit:4.11"
testCompile 'org.assertj:assertj-core:3.2.0'
testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVersion"
}
checkstyle {
configFile = file("$rootDir/configs/checkstyle/checkstyle.xml")
configProperties = ['projectDir': projectDir, 'rootDir': rootDir]
toolVersion = '6.10.1'
}
findbugs {
ignoreFailures = false
sourceSets = [sourceSets.main]
if (JavaVersion.current().compareTo(JavaVersion.VERSION_1_7) >= 0) {
findbugs.toolVersion = '3.0.1'
} else {
findbugs.toolVersion = '2.0.3'
}
}
//覆盖率检查 自动绑定在task test上,报告路径:build/reports/tests
jacoco {
toolVersion = '0.7.5.201505241946'
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
}
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: 'http://your.repository.path/') {
authentication(userName: "username", password: "password")
}
pom.groupId = project.group
pom.artifactId = project.name
pom.version = project.version
}
}
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
//添加source jar
artifacts {
archives sourcesJar
}
}
//执行gradle wrapper自动生成gradlew脚本及配置
task wrapper(type: Wrapper) {
gradleVersion = '2.9'
}
Java
1
https://gitee.com/423555593/app-engine.git
git@gitee.com:423555593/app-engine.git
423555593
app-engine
app-engine
master

搜索帮助