forked from darbyjack/VoteParty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
118 lines (92 loc) · 2.82 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
111
112
113
114
115
116
117
118
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.7.20'
id 'com.github.johnrengelman.shadow' version '7.1.2' apply false
id 'maven-publish'
}
allprojects {
apply plugin: 'org.jetbrains.kotlin.jvm'
archivesBaseName = 'VoteParty'
group 'me.clip'
version '2.34'
repositories {
mavenCentral()
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url = "https://repo.aikar.co/content/groups/aikar/" }
maven { url = "https://papermc.io/repo/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"
// spigot
compileOnly "org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT"
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileJava {
options.compilerArgs += ["-parameters"]
options.fork = true
options.forkOptions.executable = 'javac'
}
compileKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
kotlinOptions.javaParameters = true
}
}
apply plugin: 'com.github.johnrengelman.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")
archiveFileName = "VoteParty-${project.version}.jar"
}
dependencies {
// config
implementation "ch.jalu:configme:1.3.0"
// placeholderapi
compileOnly "me.clip:placeholderapi:2.11.2"
// NuVotifier hook
compileOnly files("libs/nuvotifier-2.7.3.jar")
// command handler
implementation "co.aikar:acf-paper:0.5.1-SNAPSHOT"
// Support for materials across all versions
implementation 'com.github.cryptomorin:XSeries:9.1.0'
// json stuff
implementation 'net.kyori:adventure-platform-bukkit:4.1.2'
implementation 'net.kyori:adventure-api:4.11.0'
implementation 'net.kyori:adventure-text-minimessage:4.11.0'
implementation project(":version")
implementation project(":version_old")
implementation project(":version_new")
}
processResources {
filter ReplaceTokens, tokens: [version: version]
}
subprojects {
apply plugin: 'maven-publish'
publishing {
publications {
maven(MavenPublication) {
groupId = 'me.clip'
from components.java
}
}
}
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'me.clip'
artifactId = 'VoteParty'
version = '2.34'
from components.java
}
}
}