forked from openssl-projects/openssl-jostle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
38 lines (28 loc) · 800 Bytes
/
build.gradle
File metadata and controls
38 lines (28 loc) · 800 Bytes
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
plugins {
}
def String deriveOSGIVersion(String prjVersion) {
if (prjVersion.contains("-SNAPSHOT")) {
// Snapshots always extend to fourth level and terminate with time in seconds since epoch.
prjVersion = prjVersion.replace("-SNAPSHOT", "");
while (prjVersion.count(".") < 2) {
prjVersion = prjVersion + ".0";
}
prjVersion = prjVersion + "." + System.currentTimeMillis().intdiv(1000L).intdiv(60).intdiv(60).intdiv(24);
}
return prjVersion
}
ext {
bundle_version = deriveOSGIVersion(version.toString());
}
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
subprojects {
apply plugin: 'java'
repositories {
mavenCentral()
google()
}
}