forked from vksiva/gradle-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (47 loc) · 1.46 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
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"
apply plugin: "groovy"
group "app"
version "1.0"
mainClassName = "app.App"
sourceCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
}
dependencyManagement {
imports {
mavenBom "org.jooby:jooby-bom:$joobyVersion"
}
}
dependencies {
compile "io.github.openfeign:feign-core:9.3.1"
compile "io.github.openfeign:feign-gson:9.4.0"
compile "org.apache.httpcomponents:httpclient:4.5.8"
compile "org.codehaus.groovy:groovy-all:2.5.7"
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"]
}