-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
97 lines (89 loc) · 2.89 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 'com.gradle.plugin-publish' version '1.2.1'
id 'groovy'
id 'io.github.m2ci-msp.praat-wrapper' version '0.7.0'
}
group 'org.m2ci.msp'
version '0.5.0-SNAPSHOT'
description 'Utility plugin to manage speech data following FLAC+YAML convention'
ext {
url = 'https://github.com/m2ci-msp/gradle-flaml-plugin'
isReleaseVersion = !version.endsWith('-SNAPSHOT')
}
gradlePlugin {
website = project.url
vcsUrl = project.url
plugins {
flamlPlugin {
id = 'org.m2ci.msp.flaml'
implementationClass = 'org.m2ci.msp.flaml.FlamlPlugin'
displayName = project.description
description = project.description
tags.set(['speech data', 'phonetics'])
}
}
}
repositories {
mavenCentral()
}
dependencies {
implementation group: 'de.undercouch', name: 'gradle-download-task', version: '5.5.0'
implementation group: 'org.yaml', name: 'snakeyaml', version: '2.2'
implementation group: 'io.github.m2ci-msp', name: 'jtgt', version: '0.7.0'
testImplementation group: 'org.testng', name: 'testng', version: '7.8.0'
}
tasks.register('generateTestResources', Exec) {
dependsOn tasks.named('praat')
def scriptFile = objects.fileProperty()
def destDir = objects.directoryProperty()
scriptFile.set file('src/test/praat/generateTestResources.praat')
destDir.set layout.buildDirectory.dir('generatedTestResources')
inputs.file scriptFile
outputs.dir destDir
commandLine praat.binary, '--run', scriptFile.get().asFile, destDir.get().asFile
}
processTestResources {
from generateTestResources, {
rename { "org/m2ci/msp/flaml/$it" }
}
}
test {
useTestNG()
systemProperty 'java.io.tmpdir', temporaryDir
testLogging {
events 'passed', 'failed', 'skipped'
exceptionFormat = 'full'
info {
showStandardStreams = true
}
}
}
publishing {
publications {
withType(MavenPublication).configureEach {
pom {
name = 'FLAML Plugin'
description = project.description
url = project.url
inceptionYear = '2017'
licenses {
license {
name = 'GNU Lesser General Public License v3.0'
url = 'https://www.gnu.org/licenses/lgpl-3.0-standalone.html'
}
}
developers {
developer {
name = 'Ingmar Steiner'
url = 'https://github.com/psibre'
}
}
scm {
connection = 'scm:git:https://github.com/m2ci-msp/gradle-flaml-plugin.git'
developerConnection = 'scm:git:git@github.com/m2ci-msp/gradle-flaml-plugin.git'
url = project.url
}
}
}
}
}