forked from IoTUDresden/feedback-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
106 lines (86 loc) · 3.2 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import groovy.xml.MarkupBuilder
buildscript {
repositories {
maven { url 'http://repo.spring.io/plugins-snapshot' }
jcenter()
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.3.0.M5'
classpath 'se.transmode.gradle:gradle-docker:1.2'
}
}
allprojects {
repositories {
// mavenLocal()
mavenCentral()
maven { url 'http://repo.spring.io/milestone' }
maven { url 'http://maven.restlet.com' }
maven { url 'https://IoTUDresden.github.io/proteus-repo/maven/snapshot'}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
sourceCompatibility = '1.8'
eclipse {
project {
name = project.name.replace('/', '-')
}
classpath {
file {
whenMerged { classpath ->
classpath.entries.removeAll { entry ->
entry.path.endsWith '.pom'
}
}
}
}
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-web:1.3.0.M5') { // FIXME necessary?
exclude module: 'spring-boot-starter-tomcat'
}
compile('org.springframework.data:spring-data-neo4j:4.0.0.RELEASE') {
exclude module: 'logback-classic'
}
compile 'org.springframework.data:spring-data-elasticsearch:1.3.0.RELEASE',
'com.google.guava:guava:18.0',
'javax.inject:javax.inject:1',
'joda-time:joda-time:2.8.2',
'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.6.2'
compile 'com.ryantenney.metrics:metrics-spring:3.1.3'
testCompile 'junit:junit:4.12',
'org.easytesting:fest-assert-core:2.0M10'
}
}
project(':service') {
dependencies {
compile project(':plugin/proteus')
}
}
task eclipseLaunchConfiguration() << {
file("$rootDir/Service.launch").withWriter { writer ->
new MarkupBuilder(writer).launchConfiguration(type: 'org.eclipse.jdt.launching.localJavaApplication') {
listAttribute(key: 'org.eclipse.debug.core.MAPPED_RESOURCE_PATHS') {
listEntry value: '/service/src/main/java/de/tud/feedback/FeedbackService.java'
}
listAttribute(key: 'org.eclipse.debug.core.MAPPED_RESOURCE_TYPES') {
listEntry value: '1'
}
listAttribute(key: 'org.eclipse.debug.ui.favoriteGroups') {
listEntry value: 'org.eclipse.debug.ui.launchGroup.debug'
listEntry value: 'org.eclipse.debug.ui.launchGroup.run'
}
stringAttribute key: 'org.eclipse.jdt.launching.MAIN_TYPE', value: 'de.tud.feedback.FeedbackService'
stringAttribute key: 'org.eclipse.jdt.launching.PROJECT_ATTR', value: 'service'
}
}
}
task cleanEclipseLaunchConfiguration() << {
file("$rootDir/Service.launch").delete()
}
eclipseProject.dependsOn eclipseLaunchConfiguration
cleanEclipse.dependsOn cleanEclipseLaunchConfiguration
task wrapper(type: Wrapper) {
gradleVersion = '2.6'
distributionUrl = 'http://services.gradle.org/distributions/gradle-2.6-all.zip'
}