-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
37 lines (31 loc) · 1.02 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
plugins {
id("com.github.johnrengelman.shadow") version "7.1.2"
id("io.freefair.lombok") version "6.5.0.3"
base
java
}
allprojects {
group = "fr.fabienhebuterne.customcraft"
version = System.getProperty("tagVersion") ?: "SNAPSHOT"
apply(plugin = "base")
apply(plugin = "java")
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/repositories/snapshots")
}
dependencies {
compileOnly("com.google.code.gson:gson:2.8.9")
testImplementation("org.mockito:mockito-core:4.7.0")
testImplementation("org.mockito:mockito-junit-jupiter:4.7.0")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.release.set(17)
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
}
}