This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
generated from Project-Cepi/ExampleExtension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
68 lines (51 loc) · 1.78 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
63
64
65
66
67
68
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
// Apply the Kotlin JVM plugin to add support for Kotlin.
id("org.jetbrains.kotlin.jvm") version "1.6.10"
kotlin("plugin.serialization") version "1.5.31"
// Apply the application plugin to add support for building a jar
java
`maven-publish`
}
repositories {
// Use mavenCentral
mavenCentral()
maven(url = "https://jitpack.io")
maven(url = "https://repo.spongepowered.org/maven")
maven(url = "https://repo.velocitypowered.com/snapshots/")
}
dependencies {
// Align versions of all Kotlin components
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
// Use the Kotlin JDK 8 standard library.
implementation(kotlin("stdlib"))
// Use the Kotlin reflect library.
implementation(kotlin("reflect"))
// Use the JUpiter test library.
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
// Compile Minestom into project
implementation("com.github.LeoDog896", "Minestom", "feb29c7912")
// Use kotlinx serialization
implementation("org.jetbrains.kotlinx", "kotlinx-serialization-json", "1.3.1")
// implement KStom
implementation("com.github.Project-Cepi:KStom:af120b5455")
}
tasks.withType<Test> {
useJUnitPlatform()
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType<KotlinCompile> { kotlinOptions.jvmTarget = "17" }
val compileKotlin: KotlinCompile by tasks
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.properties["group"] as? String?
artifactId = project.name
version = project.properties["version"] as? String?
from(components["java"])
}
}
}