-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
62 lines (51 loc) · 1.45 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
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
plugins {
kotlin("jvm") version "1.9.0"
id("org.jetbrains.dokka") version "1.8.20"
id("maven-publish")
}
group = "com.github.reblast"
version = "0.3.2"
repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots/")
maven("https://jitpack.io")
}
dependencies {
api("org.javacord:javacord:3.9.0-SNAPSHOT")
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
api("net.fellbaum:jemoji:1.1.6")
implementation("org.apache.logging.log4j:log4j-to-slf4j:2.20.0")
implementation("ch.qos.logback:logback-classic:1.4.11")
}
kotlin {
jvmToolchain(8)
}
val sourcesJar = task<Jar>("sourcesJar") {
from(sourceSets["main"].allSource)
archiveClassifier.set("sources")
}
val dokka by tasks.register<Jar>("dokka") {
notCompatibleWithConfigurationCache("https://github.com/Kotlin/dokka/issues/1217")
dependsOn(tasks.dokkaJavadoc)
from(tasks.dokkaJavadoc.flatMap { it.outputDirectory })
archiveClassifier.set("javadoc")
}
tasks {
build {
dependsOn(sourcesJar)
dependsOn(jar)
dependsOn(dokka)
}
}
publishing {
publications {
create<MavenPublication>("release") {
from(components["kotlin"])
groupId = project.group as String
artifactId = project.name
version = project.version as String
artifact(sourcesJar)
artifact(dokka)
}
}
}