代码拉取完成,页面将自动刷新
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'
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。