forked from polypheny/Polypheny-DB
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
165 lines (140 loc) · 4.91 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
import org.jetbrains.gradle.ext.*
buildscript {
repositories {
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath group: "io.freefair.gradle", name: "lombok-plugin", version: lombok_version
classpath group: "com.adarshr", name: "gradle-test-logger-plugin", version: gradle_test_logger_version
}
}
plugins {
id "org.jetbrains.gradle.plugin.idea-ext" version "1.0"
}
allprojects {
buildscript {
repositories {
mavenCentral()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url "https://clojars.org/repo/"
}
}
}
apply plugin: "java-library"
apply plugin: "io.freefair.lombok"
apply plugin: "com.adarshr.test-logger"
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
javadoc.options.encoding = "UTF-8"
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://clojars.org/repo/"
}
maven {
// DBIS Nexus
url "https://dbis-nexus.dmi.unibas.ch/repository/maven2/"
}
}
configurations.all {
// check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, "seconds"
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption("html5", true)
}
// suppress most of the warnings
options.addStringOption("Xdoclint:none", "-quiet")
// Include private fields in JavaDoc
options.memberLevel = JavadocMemberLevel.PRIVATE
}
task integrationTests(type: Test) {
description = 'Runs integration tests.'
group = 'verification'
useJUnit {
includeCategories 'org.polypheny.db.docker.DockerManagerTest'
}
shouldRunAfter(tasks.named('test'))
}
integrationTests.dependsOn(testClasses)
testlogger {
theme 'standard'
showExceptions true
showStackTraces true
showFullStackTraces false
showCauses true
slowThreshold 2000
showSummary true
showSimpleNames false
showPassed false
showSkipped false
showFailed true
showStandardStreams true
showPassedStandardStreams false
showSkippedStandardStreams false
showFailedStandardStreams true
logLevel 'lifecycle'
}
idea {
module {
downloadJavadoc = true
downloadSources = true
inheritOutputDirs = false
outputDir = file("${project.buildDir}/classes")
testOutputDir = file("${project.buildDir}/test-classes")
generatedSourceDirs += file("${project.buildDir}/generated-sources")
generatedSourceDirs += file("${project.buildDir}/generated-test-sources")
}
}
}
idea {
project {
settings {
runConfigurations {
"Polypheny-DB"(Application) {
mainClass = 'org.polypheny.db.PolyphenyDb'
moduleName = getProject().idea.module.name + ".dbms.main"
}
"Polypheny-DB (reset)"(Application) {
mainClass = 'org.polypheny.db.PolyphenyDb'
moduleName = getProject().idea.module.name + ".dbms.main"
programParameters = '-resetCatalog'
}
}
copyright {
useDefault = "ApacheLicense"
profiles {
ApacheLicense {
notice = 'Copyright 2019-$today.year The Polypheny Project\n' +
'\n' +
'Licensed under the Apache License, Version 2.0 (the \"License\");\n' +
'you may not use this file except in compliance with the License.\n' +
'You may obtain a copy of the License at\n' +
'\n' +
'http://www.apache.org/licenses/LICENSE-2.0\n' +
'\n' +
'Unless required by applicable law or agreed to in writing, software\n' +
'distributed under the License is distributed on an \"AS IS\" BASIS,\n' +
'WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n' +
'See the License for the specific language governing permissions and\n' +
'limitations under the License.'
keyword = "Copyright"
}
}
}
}
}
}