-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (57 loc) · 1.36 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
group 'com.clone.digg'
version '0.1-ALPHA'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
buildscript {
repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.2.RELEASE")
}
}
springBoot {
executable = true
}
repositories {
mavenCentral()
}
sourceCompatibility = 1.7
targetCompatibility = 1.7
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-jetty")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-autoconfigure")
compile group: 'net.sf.supercsv', name: 'super-csv', version: '2.3.1'
}
tasks.withType(ScalaCompile) {
scalaCompileOptions.useAnt = false
}
task fatJar(type: Jar) {
baseName = 'digg-clone-all'
zip64 true
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}
jar {
zip64 true
dependsOn fatJar
doLast {
tasks.finalZip.execute()
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.2' //we want gradle 2.10 to run this project
}
task finalZip(type: Zip) {
from 'build/libs'
baseName = "digg-clone"
}