Skip to content

Instantly share code, notes, and snippets.

@kevintanhongann
Last active March 8, 2019 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevintanhongann/890efcc26ed9bf2931198a9b3f2e4cfc to your computer and use it in GitHub Desktop.
Save kevintanhongann/890efcc26ed9bf2931198a9b3f2e4cfc to your computer and use it in GitHub Desktop.
example-micronaut-gorm code snippets
plugins {
id "io.spring.dependency-management" version "1.0.6.RELEASE"
id "com.github.johnrengelman.shadow" version "4.0.2"
}
apply plugin:"application"
apply plugin:"groovy"
version "0.1"
group "example.micronaut.gorm"
repositories {
mavenLocal()
mavenCentral()
maven { url "https://jcenter.bintray.com" }
}
dependencyManagement {
imports {
mavenBom 'io.micronaut:micronaut-bom:1.0.4'
}
}
dependencies {
compile "io.micronaut:micronaut-runtime-groovy"
compile "io.micronaut:micronaut-validation"
compile "io.micronaut:micronaut-http-client"
compile "io.micronaut:micronaut-http-server-netty"
compileOnly "io.micronaut:micronaut-inject-groovy"
runtime "ch.qos.logback:logback-classic:1.2.3"
testCompile "io.micronaut:micronaut-inject-groovy"
testCompile("org.spockframework:spock-core") {
exclude group: "org.codehaus.groovy", module: "groovy-all"
}
compile "io.micronaut.configuration:micronaut-hibernate-gorm"
runtime "com.h2database:h2"
runtime "org.apache.tomcat:tomcat-jdbc:8.5.0"
}
shadowJar {
mergeServiceFiles()
}
run.jvmArgs('-noverify', '-XX:TieredStopAtLevel=1')
mainClassName = "example.micronaut.gorm.Application"
tasks.withType(GroovyCompile) {
groovyOptions.forkOptions.jvmArgs.add('-Dgroovy.parameters=true')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment