forked from rmee/gradle-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle
54 lines (50 loc) · 1.15 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
45
46
47
48
49
50
51
52
53
54
def map = ['HTTP_PROXY': 'http', 'HTTPS_PROXY': 'https']
for (e in System.getenv()) {
def key = e.key.toUpperCase()
if (key in map) {
def base = map[key]
def url = e.value.toURL()
println "configuring systemProp.${base}.proxy=${url.host}:${url.port}"
System.setProperty("${base}.proxyHost", url.host.toString())
System.setProperty("${base}.proxyPort", url.port.toString())
}
}
include 'systemd-application',
'build-on-change',
'jdk-bootstrap',
'jpa-schema-gen',
'cli-base',
'kubectl',
'assemble-needed',
'gcloud',
'terraform',
'az',
'oc',
'helm'
gradle.beforeProject { Project project ->
project.with {
// get password from environment if available
if (System.env['SIGNING_PASSWORD']) {
ext['signing.password'] = System.env['SIGNING_PASSWORD']
}
String sonarLogin = System.env['SONAR_LOGIN']
if (sonarLogin) {
System.setProperty("sonar.login", sonarLogin)
}
buildscript {
repositories {
maven {
url('https://plugins.gradle.org/m2')
}
}
}
repositories {
mavenCentral()
maven {
url('https://plugins.gradle.org/m2')
}
}
version = rootProject.version
group = rootProject.group
}
}