forked from Unidata/thredds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (58 loc) · 3.14 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
allprojects {
// Matches Maven's "project.groupId". Used in MANIFEST.MF for "Implementation-Vendor-Id".
group = "edu.ucar"
// Matches Maven's "project.version". Used in MANIFEST.MF for "Implementation-Version".
version = '4.6.5-SNAPSHOT'
// Eventually, we'll stop appending "SNAPSHOT" to our versions and just use this.
status = 'development'
}
// Matches Maven's "project.description".
description = "The Unidata THREDDS project includes the netCDF-Java library (aka CDM) " +
"and the THREDDS Data Server (TDS)."
import java.text.SimpleDateFormat
// These will be inherited by subprojects: http://goo.gl/5mvqf7
// After declaration, they should NOT be referred to using the "ext" namespace, instead preferring e.g.
// "project.title" or simply "title": http://stackoverflow.com/questions/14530901
// That way, the property will be robustly resolved, as described here: http://goo.gl/UBq0en
// Otherwise, only the one specific ExtraPropertiesExtension will be searched.
ext {
// Matches Maven's "project.name". Used in MANIFEST.MF for "Implementation-Title".
title = "Parent THREDDS and CDM modules"
// Matches Maven's "project.organization.name". Used in MANIFEST.MF for "Implementation-Vendor".
vendor = "UCAR/Unidata"
// Matches Maven's "project.url". Used in MANIFEST.MF for "Implementation-URL".
url = "http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/documentation.htm"
SimpleDateFormat iso_8601_format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ")
buildTimestamp = iso_8601_format.format(new Date())
// Project groups:
nonJavaProjects = allprojects.findAll { it.path in [ ':', ':dap4', ':ncIdv' ] }
javaProjects = allprojects - nonJavaProjects
internalProjects = allprojects.findAll { it.path in [
':dap4', ':dap4:d4tests', ':dap4:d4ts', ':dap4:d4tswar', ':opendap:dtswar',
':ncIdv', ':it', ':cdm-test',
] }
publishedProjects = allprojects - internalProjects // Includes root project.
}
// Due to a Gradle limitation, we cannot externalize this buildscript block into a script plugin. However, we can
// exploit the fact that dependencies specified in a parent's buildscript block are visible to all children.
// Thus, as long as we declare all plugins here, no child needs its own buildscript block. See http://goo.gl/2y3KhZ.
buildscript {
apply from: "$rootDir/gradle/dependencies.gradle"
repositories {
jcenter()
}
dependencies {
classpath libraries["gretty"]
classpath libraries["shadow"]
classpath libraries["coveralls-gradle-plugin"]
classpath libraries["gradle-extra-configurations-plugin"]
}
}
apply from: "$rootDir/gradle/dependencies.gradle"
apply from: "$rootDir/gradle/testing.gradle"
apply from: "$rootDir/gradle/java.gradle"
apply from: "$rootDir/gradle/coverage.gradle"
apply from: "$rootDir/gradle/archiving.gradle"
// Order dependency: publishing.gradle creates publications for artifacts created in fatJars.gradle.
apply from: "$rootDir/gradle/fatJars.gradle"
apply from: "$rootDir/gradle/publishing.gradle"