This repository was archived by the owner on Oct 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
83 lines (72 loc) · 1.72 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
plugins {
java
`java-library`
`maven-publish`
id("com.github.johnrengelman.shadow") version "7.1.2"
id("com.github.hierynomus.license-base") version "0.16.1"
}
group = "io.github.pulsebeat02"
version = "v1.0.0"
repositories {
mavenCentral()
}
dependencies {
implementation("me.lucko:jar-relocator:1.6")
}
sourceSets {
main {
java {
srcDir("src/main/java")
}
resources {
srcDir("src/main/resources")
}
}
}
tasks {
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
publish {
dependsOn(clean)
dependsOn(build)
}
shadowJar {
archiveBaseName.set("emc-dependency-management-all")
archiveClassifier.set("")
relocate("me.lucko", "io.github.pulsebeat02.emcdependencymanagement.lib.lucko")
relocate("org.objectweb", "io.github.pulsebeat02.emcdependencymanagement.lib.objectweb")
}
build {
dependsOn(shadowJar)
}
}
publishing {
repositories {
maven {
setUrl("https://pulsebeat02.jfrog.io/artifactory/minecraftmedialibrary/")
credentials {
username = ""
password = ""
}
}
}
publications {
create<MavenPublication>("maven") {
artifact(tasks["shadowJar"])
}
}
}
subprojects {
apply(plugin = "com.github.hierynomus.license-base")
license {
header = rootProject.file("LICENSE")
encoding = "UTF-8"
mapping("java", "SLASHSTAR_STYLE")
includes(listOf("**/*.java", "**/*.kts"))
}
task<Wrapper>("wrapper") {
gradleVersion = "7.6"
}
}