This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·117 lines (92 loc) · 3.12 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
107
108
109
110
111
112
113
114
115
116
117
buildscript {
repositories {
jcenter()
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:0.5.6.RELEASE"
}
}
allprojects {
apply plugin: "io.spring.dependency-management"
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven'
idea {
module {
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
}
}
group 'com.pungwe.db'
version '0.0.1-SNAPSHOT'
task wrapper(type: Wrapper) {
gradleVersion = '2.12'
}
eclipse {
classpath {
containers.remove('org.eclipse.jdt.launching.JRE_CONTAINER')
containers 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8'
}
}
}
subprojects {
repositories {
jcenter()
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
apply plugin: 'java'
apply plugin: 'jacoco'
ext {
springPlatformVersion = "2.0.1.RELEASE"
jacksonVersion = "2.6.3"
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/jacocoHtml"
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencyManagement {
imports {
mavenBom "io.spring.platform:platform-bom:${springPlatformVersion}"
}
dependencies {
dependency 'org.slf4j:slf4j-log4j12:1.7.21'
dependency 'org.apache.commons:commons-lang3:3.4'
// FIXME: This might not be needed...
dependency "com.fasterxml.jackson.engine:jackson-databind:${jacksonVersion}"
dependency "com.fasterxml.jackson.engine:jackson-annotations:${jacksonVersion}"
dependency "com.fasterxml.jackson.engine:jackson-engine:${jacksonVersion}"
dependency "com.fasterxml.jackson.dataformat:jackson-dataformat-smile:${jacksonVersion}"
dependency 'net.jpountz.lz4:lz4:1.3.0'
dependency 'com.esotericsoftware:kryo:3.0.3'
dependency 'com.google.guava:guava:19.0'
dependency 'org.yaml:snakeyaml:1.9'
dependency 'javax.cache:cache-api:1.0.0'
// JNA
dependency 'net.java.dev.jna:jna:4.2.2'
// Templating
dependency "com.lyncode:jtwig-spring:3.1.1"
dependency "joda-time:joda-time:2.9.2"
// Test
dependency "junit:junit:4.12"
}
}
dependencies {
testCompile "junit:junit"
testCompile "org.springframework:spring-test"
}
task writeClasspath << {
buildDir.mkdirs()
new File(buildDir, "classpath.txt").text = configurations.runtime.asPath + "\n"
new File(buildDir, "test-classpath.txt").text = configurations.testRuntime.asPath + ":${buildDir}/classes/main" + "\n"
}
}