-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
90 lines (83 loc) · 2.49 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
buildscript {
repositories {
exclusiveContent {
forRepository {
maven {
name 'DFKI-MLT'
url 'https://raw.githubusercontent.com/DFKI-MLT/Maven-Repository/main'
}
}
filter {
includeGroup 'de.dfki.lt.jtok'
}
}
}
}
plugins {
id "de.dfki.mary.lexicon-compiler" version "0.3.0"
id 'maven-publish'
id 'signing'
}
group 'de.dfki.mary'
version '0.3.0-SNAPSHOT'
description 'Lower Sorbian lexicon for MaryTTS'
ext.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 = 'https://github.com/marytts/marytts-lexicon-dsb'
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:git://github.com/marytts/marytts-lexicon-dsb.git'
developerConnection = 'scm:git:ssh://git@github.com:marytts/marytts-lexicon-dsb.git'
url = 'https://github.com/marytts/marytts-lexicon-dsb'
}
}
}
}
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) {
onlyIf { isReleaseVersion }
}