-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (58 loc) · 1.83 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
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "2.0.0-Beta2"
id 'org.jetbrains.kotlin.plugin.serialization' version '1.9.21'
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "com.tierlistmc.papi"
version = "1.6"
repositories {
mavenCentral()
maven {
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
// As of Gradle 5.1, you can limit this to only those
// dependencies you expect from it
content {
includeGroup("org.bukkit")
includeGroup("org.spigotmc")
}
}
maven {
name = "placeholderapi"
url = uri("https://repo.extendedclip.com/content/repositories/placeholderapi/")
}
}
dependencies {
compileOnly("me.clip:placeholderapi:2.11.5")
compileOnly("org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT")
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2")
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.12.0"))
implementation("com.squareup.okhttp3:okhttp")
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}
tasks.register('copyShadowJarToServer', Copy) {
dependsOn shadowJar
from "build/libs"
into "C:/Users/lord/IdeaProjects/OlympTestServer/plugins/PlaceholderAPI/expansions"
include("Expansion-tierlistmc.jar")
}
shadowJar {
archiveFileName.set("Expansion-tierlistmc.jar")
archiveClassifier.set("")
manifest {
attributes["Main-Class"] = "com.tierlistmc.papi.expansion.TierlistMC"
}
destinationDirectory.set(file("build/libs"))
}
tasks.build {
dependsOn shadowJar
dependsOn copyShadowJarToServer
}