-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
53 lines (42 loc) · 1.32 KB
/
build.gradle.kts
File metadata and controls
53 lines (42 loc) · 1.32 KB
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
plugins {
kotlin("jvm") version "2.3.20-Beta1"
id("java-library")
id("io.freefair.lombok") version "8.10"
id("com.gradleup.shadow") version "8.3.0"
}
group = "me.croabeast"
version = "1.2"
repositories {
mavenCentral()
mavenLocal()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/repositories/snapshots/")
}
tasks.withType<Javadoc>().configureEach {
isFailOnError = false
(options as StandardJavadocDocletOptions).apply {
addStringOption("Xdoclint:none", "-quiet")
encoding = "UTF-8"
charSet = "UTF-8"
docEncoding = "UTF-8"
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_1_9))
addBooleanOption("html5", true)
}
}
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
options.compilerArgs.add("-Xlint:-options")
}
java {
withSourcesJar()
withJavadocJar()
}
dependencies {
compileOnly("org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT")
compileOnly("org.jetbrains:annotations:26.0.2-1")
annotationProcessor("org.jetbrains:annotations:26.0.2-1")
compileOnly("org.projectlombok:lombok:1.18.42")
annotationProcessor("org.projectlombok:lombok:1.18.42")
}