forked from unbroken-dome/gradle-xjc-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
49 lines (43 loc) · 1.83 KB
/
settings.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
pluginManagement {
val kotlinVersion: String by settings
val testSetsVersion: String by settings
// Still needed while we support building this project before Gradle 7.6
resolutionStrategy.eachPlugin {
if (requested.id.namespace == "org.jetbrains.kotlin") {
useVersion(kotlinVersion)
}
if (requested.id.id == "org.unbroken-dome.test-sets") {
useVersion(testSetsVersion)
}
if (requested.id.id == "org.darrylmiles.repack.org.unbroken-dome.test-sets") {
useVersion(testSetsVersion)
}
}
repositories {
gradlePluginPortal()
maven {
url = uri("https://maven.pkg.github.com/dlmiles/gradle-testsets-plugin")
content {
// this repository only contains artifacts for specific groups
includeGroup("org.darrylmiles.repack.org.unbroken-dome.test-sets")
includeGroup("org.darrylmiles.repack.org.unbroken-dome")
}
val GITHUB_USERNAME = System.getenv("GITHUB_USERNAME") ?: System.getenv("GITHUB_ACTOR") ?: ""
val GITHUB_TOKEN = System.getenv("GITHUB_TOKEN") ?: System.getenv("GH_TOKEN") ?: ""
if(GITHUB_USERNAME.isEmpty()) { logger.warn("\$GITHUB_USERNAME not set") }
if(GITHUB_TOKEN.isEmpty()) { logger.warn("\$GITHUB_TOKEN not set") }
// Any valid GH credentials are necessary to download dependencies from GitHubPackages
credentials {
username = GITHUB_USERNAME
password = GITHUB_TOKEN
}
}
mavenCentral()
}
}
rootProject.name = "gradle-xjc-plugin"
if(System.getProperty("excludeDocsTasks") == null) {
include(":docs")
} else {
logger.warn("systemProperty \"excludeDocsTasks\" is present, causing project :docs exclusion")
}