-
-
Notifications
You must be signed in to change notification settings - Fork 250
/
build.gradle
102 lines (81 loc) · 2.77 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.0"
classpath "com.avast.gradle:gradle-docker-compose-plugin:0.17.11"
//classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.10.0"
}
}
test {
useJUnitPlatform()
}
apply plugin: 'kotlin'
//apply plugin: 'org.jetbrains.dokka'
apply plugin: 'docker-compose'
dependencies {
implementation project(':sirix-core')
implementation project(':sirix-query')
testImplementation project(':sirix-core').sourceSets.test.output
implementation implLibraries.kotlinStdlib
implementation implLibraries.kotlinxCoroutinesCore
implementation implLibraries.vertxCore
implementation implLibraries.vertxWeb
implementation implLibraries.vertxLangKotlin
implementation implLibraries.vertxLangKotlinCoroutines
implementation implLibraries.vertxAuthOauth2
implementation implLibraries.vertxWebClient
implementation implLibraries.vertxConfig
implementation implLibraries.kotlinStdlibJdk8
implementation implLibraries.jsoup
testImplementation testLibraries.kotlinTestJunit
testImplementation testLibraries.junit
testImplementation testLibraries.vertxJunit5
testImplementation testLibraries.jsonassert
}
description = 'Non-blocking REST-API for SirixDB.'
shadowJar {
archiveClassifier = 'fat'
manifest {
inheritFrom project.tasks.jar.manifest
}
mergeServiceFiles()
}
jar {
manifest {
attributes('Main-Verticle': 'io.sirix.rest.SirixVerticle',
'Main-Class': 'io.vertx.core.Launcher')
}
finalizedBy shadowJar
}
test {
jvmArgs "-Duser.home=${buildDir}"
}
task copyCertificates(type: Copy) {
from file("$buildDir/resources/main")
include '*.pem'
into file("$buildDir/sirix-data")
}
copyCertificates.dependsOn(processResources)
/*
task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
outputFormat = 'javadoc'
outputDirectory = "$buildDir/javadoc"
configuration {
platform = "JVM"
jdkVersion = 8
}
}
javadocJar.dependsOn dokkaJavadoc*/
dockerCompose.isRequiredBy(test)
test.dependsOn copyCertificates
test.dependsOn composeUp
test.finalizedBy composeDownForced
dockerCompose {
useComposeFiles = ["${projectDir}/src/test/resources/docker-compose.yml"]
// removeImages = "com.avast.gradle.dockercompose.RemoveImages.None" // Other accepted values are: "All" and "Local"
composeLogToFile = project.file('sirix-logs.txt') // redirect output of composeUp and composeDown tasks to this file; default is null (ouput is not redirected)
containerLogToDir = project.file('logs') // directory where composeLogs task stores output of the containers; default: build/containers-logs
projectName = 'sirix-test'
}