-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
67 lines (55 loc) · 1.4 KB
/
build.gradle.kts
File metadata and controls
67 lines (55 loc) · 1.4 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
java
`maven-publish`
id("com.gradleup.shadow") version "9.3.1"
}
group = "dev.robothanzo"
version = "0.2.0"
repositories {
mavenCentral()
maven("https://m2.dv8tion.net/releases")
maven("https://jitpack.io")
}
dependencies {
implementation("net.dv8tion:JDA:6.3.0")
implementation("org.reflections:reflections:0.10.2")
compileOnly("org.projectlombok:lombok:1.18.42")
annotationProcessor("org.projectlombok:lombok:1.18.42")
}
tasks {
java {
withSourcesJar()
}
named<ShadowJar>("shadowJar") {
dependencies {
include(dependency("org.reflections:reflections:0.10.2"))
}
archiveClassifier.set("")
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
build {
dependsOn(shadowJar)
}
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "dev.robothanzo"
artifactId = "JDAInteractions"
version = version
from(components["java"])
versionMapping {
usage("java-api") {
fromResolutionOf("runtimeClasspath")
}
usage("java-runtime") {
fromResolutionResult()
}
}
}
}
}