-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
56 lines (47 loc) · 1.14 KB
/
build.gradle.kts
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("checkstyle")
}
group = "ovh.neziw"
version = "1.0.1"
tasks.withType<JavaCompile> {
options.compilerArgs = listOf("-Xlint:deprecation")
options.encoding = "UTF-8"
}
tasks.withType<ShadowJar> {
archiveFileName.set("${project.name} ${project.version}.jar")
exclude(
"org/intellij/lang/annotations/**",
"org/jetbrains/annotations/**",
"org/checkerframework/**",
"META-INF/**",
"javax/**"
)
manifest {
attributes.set("Main-Class", "ovh.neziw.ipcheck.IPCheckApplication")
}
mergeServiceFiles()
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
checkstyle {
toolVersion = "10.21.2"
maxWarnings = 0
}
repositories {
gradlePluginPortal()
mavenCentral()
mavenLocal()
}
dependencies {
implementation("io.javalin:javalin:6.4.0")
implementation("org.slf4j:slf4j-simple:2.0.16")
}
tasks.build {
dependsOn(tasks.shadowJar)
}