-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
79 lines (62 loc) · 1.85 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
// https://docs.gradle.org/current/userguide/application_plugin.html
plugins {
id 'application'
// https://docs.gradle.org/current/userguide/building_java_projects.html
id 'java-library'
}
application {
mainClass = 'expectusafterlun.ch.jspeak.JSpeak'
}
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'application'
apply plugin: 'java-library'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(16)
}
}
// Comment out for now
// version = '1.2.1'
mainClassName = 'expectusafterlun.ch.jspeak.JSpeak'
// Should give the start script a lowercase name
applicationName = 'jspeak'
repositories {
mavenCentral()
}
dependencies {
// https://mvnrepository.com/artifact/com.miglayout/miglayout-swing
implementation group: 'com.miglayout', name: 'miglayout-swing', version: '5.0'
//testImplementation 'junit:junit:4.13'
// https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch04.html
// Example 4-12. Declaring dependencies on subprojects
//compile project(':espeak')
//compile project(':mbrola')
//compile fileTree(dir: 'setup', include: ['*.exe'])
//compile fileTree(dir: 'setup', include: ['*.zip'])
}
tasks.register('uberJar', Jar) {
archiveClassifier = 'uber'
from sourceSets.main.output
dependsOn configurations.runtimeClasspath
from {
configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
}
manifest {
attributes 'Main-Class': 'expectusafterlun.ch.jspeak.JSpeak'
}
}
task executeScript(type:Exec) {
println 'Executing espeak installer...'
//on windows:
// commandLine 'cmd', '/c', 'stop.bat'
commandLine './setup/setup_espeak-1.48.04.exe'
}
jar {
manifest {
attributes 'Main-Class': 'expectusafterlun.ch.jspeak.JSpeak'
}
}
test {
// useJUnitPlatform()
}