-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
46 lines (35 loc) · 987 Bytes
/
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
plugins {
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'java'
}
group 'se.gory_moon'
version '1.1.1'
sourceCompatibility = 1.8
configurations {
shade
}
shadowJar {
configurations = [project.configurations.shade]
archiveClassifier = ''
}
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
task relocateShadowJar(type: ConfigureShadowRelocation) {
target = tasks.shadowJar
prefix = "se.gory_moon.mclink.shadow"
}
tasks.shadowJar.dependsOn tasks.relocateShadowJar
repositories {
mavenCentral()
maven {
name 'velocity'
url 'https://nexus.velocitypowered.com/repository/maven-public/'
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
def okhttp = "com.squareup.okhttp3:okhttp:4.9.0"
implementation okhttp
shade okhttp
compile 'com.velocitypowered:velocity-api:3.1.1'
annotationProcessor 'com.velocitypowered:velocity-api:3.1.1'
}