forked from inpercima/run-and-fun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
79 lines (63 loc) · 2.02 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
buildscript {
repositories { mavenCentral() }
dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.7.RELEASE") }
}
plugins {
id "com.moowork.grunt" version "1.1.1"
}
apply plugin: "java"
apply plugin: "eclipse-wtp"
apply plugin: "org.springframework.boot"
sourceCompatibility="1.8"
targetCompatibility="1.8"
jar {
baseName = "run-and-fun"
version = "1.0.0-SNAPSHOT"
}
springBoot { mainClass = "net.inpercima.runandfun.Application" }
repositories { mavenCentral() }
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
dependencies {
compile "com.github.inpercima:rest-api:v0.0.1",
"com.google.guava:guava:19.0",
"org.springframework.boot:spring-boot-starter-web",
"org.springframework.boot:spring-boot-starter-logging",
"org.springframework.boot:spring-boot-starter-data-elasticsearch",
"org.springframework.boot:spring-boot-starter-actuator"
runtime "net.java.dev.jna:jna"
testCompile "org.springframework.boot:spring-boot-starter-test",
"junit:junit:4.12"
}
// see http://www.rehpoehler.de/gradle/Gradle-Eclipse-WTP-Beispiel.html
eclipse{
project {
natures = [
'org.springframework.ide.eclipse.core.springnature',
'org.springsource.ide.eclipse.gradle.core.nature',
'org.eclipse.jdt.core.javanature',
'org.eclipse.wst.common.modulecore.ModuleCoreNature',
'org.eclipse.wst.common.project.facet.core.nature'
]
buildCommand 'org.springframework.ide.eclipse.core.springbuilder'
}
classpath {
defaultOutputDir = file('build/classes')
downloadSources = true
downloadJavadoc = false
}
wtp {
facet {
facet name: 'jst.web', version: '3.0'
}
}
}
// heroku
task stage {
dependsOn build
}
// findMainClass will be run after :processResources and before :jar, so it can be used in :build an :bootRun
findMainClass.dependsOn(grunt_build)