-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (49 loc) · 1.86 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
plugins {
id "org.jetbrains.kotlin.jvm" version "1.8.20"
}
group "kr.kro.salk"
version "1.2.10"
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }//MockBukkit, //Vault
maven { url 'https://repo.papermc.io/repository/maven-public/' }//MockBukkit
maven {//adventure-text-minimessage(Purpur uses this api...)
url = "https://oss.sonatype.org/content/repositories/snapshots/"
name = "sonatype-oss-snapshots"
}
maven { url "https://repo.purpurmc.org/snapshots" }//Purpur
maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }//Vault
maven { url = "https://repo.dmulloy2.net/repository/public/" }// ProtocolLib
}
dependencies {
testImplementation 'io.mockk:mockk:1.13.5'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3'
testImplementation 'com.github.seeseemelk:MockBukkit-v1.19:3.1.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib"
implementation 'net.kyori:adventure-text-minimessage:4.12.0'
compileOnly "org.purpurmc.purpur:purpur-api:1.20.1-R0.1-SNAPSHOT"
compileOnly "com.github.MilkBowl:VaultAPI:1.7"
compileOnly files("lib/bukkitlinked-1.4.2-SNAPSHOT-jar-with-dependencies.jar")
compileOnly files('lib/Metamorphosis-api-2.7.1.jar')
compileOnly "com.comphenix.protocol:ProtocolLib:5.0.0"
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions { jvmTarget = JavaVersion.VERSION_17 }
}
compileJava {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
test{
useJUnitPlatform()
}
task copyBuild(type: Copy) {
dependsOn 'build'
from 'build/libs'
include '*.jar'
into 'testserver/plugins'
}
task testWithServer(type: Exec) {
dependsOn 'build', 'copyBuild'
commandLine 'cmd', '/c', 'cd testserver && java -jar spigot-1.19.4.jar'
}