forked from hax0r31337/ProtoHax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (47 loc) · 1.35 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.8.21'
id 'com.github.johnrengelman.shadow' version '8.0.0'
id 'maven-publish'
}
group = 'dev.sora.relay'
version = '1.3.1'
repositories {
mavenLocal()
mavenCentral()
maven { url = 'https://repo.opencollab.dev/maven-releases/' }
maven { url = 'https://repo.opencollab.dev/maven-snapshots/' }
maven { url = 'https://mccheatz.github.io/maven_repo/' }
}
configurations {
embed
implementation.extendsFrom(embed)
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.0")
embed('org.cloudburstmc.protocol:bedrock-connection:3.0.0.Beta1-SNAPSHOT') {
exclude group: 'com.nukkitx', module: 'natives'
}
embed 'com.google.code.gson:gson:2.10.1'
embed('coelho.msftauth:minecraft-msftauth:2.1.5') {
exclude group: 'com.squareup.okhttp3'
}
embed 'io.github._0x9fff00.leveldb:leveldb:0.10'
embed('com.squareup.okhttp3:okhttp:4.11.0') {
exclude group: 'org.jetbrains.kotlin'
}
}
kotlin {
jvmToolchain(11)
}
shadowJar {
archiveClassifier.set('')
configurations = [project.configurations.embed]
duplicatesStrategy DuplicatesStrategy.EXCLUDE
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
}
}
}