generated from Project-Cepi/ExampleExtension
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
52 lines (40 loc) · 1.12 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("io.github.goooler.shadow") version "8.1.8"
`maven-publish`
java
}
repositories {
mavenCentral()
maven("https://jitpack.io")
}
dependencies {
// implementation("com.github.Minestom:Minestom:8ad2c7701f")
compileOnly("net.minestom:minestom-snapshots:c148954a47")
testImplementation("net.minestom:minestom-snapshots:461c56e749")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.4")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.4")
}
tasks {
named<ShadowJar>("shadowJar") {
archiveBaseName.set(project.name)
mergeServiceFiles()
minimize()
}
build { dependsOn(shadowJar) }
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.properties["group"] as? String?
artifactId = project.name
version = project.properties["version"] as? String?
from(components["java"])
}
}
}