-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
116 lines (107 loc) · 3.3 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
plugins {
id 'com.gradle.plugin-publish' version '1.2.1'
id 'groovy'
id 'jacoco'
id 'signing'
}
group 'de.dfki.mary'
version '0.4.0-SNAPSHOT'
description 'Utility plugin to build MaryTTS components with Gradle'
ext.isReleaseVersion = !version.endsWith('-SNAPSHOT')
gradlePlugin {
def url = 'https://github.com/marytts/gradle-marytts-component-plugin'
website = url
vcsUrl = url
plugins {
componentPlugin {
id = 'de.dfki.mary.component'
implementationClass = 'de.dfki.mary.ComponentPlugin'
displayName = 'Gradle MaryTTS Component Plugin'
description = project.description
tags.set(['marytts', 'text-to-speech', 'tts', 'speech synthesis'])
}
}
}
repositories {
mavenCentral()
}
dependencies {
api group: 'org.yaml', name: 'snakeyaml', version: '2.2'
testImplementation group: 'org.testng', name: 'testng', version: '7.5.1'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
test {
useTestNG()
systemProperty 'java.io.tmpdir', temporaryDir
failFast = true
testLogging {
events 'passed', 'failed', 'skipped'
exceptionFormat = 'full'
info {
showStandardStreams = true
}
}
finalizedBy jacocoTestReport
jacoco {
excludes = [
'de.dfki.mary.ComponentPlugin',
'de.dfki.mary.tasks.*'
]
}
}
jacocoTestReport {
dependsOn test
reports.xml.required = true
}
publishing {
publications {
withType(MavenPublication).configureEach {
pom {
name = 'MaryTTS Component Plugin'
description = project.description
url = 'https://github.com/marytts/gradle-marytts-component-plugin'
inceptionYear = '2017'
organization {
name = 'DFKI GmbH'
url = 'https://dfki.de/'
}
licenses {
license {
name = 'GNU Lesser General Public License v3.0'
url = 'https://www.gnu.org/licenses/lgpl-3.0-standalone.html'
}
}
developers {
developer {
name = 'Sébastien Le Maguer'
url = 'https://github.com/seblemaguer'
}
developer {
name = 'Ingmar Steiner'
url = 'https://github.com/psibre'
}
}
scm {
connection = 'scm:git:https://github.com/marytts/gradle-marytts-component-plugin.git'
developerConnection = 'scm:git:[email protected]/marytts/gradle-marytts-component-plugin.git'
url = 'https://github.com/marytts/gradle-marytts-component-plugin'
}
}
}
}
repositories {
maven {
name 'OSSRH'
url isReleaseVersion ? 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
: 'https://oss.sonatype.org/content/repositories/snapshots'
credentials(PasswordCredentials)
}
}
}
tasks.withType(Sign).configureEach {
onlyIf { isReleaseVersion }
}