Fix build.gradle files
This commit is contained in:
38
build.gradle
38
build.gradle
@@ -20,11 +20,9 @@ apply plugin: 'jacoco'
|
|||||||
apply plugin: 'checkstyle'
|
apply plugin: 'checkstyle'
|
||||||
apply plugin: 'application'
|
apply plugin: 'application'
|
||||||
|
|
||||||
application {
|
//application {
|
||||||
mainClassName = 'greenify.client.Application'
|
// mainClassName = 'greenify.server.Application'
|
||||||
}
|
//}
|
||||||
|
|
||||||
//apply plugin: 'org.openjfx.javafxplugin'
|
|
||||||
|
|
||||||
tasks.withType(Checkstyle) {
|
tasks.withType(Checkstyle) {
|
||||||
reports {
|
reports {
|
||||||
@@ -36,16 +34,32 @@ repositories {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
//client bootjar
|
allprojects {
|
||||||
bootJar {
|
task hello {
|
||||||
baseName = 'gs-consuming-rest'
|
doLast { task ->
|
||||||
version = '0.1.0'
|
println "I'm $task.project.name"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//server bootjar
|
////client bootjar
|
||||||
|
//bootJar {
|
||||||
|
// baseName = 'gs-consuming-rest'
|
||||||
|
// version = '0.1.0'
|
||||||
|
//}
|
||||||
|
//
|
||||||
|
////server bootjar
|
||||||
|
//bootJar {
|
||||||
|
// baseName = 'gs-rest-service'
|
||||||
|
// version = '0.1.0'
|
||||||
|
//}
|
||||||
|
|
||||||
bootJar {
|
bootJar {
|
||||||
baseName = 'gs-rest-service'
|
enabled = false
|
||||||
version = '0.1.0'
|
}
|
||||||
|
|
||||||
|
jar {
|
||||||
|
enabled = true
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
|
|||||||
@@ -42,4 +42,4 @@ jacocoTestReport {
|
|||||||
csv.enabled false
|
csv.enabled false
|
||||||
html.destination file("${buildDir}/jacocoHtml")
|
html.destination file("${buildDir}/jacocoHtml")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,14 +13,6 @@ apply plugin: 'idea'
|
|||||||
apply plugin: 'org.springframework.boot'
|
apply plugin: 'org.springframework.boot'
|
||||||
apply plugin: 'io.spring.dependency-management'
|
apply plugin: 'io.spring.dependency-management'
|
||||||
apply plugin: 'jacoco'
|
apply plugin: 'jacoco'
|
||||||
apply plugin: 'checkstyle'
|
|
||||||
|
|
||||||
|
|
||||||
tasks.withType(Checkstyle) {
|
|
||||||
reports {
|
|
||||||
html.destination rootProject.file("build/reports/checkstyle.html")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bootJar {
|
bootJar {
|
||||||
baseName = 'gs-rest-service'
|
baseName = 'gs-rest-service'
|
||||||
@@ -47,6 +39,7 @@ dependencies {
|
|||||||
annotationProcessor 'org.projectlombok:lombok:1.18.6'
|
annotationProcessor 'org.projectlombok:lombok:1.18.6'
|
||||||
compile("org.springframework.boot:spring-boot-starter-data-jpa")
|
compile("org.springframework.boot:spring-boot-starter-data-jpa")
|
||||||
compile("com.h2database:h2")
|
compile("com.h2database:h2")
|
||||||
|
compile("org.springframework.boot:spring-boot-starter-actuator")
|
||||||
testCompile(
|
testCompile(
|
||||||
'junit:junit:4.12',
|
'junit:junit:4.12',
|
||||||
'org.junit.jupiter:junit-jupiter-api:5.4.0'
|
'org.junit.jupiter:junit-jupiter-api:5.4.0'
|
||||||
@@ -55,6 +48,7 @@ dependencies {
|
|||||||
'org.junit.jupiter:junit-jupiter-engine:5.4.0',
|
'org.junit.jupiter:junit-jupiter-engine:5.4.0',
|
||||||
'org.junit.vintage:junit-vintage-engine:5.4.0'
|
'org.junit.vintage:junit-vintage-engine:5.4.0'
|
||||||
)
|
)
|
||||||
|
compile 'javax.xml.bind:jaxb-api:2.3.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
jacoco {
|
jacoco {
|
||||||
@@ -70,8 +64,3 @@ jacocoTestReport {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
checkstyle {
|
|
||||||
toolVersion = "7.6.1"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user