-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
51 lines (44 loc) · 1.24 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
buildscript {
repositories {
maven { url "https://repo.spring.io/libs-release" }
mavenLocal()
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.1.10.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'spring-boot'
apply plugin: 'war'
// to generate spring boot's jar
jar {
baseName = 'acme-retail-sample'
version = '1.0.1'
}
// to generate a good old war
war {
baseName = 'acme-retail-sample'
version = '1.0.1'
}
repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.spring.io/libs-release" }
}
configurations {
providedRuntime // to allow an executable or embeddable war
}
dependencies {
compile 'com.h2database:h2'
compile 'com.google.guava:guava:12.0'
compile 'org.projectlombok:lombok:1.16.2'
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.security:spring-security-openid'
compile 'org.springframework.security.oauth:spring-security-oauth:2.0.6.RELEASE'
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
}
task wrapper(type: Wrapper) {
gradleVersion = '1.11'
}