-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
55 lines (45 loc) · 1.41 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.0.21"
id("maven-publish")
}
group = "com.github.aoichaan0513"
version = "5.2.1_1"
repositories {
mavenCentral()
maven("https://jitpack.io/")
}
dependencies {
implementation("org.jetbrains.kotlinx", "kotlinx-coroutines-core", "1.9.0")
implementation("net.dv8tion", "JDA", "5.2.1")
implementation("club.minnced", "discord-webhooks", "0.8.4")
implementation("joda-time", "joda-time", "2.13.0")
implementation("org.ocpsoft.prettytime", "prettytime", "5.0.9.Final")
implementation("org.json", "json", "20240303")
implementation("com.github.aoichaan0513", "Kotlin_Utils", "2.0.21_1")
}
java {
withSourcesJar()
withJavadocJar()
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString()
compileKotlin.kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
val sourcesJar: Jar by tasks
val javadocJar: Jar by tasks
artifacts {
archives(sourcesJar)
archives(javadocJar)
}
afterEvaluate {
publishing {
publications {
create<MavenPublication>("maven") {
from(components["kotlin"])
groupId = [email protected]()
artifactId = rootProject.name
version = [email protected]()
}
}
}
}