summaryrefslogtreecommitdiff
path: root/build.gradle.kts
blob: b6e894198dab80592d9195cd1e96dca8b06d341b (plain)
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
plugins {
	id("java")
	application
	id("com.diffplug.spotless") version "8.0.0"
}

group = "moe.nea.prickly"
version = "1.0.0"

repositories {
	mavenCentral()
}

dependencies {
	compileOnly("org.projectlombok:lombok:1.18.42")
	annotationProcessor("org.projectlombok:lombok:1.18.42")

	implementation("io.javalin:javalin:6.7.0")
	implementation("org.jspecify:jspecify:1.0.0")
	implementation("com.auth0:java-jwt:4.5.0")
	runtimeOnly("org.slf4j:slf4j-simple:2.0.17")
	testImplementation(platform("org.junit:junit-bom:5.10.0"))
	testImplementation("org.junit.jupiter:junit-jupiter")
	testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

application {
	mainClass.set("moe.nea.prickly.Main")
}

tasks.test {
	useJUnitPlatform()
}

spotless {
	java {
		palantirJavaFormat()
		formatAnnotations()
		leadingSpacesToTabs()
		licenseHeader("/* (C) \$YEAR Linnea Gräf - Licensed to everyone under the BSD 3 Clause License */")
	}
}