-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
55 lines (48 loc) · 1.27 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
plugins {
kotlin("jvm") version "1.3.71"
kotlin("plugin.serialization") version "1.3.71"
id("maven-publish")
}
group = "city.genkoku"
version = "1.0.1"
repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots")
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("net.md-5", "bungeecord-chat", "1.15-SNAPSHOT")
api("org.jetbrains.kotlinx", "kotlinx-serialization-runtime", "0.20.0")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}
val sourcesJar by tasks.registering(Jar::class) {
dependsOn(JavaPlugin.CLASSES_TASK_NAME)
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}
val javadocJar by tasks.registering(Jar::class) {
dependsOn(JavaPlugin.JAVADOC_TASK_NAME)
archiveClassifier.set("javadoc")
from(tasks["javadoc"])
}
publishing {
repositories {
maven {
url = uri(project.findProperty("maven.publishing.repository").toString())
}
}
publications {
create<MavenPublication>("local") {
from(components["java"])
artifact(sourcesJar.get())
artifact(javadocJar.get())
}
}
}