-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
45 lines (36 loc) · 1.03 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("com.github.johnrengelman.shadow") version "6.0.0"
id("maven-publish")
}
val lwjgl by configurations.creating
repositories {
mavenCentral()
}
dependencies {
lwjgl("org.lwjgl.lwjgl:lwjgl_util:2.9.3") {
isTransitive = false // only want col, dim, point, vec, mat, quat, etc.
}
}
val relocatedJar = file("$buildDir/relocated.jar")
val relocate by tasks.creating(ShadowJar::class) {
destinationDirectory.set(buildDir)
archiveBaseName.set(name)
configurations = listOf(lwjgl)
exclude("META-INF/**/*")
relocate("org.lwjgl.util", "de.johni0702.minecraft.gui.utils.lwjgl")
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "com.github.ReplayMod"
artifactId = "lwjgl-utils"
version = "1.0"
artifact(relocate.archiveFile) {
builtBy(relocate)
}
}
}
}
// Cause JitPack is stubborn
tasks.create("clean")