-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (53 loc) · 1.9 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
group "com.akross.london.akross-property-management"
version "1.0-SNAPSHOT"
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath(group: "org.springframework.boot", name: "spring-boot-gradle-plugin", version: "1.5.5.RELEASE")
}
}
apply plugin: "java"
apply plugin: "idea"
apply plugin: "project-report"
apply plugin: "org.springframework.boot"
apply plugin: "application"
mainClassName = "com.akross.AkrossPropertyManagementRunner"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
ext {
jacksonVersion = "2.8.9"
h2Version = "1.4.196"
jsonpath = "2.4.0"
}
dependencies {
//tag::jetty[]
compile(group: "org.springframework.boot", name: "spring-boot-starter-web") {
exclude module: "spring-boot-starter-tomcat"
}
compile(group: "org.springframework.boot", name: "spring-boot-starter-actuator")
compile(group: "org.springframework.boot", name: "spring-boot-starter-jetty")
compile(group: "com.fasterxml.jackson.datatype", name: "jackson-datatype-jsr310", version: "$jacksonVersion")
compile(group: "org.springframework.boot", name: "spring-boot-starter-data-jpa")
compile(group: "com.h2database", name: "h2", version: "$h2Version")
//Test dependencies
testCompile(group: "org.springframework.boot", name: "spring-boot-starter-test")
testCompile(group: "com.jayway.jsonpath", name: "json-path-assert", version: "$jsonpath")
}
task runApp(dependsOn: ["clean", "build", "test"], type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = mainClassName
jvmArgs = ["-Xdebug"
, "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"]
}
task stage(dependsOn: ["clean", "build", "test", "distZip", "installDist"])
build.mustRunAfter clean
distZip.mustRunAfter test
jar {
baseName = "akrosss-property-management"
version = project.getVersion()
}