forked from eclipse-edc/Connector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
106 lines (90 loc) · 3.12 KB
/
build.gradle.kts
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
/*
* Copyright (c) 2020, 2021 Microsoft Corporation
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0
*
* SPDX-License-Identifier: Apache-2.0
*
* Contributors:
* Microsoft Corporation - initial API and implementation
*
*/
plugins {
`java-library`
`maven-publish`
checkstyle
}
repositories {
mavenCentral()
}
val jetBrainsAnnotationsVersion: String by project
val jacksonVersion: String by project
val securityType by extra { System.getProperty("security.type", "default") }
val iamType by extra { System.getProperty("iam.type", "disabled") }
val configFs by extra { System.getProperty("configuration.fs", "disabled") }
val jupiterVersion: String by project
subprojects {
repositories {
mavenCentral()
maven {
url = uri("https://maven.iais.fraunhofer.de/artifactory/eis-ids-public/")
}
}
}
allprojects {
apply(plugin = "maven-publish")
apply(plugin = "checkstyle")
checkstyle {
toolVersion = "9.0"
configFile = rootProject.file("resources/edc-checkstyle-config.xml")
}
pluginManager.withPlugin("java-library") {
group = "org.eclipse.dataspaceconnector"
version = "0.0.1-SNAPSHOT.1"
dependencies {
api("org.jetbrains:annotations:${jetBrainsAnnotationsVersion}")
api("com.fasterxml.jackson.core:jackson-core:${jacksonVersion}")
api("com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}")
api("com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}")
api("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jacksonVersion}")
testImplementation("org.junit.jupiter:junit-jupiter-api:${jupiterVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${jupiterVersion}")
testImplementation("org.easymock:easymock:4.2")
testImplementation("org.assertj:assertj-core:3.19.0")
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/eclipse-datasspaceconnector/dataspaceconnector")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<Test> {
testLogging {
events("passed", "skipped", "failed")
showStackTraces = true
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
}
tasks.withType<Checkstyle> {
reports {
// lets not generate any reports because that is done from within the Github Actions workflow
html.required.set(false)
xml.required.set(false)
}
}
}
val test by tasks.getting(Test::class) {
useJUnitPlatform()
}