-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
81 lines (66 loc) · 1.59 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
import java.awt.Toolkit
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version "$kotlinJvmVersion"
id 'war'
id 'net.nemerosa.versioning' version "$versioningPluginVersion"
}
group = groupName
version = versioning.info.full
repositories {
mavenCentral()
}
compileJava {
sourceCompatibility = JavaVersion.toVersion(sourceCompatibilityVersion)
targetCompatibility = JavaVersion.toVersion(targetCompatibilityVersion)
}
compileTestJava {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType(JavaCompile).configureEach {
options.encoding = encoding
}
dependencies {
compileOnly jakartaEnterpriseCdiApi
compileOnly jakartaValidationApi
compileOnly jakartaEjbApi
compileOnly jakartaFacesApi
compileOnly jakartaServletApi
compileOnly jakartaPersistenceApi
compileOnly jakartaEeWebApi
compileOnly jakartaJsonApi
compileOnly jakartaJsonBindApi
implementation jacksonDatabind
implementation postgresql
implementation primefaces
implementation kotlinStdlib
testImplementation junitApi
testRuntimeOnly junitEngine
}
compileKotlin {
kotlinOptions {
jvmTarget = sourceCompatibilityVersion
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = sourceCompatibilityVersion
}
}
task compile {
compileKotlin
}
test {
useJUnitPlatform()
}
task playSound {
doLast {
def toolkit = Toolkit.getDefaultToolkit()
toolkit.beep()
}
}
build.finalizedBy(playSound)
task team(type: Exec) {
commandLine 'bash', './team.sh'
}