/
build.gradle
72 lines (60 loc) · 1.75 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
plugins {
id 'groovy'
id 'java'
}
group = 'net.yoonaxes'
version = '0.1-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_11;
targetCompatibility = JavaVersion.VERSION_11;
}
repositories {
mavenCentral()
maven {
name = 'yoonaxes-maven'
url = 'https://maven.yoonaxes.pl/'
}
maven {
name = 'velocity-repo'
url = 'https://repo.velocitypowered.com/snapshots/'
}
maven {
name = 'jitpack-repo'
url = 'https://jitpack.io'
}
maven {
name = 'okaeri-repo'
url = 'https://storehouse.okaeri.eu/repository/maven-public/'
}
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.22'
compileOnly 'com.velocitypowered:velocity-api:3.0.1'
annotationProcessor 'org.projectlombok:lombok:1.18.22'
annotationProcessor 'com.velocitypowered:velocity-api:3.0.1'
implementation 'org.codehaus.groovy:groovy-all:3.0.8'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'org.mindrot:jbcrypt:0.4'
implementation 'eu.okaeri:okaeri-configs-yaml-snakeyaml:3.4.2'
testImplementation 'com.velocitypowered:velocity-api:3.0.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testRuntimeOnly 'com.google.code.gson:gson:2.8.9'
}
jar {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from {
configurations.runtimeClasspath.filter{ it.exists() }.collect { it.isDirectory() ? it : zipTree(it) }
}
}
test {
useJUnitPlatform()
}
task copyJar {
doLast {
copy {
from "$projectDir/build/libs/AuthPlugin-" + version + ".jar"
into "/home/yoonaxes/MinecraftVelocity/plugins"
}
}
}