-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
81 lines (67 loc) · 2.3 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
/*
* Copyright (c) Microsoft Corporation.
* All rights reserved.
*/
plugins {
`java-library`
`maven-publish`
}
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") }
subprojects {
repositories {
mavenCentral()
maven {
url = uri("https://maven.iais.fraunhofer.de/artifactory/eis-ids-public/")
}
}
}
allprojects {
apply(plugin = "maven-publish")
pluginManager.withPlugin("java-library") {
group = "com.microsoft"
version = "0.0.1-SNAPSHOT.4"
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:5.5.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.5.2")
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/microsoft/data-appliance-gx")
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
}
}
}
val test by tasks.getting(Test::class) {
useJUnitPlatform()
}