Skip to content

Instantly share code, notes, and snippets.

@graemerocher
Last active Jun 18, 2020
Embed
What would you like to do?
micronaut gradle plugin before and after
plugins {
id "com.github.johnrengelman.shadow" version "6.0.0"
id "io.micronaut.application" version "1.0.0.M2"
}
version "0.1"
group "com.example"
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation("io.micronaut:micronaut-validation")
implementation("io.micronaut:micronaut-http-server-netty")
implementation("io.micronaut:micronaut-http-client")
runtimeOnly("ch.qos.logback:logback-classic")
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("io.micronaut.test:micronaut-test-junit5")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
mainClassName = "com.example.Application"
// use JUnit 5 platform
test {
useJUnitPlatform()
}
java {
sourceCompatibility = JavaVersion.toVersion('1.8')
targetCompatibility = JavaVersion.toVersion('1.8')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment