-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
38 lines (33 loc) · 940 Bytes
/
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
plugins {
id("com.github.johnrengelman.shadow")
}
dependencies {
compileOnly("ink.ptms.core:v12004:12004:mapped")
compileOnly("org.jetbrains:annotations:20.1.0")
compileOnly("commons-lang:commons-lang:2.6")
implementation(project(":afybroker-client")) {
exclude(group = "io.netty", module = "netty-all")
exclude(group = "com.google.guava", module = "guava")
exclude(group = "org.jetbrains", module = "annotations")
}
}
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
archiveClassifier.set("")
}
tasks.build {
dependsOn(tasks.shadowJar)
}
configure<PublishingExtension> {
publications.create<MavenPublication>("maven") {
artifact(tasks.shadowJar)
}
}
tasks.processResources {
val props = mapOf(
"version" to project.version
)
inputs.properties(props)
filesMatching("plugin.yml") {
expand(props)
}
}