-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
executable file
·40 lines (35 loc) · 1.15 KB
/
build.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
allprojects {
group 'ch.so.agi'
apply from: "$rootDir/versioning.gradle"
repositories {
mavenLocal()
maven { url "https://jars.interlis.ch" }
maven { url "https://repo.osgeo.org/repository/release/" }
mavenCentral()
maven { url "https://s01.oss.sonatype.org/service/local/repositories/releases/content/" }
maven { url "https://s01.oss.sonatype.org/service/local/repositories/snapshots/content/" }
maven {
url "https://plugins.gradle.org/m2/"
content {
excludeModule("ch.so.agi","gretl")
}
}
}
}
// Eigentlich sollte Gradle nicht mehr die "-notimestamp" Option verwenden.
// Diese ist mit Java 11 Geschichte. Sie wird hier halt explizit ausgeschaltet.
allprojects {
tasks.withType(Javadoc) {
options.noTimestamp = false
}
}
def env(environmentVariableName){
return env(environmentVariableName, 'UNDEFINED')
}
def env(environmentVariableName, defaultValue) {
def var = System.getenv(environmentVariableName)
if (var == null || var.length() == 0) {
var = defaultValue
}
return var;
}