Add checkstyle plugin
This commit is contained in:
48
build.gradle
48
build.gradle
@@ -16,44 +16,16 @@ apply plugin: 'eclipse'
|
||||
apply plugin: 'idea'
|
||||
apply plugin: 'org.springframework.boot'
|
||||
apply plugin: 'io.spring.dependency-management'
|
||||
apply plugin: 'jacoco'
|
||||
apply plugin: 'checkstyle'
|
||||
apply plugin: 'application'
|
||||
|
||||
application {
|
||||
mainClassName = 'greenify.server.Application'
|
||||
}
|
||||
|
||||
tasks.withType(Checkstyle) {
|
||||
reports {
|
||||
html.destination rootProject.file("build/reports/checkstyle.html")
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
allprojects {
|
||||
task hello {
|
||||
doLast { task ->
|
||||
println "I'm $task.project.name"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////client bootjar
|
||||
//bootJar {
|
||||
// baseName = 'gs-consuming-rest'
|
||||
// version = '0.1.0'
|
||||
//}
|
||||
//
|
||||
////server bootjar
|
||||
//bootJar {
|
||||
// baseName = 'gs-rest-service'
|
||||
// version = '0.1.0'
|
||||
//}
|
||||
|
||||
bootJar {
|
||||
enabled = false
|
||||
}
|
||||
@@ -65,10 +37,6 @@ jar {
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile("org.springframework.boot:spring-boot-starter")
|
||||
compile("org.springframework:spring-web")
|
||||
@@ -90,22 +58,6 @@ dependencies {
|
||||
)
|
||||
}
|
||||
|
||||
jacoco {
|
||||
toolVersion = "0.8.3"
|
||||
reportsDir = file("$buildDir/customJacocoReportDir")
|
||||
}
|
||||
|
||||
jacocoTestReport {
|
||||
reports {
|
||||
xml.enabled false
|
||||
csv.enabled false
|
||||
html.destination file("${buildDir}/jacocoHtml")
|
||||
}
|
||||
}
|
||||
|
||||
task application(type: JavaExec, dependsOn: classes) {
|
||||
main = 'Cient.Application'
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user