forked from darbyjack/VoteParty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
110 lines (84 loc) · 2.85 KB
/
build.gradle
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'org.jetbrains.kotlin.jvm' version '2.0.0'
id 'io.github.goooler.shadow' version '8.1.7' apply false
id "com.github.ben-manes.versions" version "0.51.0"
id "net.kyori.indra" version "3.1.3"
id "net.kyori.indra.publishing" version "3.1.3"
}
allprojects {
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'net.kyori.indra'
apply plugin: 'net.kyori.indra.publishing'
archivesBaseName = 'VoteParty'
group 'me.clip'
version '2.40-SNAPSHOT'
repositories {
mavenCentral()
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url = "https://repo.aikar.co/content/groups/aikar/" }
maven { url = "https://repo.papermc.io/repository/maven-public//" }
maven { url = "https://repo.extendedclip.com/content/repositories/placeholderapi/" }
maven { url = "https://repo.glaremasters.me/repository/public/" }
}
dependencies {
// kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
// Support for materials across all versions
implementation 'com.github.cryptomorin:XSeries:11.1.0'
}
indra {
mitLicense()
javaVersions {
target(21)
}
github("darbyjack", "voteparty") {
publishing(true)
}
publishAllTo("nexus", "https://repo.glaremasters.me/repository/random-stuff/")
}
compileJava {
options.compilerArgs += ["-parameters"]
}
compileKotlin {
// kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
kotlinOptions.javaParameters = true
}
}
apply plugin: 'io.github.goooler.shadow'
shadowJar {
minimize()
relocate("co.aikar.commands", "me.clip.voteparty.libs.acf")
relocate("co.aikar.locales", "me.clip.voteparty.libs.locales")
relocate("ch.jalu.configme", "me.clip.voteparty.libs.configme")
relocate("org.inventivetalent", "me.clip.voteparty.libs.inventivetalent")
relocate("net.kyori", "me.clip.voteparty.libs.kyori")
relocate("com.cryptomorin.xseries", "me.clip.voteparty.libs.xseries")
relocate("kotlin", "me.clip.voteparty.libs.kotlin")
relocate("org.bstats", "me.clip.voteparty.libs.bstats")
archiveFileName = "VoteParty-${project.version}.jar"
}
dependencies {
// spigot
compileOnly "io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT"
// config
implementation "ch.jalu:configme:1.3.0"
// placeholderapi
compileOnly "me.clip:placeholderapi:2.11.6"
// NuVotifier hook
compileOnly files("libs/nuvotifier-2.7.3.jar")
// command handler
implementation "co.aikar:acf-paper:0.5.1-SNAPSHOT"
// bstats
implementation 'org.bstats:bstats-bukkit:3.0.2'
// json stuff
implementation 'net.kyori:adventure-platform-bukkit:4.3.3'
implementation 'net.kyori:adventure-api:4.17.0'
implementation 'net.kyori:adventure-text-minimessage:4.17.0'
implementation project(":version")
implementation project(":version_old")
implementation project(":version_new")
}
processResources {
filter ReplaceTokens, tokens: [version: version]
}