-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
82 lines (76 loc) · 2.29 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
plugins {
id 'de.dfki.mary.lexicon-compiler' version '0.2.0'
id 'maven-publish'
id 'signing'
}
group 'de.dfki.mary'
version '0.2.0-SNAPSHOT'
description 'German lexicon for MaryTTS'
ext {
url = 'https://github.com/marytts/marytts-lexicon-de'
isReleaseVersion = !version.endsWith("SNAPSHOT")
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
withSourcesJar()
withJavadocJar()
}
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'
url = 'https://github.com/psibre'
}
developer {
name = 'Marc Schröder'
url = 'https://github.com/marc1s'
}
}
contributors {
contributor {
name = 'Annette Klepp'
}
contributor {
name = 'Sascha Brawer'
url = 'https://github.com/brawer'
}
}
scm {
connection = "scm:git:${project.url}.git"
developerConnection = "scm:git:ssh://[email protected]: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 }
}