-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
82 lines (74 loc) · 2.9 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
plugins {
id("java")
id("maven-publish")
id("io.github.goooler.shadow") version "8.1.8"
}
allprojects {
project.group = "cn.encmys.ykdz.forest"
project.version = "0.3.1-Beta"
apply<JavaPlugin>()
apply(plugin = "java")
apply(plugin = "io.github.goooler.shadow")
apply(plugin = "org.gradle.maven-publish")
repositories {
mavenLocal()
mavenCentral()
maven("https://mvn.lumine.io/repository/maven-public/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://maven.aliyun.com/repository/public/")
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://jitpack.io/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://maven.aliyun.com/repository/public/")
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://repo.dmulloy2.net/repository/public/")
maven("https://repo.codemc.org/repository/maven-public/")
maven("https://maven.enginehub.org/repo/")
maven("https://jitpack.io/")
maven("https://repo.rapture.pw/repository/maven-releases/")
maven("https://nexus.phoenixdevt.fr/repository/maven-public/")
maven("https://r.irepo.space/maven/")
maven("https://repo.auxilor.io/repository/maven-public/")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
maven("https://repo.xenondevs.xyz/releases/")
maven("https://nexus.phoenixdevt.fr/repository/maven-public/")
maven("https://repo.dmulloy2.net/repository/public/")
maven("https://repo.xenondevs.xyz/releases")
maven("https://repo.oraxen.com/releases")
maven("https://r.irepo.space/maven/")
}
}
subprojects {
tasks.processResources {
val props = mapOf("version" to version)
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching("*plugin.yml") {
expand(props)
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.release.set(17)
}
tasks.shadowJar {
destinationDirectory.set(file("$rootDir/target"))
archiveClassifier.set("")
archiveFileName.set("DailyShop-" + project.name + "-" + project.version + ".jar")
}
if ("api" == project.name) {
publishing {
publications {
create<MavenPublication>("mavenJava") {
groupId = "cn.encmys"
artifactId = "DailyShop"
version = rootProject.version.toString()
artifact(tasks.shadowJar)
}
}
}
}
}