-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
48 lines (37 loc) · 963 Bytes
/
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
plugins {
id 'de.undercouch.download'
id 'net.researchgate.release'
}
description = 'Pluralize library'
def packageName = "pluralize"
ext.ballerinaLangVersion = project.ballerinaLangVersion
allprojects {
group = project.group
version = project.version
apply plugin: 'jacoco'
apply plugin: 'maven-publish'
repositories {
mavenLocal()
maven {
url = 'https://repo.maven.apache.org/maven2'
}
}
ext {
snapshotVersion= '-SNAPSHOT'
timestampedVersionRegex = '.*-\\d{8}-\\d{6}-\\w.*\$'
}
}
def moduleVersion = project.version.replace("-SNAPSHOT", "")
task build {
dependsOn(':pluralize-ballerina:build')
}
release {
buildTasks = ['build']
failOnSnapshotDependencies = true
versionPropertyFile = 'gradle.properties'
tagTemplate = 'v${version}'
git {
requireBranch = "release-${moduleVersion}"
pushToRemote = 'origin'
}
}