forked from marytts/marytts-lang-dsb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
97 lines (88 loc) · 2.65 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
89
90
91
92
93
94
95
96
97
plugins {
id 'de.dfki.mary.component' version '0.3.1'
id 'maven-publish'
id 'signing'
}
group 'de.dfki.mary'
version '0.2.0-SNAPSHOT'
description 'Lower Sorbian language component for MaryTTS'
ext {
url = 'https://github.com/marytts/marytts-lang-dsb'
isReleaseVersion = !version.endsWith("SNAPSHOT")
}
marytts {
component {
name = 'LowerSorbian'
packageName = 'marytts.language.dsb'
configBaseClass = 'LanguageConfig'
config from: 'component.yaml'
}
}
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.apache.commons', name: 'commons-csv', version: '1.9.0'
runtimeOnly group: 'de.dfki.mary', name: 'marytts-lexicon-dsb', version: '0.1.1'
}
java {
withSourcesJar()
withJavadocJar()
}
tasks.register('run', JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass.set 'marytts.server.Mary'
systemProperties << ['log4j.logger.marytts': 'DEBUG,stderr']
}
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 {
id = 'psibre'
name = 'Ingmar Steiner'
}
developer {
id = 'aStereoID'
name = 'Astrid Schmiedel'
}
developer {
id = 'JMK-CB'
name = 'Jan Meschkank'
}
}
scm {
connection = 'scm:git:https://github.com/marytts/marytts-lang-dsb.git'
developerConnection = 'scm:git:ssh://[email protected]:marytts/marytts-lang-dsb.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 }
}