-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
109 lines (97 loc) · 2.76 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
plugins {
id 'com.gradle.plugin-publish' version '1.2.0'
id 'groovy'
id 'signing'
}
group 'io.github.m2ci-msp'
version '0.8.0-SNAPSHOT'
description 'Gradle Praat wrapper plugin'
ext {
isReleaseVersion = !version.endsWith('-SNAPSHOT')
url = 'https://github.com/m2ci-msp/gradle-praat-wrapper-plugin'
praatVersion = '6.0.30'
}
pluginBundle {
website = 'https://github.com/m2ci-msp/gradle-praat-wrapper-plugin'
vcsUrl = 'https://github.com/m2ci-msp/gradle-praat-wrapper-plugin'
description = 'Praat provider for Gradle'
tags = ['phonetics', 'speech science']
}
gradlePlugin {
plugins {
praatWrapperPlugin {
id = 'io.github.m2ci-msp.praat-wrapper'
implementationClass = 'org.m2ci.msp.praat.PraatWrapperPlugin'
displayName = project.description
}
}
}
repositories {
mavenCentral()
}
dependencies {
testImplementation group: 'org.testng', name: 'testng', version: '7.5.1'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
withJavadocJar()
withSourcesJar()
}
processResources {
expand praatVersion: praatVersion
}
processTestResources {
expand praatVersion: praatVersion
}
test {
useTestNG()
testLogging {
events 'passed', 'failed', 'skipped'
exceptionFormat = 'full'
info {
showStandardStreams = true
}
}
}
publishing {
publications {
withType(MavenPublication) {
pom {
name = 'Gradle Praat wrapper plugin'
description = project.description
url = project.url
inceptionYear = '2017'
licenses {
license {
name = 'GNU General Public License v3.0'
url = 'https://www.gnu.org/licenses/gpl-3.0-standalone.html'
}
}
developers {
developer {
name = 'Ingmar Steiner'
url = 'https://github.com/psibre'
}
}
scm {
connection = 'scm:git:https://github.com/m2ci-msp/gradle-praat-wrapper-plugin.git'
developerConnection = 'scm:git:[email protected]/m2ci-msp/gradle-praat-wrapper-plugin.git'
url = project.url
}
}
}
}
repositories {
maven {
name 'NewOSSRH'
url isReleaseVersion ? 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2'
: 'https://s01.oss.sonatype.org/content/repositories/snapshots'
credentials(PasswordCredentials)
}
}
}
tasks.withType(Sign) {
onlyIf { isReleaseVersion }
}