-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
133 lines (100 loc) · 3.08 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
buildscript {
ext {
springBootVersion = '1.5.10.RELEASE'
}
repositories {
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2/'
url 'https://repo.spring.io/libs-snapshot'
}
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath 'org.asciidoctor:asciidoctorj:1.5.3'
classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.11'
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.7'
classpath 'se.transmode.gradle:gradle-docker:1.2'
classpath 'commons-codec:commons-codec:1.9'
classpath 'org.web3j:core:3.2.0'
classpath 'org.springframework.boot:spring-boot-starter-aop:1.5.10.RELEASE'
}
}
plugins {
id 'org.asciidoctor.convert' version '1.5.3'
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'docker'
description = 'qualibrate-java-api'
def javaVersion = JavaVersion.VERSION_1_8
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
group = 'com.kru'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
ext {
snippetsDir = file('build/generated-snippets')
}
dependencies {
compile 'io.springfox:springfox-swagger2:2.4.0'
compile 'io.springfox:springfox-swagger-ui:2.4.0'
compile 'org.springframework.boot:spring-boot-starter-aop:1.5.10.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
//compile 'org.springframework.boot:spring-boot-starter-data-rest'
compile 'org.liquibase:liquibase-core'
compile 'org.projectlombok:lombok:1.16.18'
runtime 'mysql:mysql-connector-java:6.0.4'
runtime 'com.h2database:h2:1.4.190'
compile 'org.springframework.boot:spring-boot-starter-security'
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.7'
compile 'org.web3j:core:3.2.0'
//asciidoctor 'org.springframework.restdocs:spring-restdocs-asciidoctor:1.5.7'
testCompile 'org.springframework.restdocs:spring-restdocs-mockmvc:1.2.1.RELEASE'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'org.springframework.restdocs:spring-restdocs-core:1.2.1.RELEASE'
}
jar {
dependsOn asciidoctor
from("${asciidoctor.outputDir}") {
into 'public/docs'
}
}
test {
outputs.dir snippetsDir
testLogging {
events "passed", "skipped", "failed"
}
}
//======== task for generating asciidoc for API guide ========//
/*
asciidoctor {
attributes 'snippets': snippetsDir
inputs.dir snippetsDir
outputDir = file('site')
dependsOn test
backends('html5', 'pdf')
}
*/
//======== task for generating docker image with every build - not in use as of now ========//
/*
task buildDocker (type:Docker, dependsOn: build) {
applicationName = jar.baseName
dockerfile = file('Dockerfile')
doFirst {
copy {
from jar
into stageDir
}
}
}
*/