forked from Unidata/thredds
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
89 lines (74 loc) · 4.18 KB
/
Copy pathbuild.gradle
File metadata and controls
89 lines (74 loc) · 4.18 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// The buildscript {} block is evaluated before anything else in the script (regardless of location in file).
// See http://goo.gl/EO8S1k. So, might as well put it first.
//
// 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 {
// Add the "libraries" ExtraProperty. It should be usable from the rest of this script as well.
// See http://goo.gl/9bixNV
apply from: "$rootDir/gradle/any/dependencies.gradle"
// The buildscript {} block is odd: even though we applied dependencies.gradle above, the repositories therein
// do not get included here. Instead, we must explicitly define the repos again. Yay for duplication.
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/" // For Gradle plugins.
}
maven {
url "https://dl.bintray.com/cwardgar/maven/" // For 'com.cwardgar.gretty-fork:gretty'.
}
}
dependencies {
classpath libraries["gretty"]
classpath libraries["shadow"]
classpath libraries["coveralls-gradle-plugin"]
classpath libraries["sonarqube-gradle-plugin"]
classpath libraries["license-gradle-plugin"]
classpath libraries["guava"] // For various utility methods used in the build scripts.
}
}
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 = 'feature-s3+hdfs-bbd7f24'
// 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 = "https://docs.unidata.ucar.edu/thredds/$version/userguide/index.html"
SimpleDateFormat iso_8601_format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ")
buildTimestamp = iso_8601_format.format(new Date())
// Project groups
javaProjects = subprojects.findAll { it.plugins.withType(JavaPlugin) }
internalProjects = subprojects.findAll { it.path in [
':dap4', ':dap4:d4tests', ':dap4:d4ts', ':opendap:dtswar',
':docs', ':it', ':cdm-test', ':testUtil'
] }
publishedProjects = subprojects - internalProjects
}
apply from: "$rootDir/gradle/root/testing.gradle"
apply from: "$rootDir/gradle/root/coverage.gradle"
apply from: "$rootDir/gradle/root/fatJars.gradle"
apply from: "$rootDir/gradle/root/publishing.gradle" // Creates pubs for artifacts created in fatJars.gradle
apply from: "$rootDir/gradle/root/sonarqube.gradle"
apply from: "$rootDir/gradle/root/license.gradle"
apply from: "$rootDir/gradle/any/coverage.gradle" // Modifies Test task from root/testing.gradle and
// JacocoReport task from root/coverage.gradle
apply from: "$rootDir/gradle/any/archiving.gradle" // Modifies Jar tasks created in fatJars.gradle
apply from: "$rootDir/gradle/any/publishing.gradle" // Modifies pubs created in root/publishing.gradle