-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (66 loc) · 2.36 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
plugins {
id "io.spring.dependency-management" version "1.0.6.RELEASE"
id "com.github.johnrengelman.shadow" version "4.0.2"
id "application"
id "groovy"
}
version "0.1"
group "com.accuracysoftawre"
repositories {
mavenLocal()
mavenCentral()
maven { url "https://jcenter.bintray.com" }
// maven { url "https://dl.bintray.com/grails/grails-core/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://repo.grails.org/grails/core" }
}
dependencyManagement {
imports {
mavenBom 'io.micronaut:micronaut-bom:1.1.0.RC1'
}
}
configurations {
// for dependencies that are needed for development only
developmentOnly
}
dependencies {
compile "io.micronaut:micronaut-runtime-groovy"
compile "io.micronaut:micronaut-validation"
compile "io.micronaut.configuration:micronaut-hibernate-validator"
compile "io.micronaut.configuration:micronaut-hibernate-gorm"
compile "io.micronaut:micronaut-http-client"
compile "io.micronaut:micronaut-http-server-netty"
compileOnly "io.micronaut:micronaut-inject-groovy"
compile "io.micronaut:micronaut-inject"
runtime "ch.qos.logback:logback-classic:1.2.3"
runtime "com.h2database:h2"
runtime "org.apache.tomcat:tomcat-jdbc"
testAnnotationProcessor "io.micronaut:micronaut-inject-java"
testCompile("org.spockframework:spock-core") {
exclude group: "org.codehaus.groovy", module: "groovy-all"
}
testCompile "io.micronaut:micronaut-inject-groovy"
testCompile "io.micronaut.test:micronaut-test-spock:1.0.1"
testCompile "org.junit.jupiter:junit-jupiter-api"
testCompile "io.micronaut.test:micronaut-test-junit5"
testRuntime "org.junit.jupiter:junit-jupiter-engine"
developmentOnly "io.micronaut:micronaut-runtime-osx"
// graphql stuff
compile "io.micronaut.graphql:micronaut-graphql:1.0.0.RC1"
compile "org.grails:gorm-graphql:1.0.2"
runtime "org.grails:grails-core:4.0.0.M1"
}
shadowJar {
mergeServiceFiles()
}
run.classpath += configurations.developmentOnly
test.classpath += configurations.developmentOnly
run.jvmArgs('-noverify', '-XX:TieredStopAtLevel=1')
mainClassName = "com.accuracysoftawre.Application"
tasks.withType(GroovyCompile) {
groovyOptions.forkOptions.jvmArgs.add('-Dgroovy.parameters=true')
}
// use JUnit 5 platform
test {
useJUnitPlatform()
}