forked from vtsukur/spring-rest-black-market
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
78 lines (64 loc) · 1.85 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.3.RELEASE")
classpath("io.spring.gradle:dependency-management-plugin:0.5.6.RELEASE")
}
}
plugins {
id "org.asciidoctor.convert" version "1.5.2"
}
ext {
snippetsDir = file('build/generated-snippets')
}
apply plugin: "idea"
apply plugin: "java"
apply plugin: "spring-boot"
apply plugin: "io.spring.dependency-management"
jar {
baseName = "spring-rest-black-market"
dependsOn asciidoctor
from ("${asciidoctor.outputDir}/html5") {
into "static/docs"
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/snapshot' }
}
dependencies {
// For domain modeling + Spring Data JPA.
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.hsqldb:hsqldb")
compile("org.projectlombok:lombok:1.16.6")
compile("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
// Spring Data REST.
compile("org.springframework.boot:spring-boot-starter-data-rest")
compile("org.springframework.data:spring-data-rest-hal-browser")
// Spring Security.
compile("org.springframework.boot:spring-boot-starter-security")
compile("org.springframework.security:spring-security-data")
// Initial test dependencies.
testCompile("org.springframework.boot:spring-boot-starter-test")
testCompile("junit:junit:4.12")
// Extras
testCompile("com.jayway.jsonpath:json-path:2.0.0")
testCompile("org.springframework.restdocs:spring-restdocs-mockmvc:1.0.1.RELEASE")
testCompile("org.springframework.security:spring-security-test")
}
test {
outputs.dir snippetsDir
}
asciidoctor {
attributes 'snippets': snippetsDir
inputs.dir snippetsDir
dependsOn test
dependsOn test
}
task wrapper(type: Wrapper) {
gradleVersion = "2.11"
}