forked from cody-quinn/SlimeLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
60 lines (47 loc) · 1.22 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.0.0"
`maven-publish`
`java-library`
}
group = "eu.cafestube"
version = "1.2.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("net.minestom:minestom-snapshots:d760a60a5c")
implementation("com.github.luben:zstd-jni:1.5.2-3")
api(project(":Common"))
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
freeCompilerArgs = listOf("-Xinline-classes")
jvmTarget = "21"
}
kotlin {
jvmToolchain(21)
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
from(components["java"])
}
repositories {
maven {
name = "cafestubeRepository"
credentials(PasswordCredentials::class)
url = uri("https://repo.cafestu.be/repository/maven-public-snapshots/")
}
}
}
}