-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-properties.gradle
38 lines (31 loc) · 1.23 KB
/
build-properties.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
// Property configuration for build
// Standard version information config from build.properties
def buildProperties = new Properties()
file('build.properties').withInputStream {
buildProperties.load(it)
}
// Optional local environment config from build-local.properties
def localBuildPropertiesFile = file('build-local.properties')
if (localBuildPropertiesFile.exists()) {
localBuildPropertiesFile.withInputStream {
buildProperties.load(it)
}
}
buildProperties.stringPropertyNames().each {
ext.set(it, buildProperties[it])
}
def buildTime = new Date()
ext.'build.id' = buildTime.format('yyyyMMddHHmm')
ext.YEAR = buildTime.format("yyyy")
// Build profile
ext.'maven.jdkversion' = 'java17'
ext.'specification.version' = '4.3'
ext.'version.simple' = "${project.'version.major'}.${project.'version.minor'}.${project.'version.revision'}".toString()
ext.'version.maven' = "${project.'version.simple'}${project.'version.tag'}".toString()
ext.'signing.password' = credentials.forKey('signing.password')
ext.ossrhPassword = credentials.forKey('ossrhPassword')
ext.isReleaseVersion = provider {
!version.endsWith("SNAPSHOT")
}
ext.sourceDocumentation = file('src/documentation')
ext.buildDocs = layout.buildDirectory.dir("docs")