-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathbuild.gradle
More file actions
30 lines (26 loc) · 791 Bytes
/
build.gradle
File metadata and controls
30 lines (26 loc) · 791 Bytes
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
plugins {
id 'java'
}
repositories {
mavenLocal()
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = sourceCompatibility
}
dependencies {
implementation 'io.github.cdimascio:dotenv-java:3.+'
implementation 'com.vonage:server-sdk:9.3.1'
implementation 'com.vonage:jwt:2.+'
implementation 'com.sparkjava:spark-core:2.+'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.+'
}
tasks.register('fatJar', Jar) {
dependsOn configurations.runtimeClasspath
archiveBaseName = project.name + '-with-dependencies'
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
assemble.dependsOn fatJar