-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
52 lines (40 loc) · 1.17 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("java")
id("maven-publish")
id("com.github.johnrengelman.shadow") version "7.1.0"
}
description = "levelparser-parent"
allprojects {
apply(plugin = "java")
apply(plugin = "java-library")
apply(plugin = "maven-publish")
apply(plugin = "com.github.johnrengelman.shadow")
repositories {
mavenCentral()
maven("https://repo.opencollab.dev/maven-releases/")
maven("https://repo.opencollab.dev/maven-snapshots/")
}
group = "me.redned.levelparser"
version = "1.0-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_17
java.targetCompatibility = JavaVersion.VERSION_17
tasks.withType<ShadowJar> {
from("src/main/java/resources") {
include("*")
}
archiveBaseName.set("${project.description}.jar")
archiveClassifier.set("")
}
tasks.jar {
archiveClassifier.set("unshaded")
}
tasks.named("build") {
dependsOn(tasks.shadowJar)
}
publishing {
publications.create<MavenPublication>("library") {
artifact(tasks.shadowJar)
}
}
}