-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
88 lines (81 loc) · 2.32 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
plugins {
id "de.dfki.mary.lexicon-compiler" version "0.3.0"
id 'maven-publish'
id 'signing'
}
group 'de.dfki.mary'
version '0.2.0-SNAPSHOT'
description 'Luxembourgish lexicon for MaryTTS'
ext {
url = 'https://github.com/marytts/marytts-lexicon-lb'
isReleaseVersion = !version.endsWith("SNAPSHOT")
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
withSourcesJar()
withJavadocJar()
}
compileLexicon {
phoneMapping.putAll([
'A~:' : 'a~',
'J' : 'j',
's\\\\': 'S',
'z\\\\': 'Z'
])
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = project.name
description = project.description
url = project.url
licenses {
license {
name = 'GNU Lesser General Public License v3.0 only'
url = 'https://spdx.org/licenses/LGPL-3.0-only.html'
}
}
developers {
developer {
name = 'Ingmar Steiner'
id = 'psibre'
}
developer {
name = 'Peter Gilles'
id = 'PeterGilles'
}
}
contributors {
contributor {
name = 'Sascha Brawer'
url = 'https://github.com/brawer'
}
}
scm {
connection = "scm:git:${project.url}.git"
developerConnection = "scm:git:ssh://git@github.com:marytts/${project.name}.git"
url = project.url
}
}
}
}
repositories {
maven {
name 'OSSRH'
url isReleaseVersion ? 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
: 'https://oss.sonatype.org/content/repositories/snapshots'
credentials(PasswordCredentials)
}
}
}
signing {
required { isReleaseVersion }
sign publishing.publications.mavenJava
}
tasks.withType(Sign).configureEach {
onlyIf { isReleaseVersion }
}