-
Notifications
You must be signed in to change notification settings - Fork 8
/
settings.gradle
44 lines (37 loc) · 1.45 KB
/
settings.gradle
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
buildscript {
repositories {
maven {
name = 'xapiLocal'
url = new java.net.URI("file://$rootDir/repo")
metadataSources { sources ->
sources.mavenPom()
}
}
}
dependencies {
classpath 'net.wti.gradle.modern:xapi-gradle-schema-parser:0.5.1'
classpath 'net.wti.gradle.modern:xapi-gradle-settings-plugin:0.5.1'
}
}
rootProject.name = 'xapi'
apply plugin: 'xapi-settings'
def prop = {
String key -> System.getProperty(key) ?:
System.getenv("ORG_GRADLE_PROJECT_$key") ?:
startParameter.projectProperties.get(key)
}
//include(':schema')
//project(':schema').buildFileName = "schema.gradle"
// Instead of buildSrc, we're using an included, composite build, and putting it on buildSrc classpath configuration
logger.debug """Project properties: $startParameter.projectProperties
System Property Args: $startParameter.systemPropertiesArgs
System.properties: ${System.properties.toString().split(", ")}
"""
def composite = prop('xapi.composite')
if (composite == 'true' && !System.getProperty('idea.version')) {
System.setProperty('xapi.composite', 'false')
logger.quiet("Including net.wti.core|gradle as included builds because composite={}", composite.toString())
includeBuild('net.wti.core')
includeBuild('net.wti.gradle.modern')
}
dependencyResolutionManagement.versionCatalogs.create('xapiLib').from(files('gradle/xapiLib.toml'))