forked from sogis/gretl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·46 lines (41 loc) · 1.52 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
41
42
43
44
45
46
allprojects {
group 'ch.so.agi'
apply from: "$rootDir/versioning.gradle"
repositories {
mavenLocal()
maven { url "http://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 {
// Damit wird sichergestellt, dass nicht die 2.9999-Releases
// vom Plugin-Portal verwendet werden.
// Schöner wäre, wenn man beim mavenLocal ein include...
// machen würde. Da verstehe ich aber die Syntax nicht.
excludeModule("ch.so.agi","gretl")
}
}
}
}
// Disable very strict javadoc generation, e.g. handling of ">" in comments.
// https://stackoverflow.com/questions/34874175/disable-all-javadoc-in-gradle
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
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;
}