-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
44 lines (34 loc) · 971 Bytes
/
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
plugins {
id("java")
id("java-library")
id("maven-publish")
id("com.github.johnrengelman.shadow") version "7.1.0"
}
description = "simcraft-parent"
allprojects {
apply(plugin = "java")
apply(plugin = "java-library")
apply(plugin = "maven-publish")
apply(plugin = "com.github.johnrengelman.shadow")
repositories {
mavenCentral()
maven("https://jitpack.io")
maven("https://repo.opencollab.dev/maven-releases/")
maven("https://repo.opencollab.dev/maven-snapshots/")
}
group = "me.redned"
version = "0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_17
java.targetCompatibility = JavaVersion.VERSION_17
tasks.jar {
archiveClassifier.set("unshaded")
}
tasks.named("build") {
dependsOn(tasks.shadowJar)
}
publishing {
publications.create<MavenPublication>("library") {
artifact(tasks.shadowJar)
}
}
}