-
Notifications
You must be signed in to change notification settings - Fork 308
/
Copy pathbuild.gradle.kts
54 lines (44 loc) · 1.39 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
import de.undercouch.gradle.tasks.download.Download
plugins {
id("io.airbyte.gradle.jvm.lib")
id("io.airbyte.gradle.publish")
alias(libs.plugins.de.undercouch.download)
}
dependencies {
api(libs.bundles.micronaut.annotation)
implementation(libs.bundles.jackson)
implementation(libs.guava)
implementation(libs.bundles.slf4j)
implementation(libs.google.cloud.storage)
implementation(libs.airbyte.protocol)
// this dependency is an exception to the above rule because it is only used INTERNALLY to the Commons library.
implementation(libs.json.path)
testImplementation(libs.bundles.junit)
testImplementation(libs.assertj.core)
testImplementation(libs.junit.pioneer)
testRuntimeOnly(libs.junit.jupiter.engine)
testRuntimeOnly(libs.bundles.logback)
}
airbyte {
spotless {
excludes = listOf("src/main/resources/seed/specs_secrets_mask.yaml")
}
}
val downloadSpecSecretMask =
tasks.register<Download>("downloadSpecSecretMask") {
src("https://connectors.airbyte.com/files/registries/v0/specs_secrets_mask.yaml")
dest(File(projectDir, "src/main/resources/seed/specs_secrets_mask.yaml"))
overwrite(true)
onlyIfModified(true)
}
tasks.named("processResources") {
dependsOn(downloadSpecSecretMask)
}
tasks.named<Test>("test") {
environment(
mapOf(
"Z_TESTING_PURPOSES_ONLY_1" to "value-defined",
"Z_TESTING_PURPOSES_ONLY_2" to " ",
),
)
}