This repository was archived by the owner on Nov 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathbuild.gradle
82 lines (70 loc) · 2.34 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.5.RELEASE")
}
}
plugins {
id "org.asciidoctor.convert" version "1.5.8.1"
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
jar {
baseName = 'spring-statemachine-sample'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.10
targetCompatibility = 1.10
repositories {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
ext {
snippetsDir = file('build/generated-snippets')
}
dependencies {
compile('org.springframework.boot:spring-boot-starter')
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile('org.springframework.boot:spring-boot-starter-web')
compile("org.springframework.boot:spring-boot-starter-data-rest")
runtime('org.springframework.data:spring-data-rest-hal-browser')
runtime("com.h2database:h2")
runtime('org.springframework.boot:spring-boot-starter-logging')
asciidoctor 'org.springframework.restdocs:spring-restdocs-asciidoctor'
testCompile 'org.springframework.restdocs:spring-restdocs-restassured'
testCompile 'org.springframework.restdocs:spring-restdocs-mockmvc'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'junit:junit'
'2.0.2.RELEASE'.with { springStatemachineVersion ->
compile("org.springframework.statemachine:spring-statemachine-core:$springStatemachineVersion")
compile("org.springframework.statemachine:spring-statemachine-kryo:$springStatemachineVersion")
testCompile("org.springframework.statemachine:spring-statemachine-test:$springStatemachineVersion")
}
'1.18.2'.with { lombokVersion ->
compileOnly("org.projectlombok:lombok:$lombokVersion")
testCompileOnly("org.projectlombok:lombok:$lombokVersion")
}
}
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
test {
outputs.dir snippetsDir
}
asciidoctor {
inputs.dir snippetsDir
attributes 'snippets': snippetsDir
outputDir "docs"
dependsOn test
}
jar {
dependsOn asciidoctor
from ("docs/html5") {
into 'static/docs'
}
}