Newer
Older
id "com.github.johnrengelman.shadow" version "5.0.0"
id "net.ltgt.apt-eclipse" version "0.21"
id "eclipse-wtp"
id "jacoco"
repositories {
jcenter()
}
dependencies {
// micronaut
annotationProcessor platform("io.micronaut:micronaut-bom:1.2.6")
annotationProcessor "io.micronaut:micronaut-inject-java"
annotationProcessor "io.micronaut:micronaut-validation"
implementation platform("io.micronaut:micronaut-bom:1.2.6")
implementation "io.micronaut:micronaut-http-client"
implementation "io.micronaut:micronaut-inject"
implementation "io.micronaut:micronaut-validation"
implementation "io.micronaut:micronaut-runtime"
implementation "io.micronaut:micronaut-http-server-netty"
implementation "com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.0"
runtimeOnly "ch.qos.logback:logback-classic:1.2.3"
testAnnotationProcessor "io.micronaut:micronaut-inject-java:1.2.6"
testImplementation platform("io.micronaut:micronaut-bom:1.2.6")
testImplementation "org.junit.jupiter:junit-jupiter:5.5.2"
testImplementation "org.junit.jupiter:junit-jupiter-api"
testImplementation "io.micronaut.test:micronaut-test-junit5"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
sourceSets {
main {
java {
srcDirs = ['src/main']
}
resources {
srcDirs = ['src/resources']
exclude '**/*.java'
}
}
test {
java {
srcDirs = ['test']
}
resources {
srcDirs = ['test']
exclude '**/*.java'
}
}
}
reports {
junitXml.enabled = true
html.enabled = true
}
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
}
check.dependsOn jacocoTestReport
mainClassName = "gov.usgs.earthquake.nshmp.www.Application"
shadowJar {
mergeServiceFiles()
}
run.jvmArgs("-noverify", "-XX:TieredStopAtLevel=1", "-Dcom.sun.management.jmxremote")
tasks.withType(JavaCompile){
options.encoding = "UTF-8"