forked from gematik/ref-ePA-FdV-Modul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
97 lines (80 loc) · 3.1 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
/*
* Copyright (c) 2020 gematik GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
buildscript {
dependencies {
classpath "de.gematik:gematik-parent-plugin:1.2.0"
classpath "de.gematik:documentation-plugin:1.1.2"
classpath "org.openapitools:openapi-generator-gradle-plugin:4.1.1"
}
}
apply plugin: "de.gematik.parent"
apply plugin: "de.gematik.publish"
apply plugin: "de.gematik.asciidoctor"
apply plugin: "de.gematik.javadoc"
group = 'de.gematik.ti.epa'
description = """ePA FdV Modul"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
javadoc {
source = sourceSets.main.allJava
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.12'
testImplementation group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
testImplementation group: 'org.greenrobot', name: 'eventbus', version: '3.1.1'
testImplementation group: 'com.github.tony19', name: 'logback-android', version: '1.3.0-3'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '3.0.0'
testImplementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.8.1'
testImplementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.8.1'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
}
gematikDocumentation {
projectShortcut = "FDVMODUL"
plantUmlDestinationFolder = "docs/plantuml/FDVMODUL"
asciidocRootSourceDir = "docs"
}
gematikPublish {
name = "FdV-Modul"
description = "The FdV module bundles libraries that provide the functions (service localization, authentication, authorization, session handling, key access) necessary for the use of the electronic patient record."
gitHubProjectName = "ref-epa-fdv-modul"
}
test {
//we want display the following test events
testLogging {
events "PASSED", "STARTED", "FAILED", "SKIPPED"
}
}
task generateAcrossJavadoc(type: GradleBuild) {
buildFile = 'javadoc.gradle'
tasks = ['allJavadoc']
}
task cleanAcrossJavadoc(type: GradleBuild) {
buildFile = 'javadoc.gradle'
tasks = ['clean']
}
sonarqube {
properties {
property 'sonar.exclusions', "**/gen/**/*,**/generatedfromwsdl/**/*"
property 'sonar.coverage.exclusions', "**/gen/**/*,**/generatedfromwsdl/**/*"
property 'sonar.cpd.exclusions', "**/gen/**/*,**/generatedfromwsdl/**/*"
property 'sonar.test.exclusions', "**/gen/**/*,**/generatedfromwsdl/**/*"
}
}
javadoc.finalizedBy generateAcrossJavadoc
clean.finalizedBy cleanAcrossJavadoc