-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
64 lines (54 loc) · 1.75 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
buildscript {
ext {
springBootVersion = '2.0.2.RELEASE'
snippetsDir = file('build/generated-snippets')
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.9.2'
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'war'
apply plugin: 'org.asciidoctor.convert'
group = 'com.upc.gessi.qrapids'
version = '0.4'
sourceCompatibility = 1.8
war {
baseName = 'qr-forecast-rest'
version = version
enabled = true
}
repositories {
mavenCentral()
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-starter-web')
compile ('org.nuiton.thirdparty:REngine:1.7-3')
compile ('org.nuiton.thirdparty:Rserve:1.7-3')
compile files('lib/qrapids-forecast-0.3.jar')
runtime('org.springframework.boot:spring-boot-devtools')
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testCompile 'org.springframework.restdocs:spring-restdocs-mockmvc:2.0.3.RELEASE'
asciidoctor 'org.springframework.restdocs:spring-restdocs-asciidoctor:2.0.3.RELEASE'
// https://mvnrepository.com/artifact/org.mockito/mockito-core
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.22.0'
// comment this line to launch application from developing environment
// uncomment this line before generating .war file
// providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
}
asciidoctor {
sourceDir = file('docs/asciidoc')
inputs.dir snippetsDir
outputDir = file('docs/asciidoc')
separateOutputDirs = false
dependsOn test
}