-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
70 lines (56 loc) · 1.76 KB
/
build.gradle.kts
File metadata and controls
70 lines (56 loc) · 1.76 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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/groups/public/")
maven("https://repo.viaversion.com")
}
dependencies {
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")
compileOnly("org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT")
compileOnly("net.kyori:adventure-text-minimessage:4.21.0")
compileOnly("net.kyori:adventure-text-serializer-legacy:4.21.0")
compileOnly("com.viaversion:viaversion-api:5.7.2") {
isTransitive = false
}
}
java {
withSourcesJar()
withJavadocJar()
}
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")
}
tasks.processResources {
val props = mapOf("version" to version)
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching("plugin.yml") {
expand(props)
}
}