-
Notifications
You must be signed in to change notification settings - Fork 353
/
build.gradle.kts
55 lines (48 loc) · 1.37 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
import java.time.Duration
description = "Libraries for running a GraphQL server in Kotlin"
extra["isReleaseVersion"] = !version.toString().endsWith("SNAPSHOT")
plugins {
alias(libs.plugins.nexus.publish)
}
allprojects {
buildscript {
repositories {
mavenCentral()
mavenLocal {
content {
includeGroup("com.expediagroup")
}
}
}
}
repositories {
mavenCentral()
google()
mavenLocal {
content {
includeGroup("com.expediagroup")
}
}
}
}
tasks {
nexusPublishing {
repositories {
sonatype {
username.set(System.getenv("SONATYPE_USERNAME"))
password.set(System.getenv("SONATYPE_PASSWORD"))
}
}
transitionCheckOptions {
maxRetries.set(60)
delayBetween.set(Duration.ofMillis(5000))
}
}
register("resolveIntegrationTestDependencies") {
// our Gradle and Maven integration tests run in separate VMs that will need access to the generated artifacts
// we will need to run them after artifacts are published to local m2 repo
for (graphQLKotlinProject in project.childProjects) {
dependsOn(":${graphQLKotlinProject.key}:publishToMavenLocal")
}
}
}