-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
93 lines (77 loc) · 2.07 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.2.3.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'spring-boot'
ext {
springBootVersion = "1.2.3.RELEASE"
userHome = System.getProperty("user.home")
}
applicationName = applicationName.toLowerCase()
archivesBaseName = applicationName
version = "0.1"
mainClassName = "org.svnrepoviewer.SVNApplication"
jar {
baseName = 'svnrepoviewer'
version = "$version"
}
targetCompatibility = "1.8"
sourceCompatibility = "1.8"
repositories {
mavenLocal()
mavenCentral()
maven {
url "http://maven.tmatesoft.com/content/repositories/releases"
}
}
configurations {
all*.exclude group: "commons-logging", module: "commons-logging"
}
dependencies {
compile 'org.tmatesoft.svnkit:svnkit:1.8.10'
compile 'com.google.guava:guava:18.0'
compile 'org.webjars:extjs:6.0.0'
compile 'commons-cli:commons-cli:1.2'
compile "org.springframework.boot:spring-boot-starter-web:$springBootVersion"
compile "org.springframework.boot:spring-boot-starter-data-jpa:$springBootVersion"
compile "org.thymeleaf:thymeleaf-spring4:2.1.4.RELEASE"
compile 'com.h2database:h2:1.4.187'
//Test:
testCompile 'org.testng:testng:6.8.21'
testCompile 'org.mockito:mockito-all:1.10.19'
}
test {
useTestNG()
testLogging {
events "started", "passed", "skipped", "failed", "standardOut", "standardError"
exceptionFormat "full"
showStandardStreams = true
minGranularity = 3
}
}
distZip {
into("$applicationName-$version") {
from 'README'
from 'LICENSE'
}
}
task install {
description = 'Build app and copy to home'
doLast {
exec {
commandLine "rm";
args "-rf", "${userHome}/${applicationName}"
}
exec {
commandLine "cp";
args "-rf", "build/install/${applicationName}", "${userHome}"
}
}
}
install.dependsOn clean, test, installDist