-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle
More file actions
58 lines (49 loc) · 1.57 KB
/
settings.gradle
File metadata and controls
58 lines (49 loc) · 1.57 KB
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
import org.gradle.api.initialization.resolve.RepositoriesMode
pluginManagement {
repositories {
if (System.getenv('INCLUDE_MAVEN_LOCAL')) {
mavenLocal()
}
maven { url = 'https://repo.grails.org/grails/restricted' }
}
includeBuild('./build-logic') {
it.name = 'build-logic'
}
}
plugins {
id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.3'
}
def isCI = System.getenv().containsKey('CI')
def isLocal = !isCI
def isReproducibleBuild = System.getenv('SOURCE_DATE_EPOCH') != null
if (isReproducibleBuild) {
gradle.settingsEvaluated {
logger.warn(
'***** Remote Build Cache Disabled due to Reproducible Build *****\n' +
'Build date will be set to (SOURCE_DATE_EPOCH={})',
System.getenv('SOURCE_DATE_EPOCH')
)
}
}
buildCache {
local { enabled = (isLocal && !isReproducibleBuild) || (isCI && isReproducibleBuild) }
}
rootProject.name = 'grails-server-timing-root'
include('plugin')
project(':plugin').name = 'grails-server-timing'
include('docs')
project(':docs').name = 'grails-server-timing-docs'
include('code-coverage')
file('examples').listFiles({ it.directory } as FileFilter).each {
include(it.name)
project(":$it.name").projectDir = file("examples/$it.name")
}
dependencyResolutionManagement {
repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS
repositories {
if (System.getenv('INCLUDE_MAVEN_LOCAL')) {
mavenLocal()
}
maven { url = 'https://repo.grails.org/grails/restricted' }
}
}