-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
51 lines (42 loc) · 1.24 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
buildscript {
ext {
joobyVersion = "1.6.0"
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath "com.google.gradle:osdetector-gradle-plugin:1.6.2"
classpath "io.spring.gradle:dependency-management-plugin:1.0.7.RELEASE"
classpath "org.jooby:jooby-gradle-plugin:$joobyVersion"
}
}
apply plugin: "io.spring.dependency-management"
apply plugin: "com.google.osdetector"
apply plugin: "application"
apply plugin: "jooby"
group "hello"
version "1.0"
mainClassName = "hello.App"
sourceCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
}
dependencyManagement {
imports {
mavenBom "org.jooby:jooby-bom:$joobyVersion"
}
}
dependencies {
compile "org.jooby:jooby-netty"
compile "io.netty:netty-transport-native-epoll:${dependencyManagement.importedProperties['netty.version']}:${osdetector.classifier.contains('linux') ? 'linux-x86_64' : ''}"
compile "io.netty:netty-tcnative-boringssl-static:${dependencyManagement.importedProperties['boringssl.version']}"
testCompile "junit:junit:4.12"
testCompile "io.rest-assured:rest-assured:4.0.0"
}
/** We diverge from the default resources structure to adopt the Jooby standard: */
sourceSets.main.resources {
srcDirs = ["conf", "public"]
}