forked from YOUSY0US3F/minecraft-gpt-god-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
79 lines (70 loc) · 2.71 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
73
74
75
76
77
78
79
plugins {
id 'com.github.johnrengelman.shadow' version '6.1.0'
id 'java'
}
sourceCompatibility = JavaLanguageVersion.of(java_version as int)
targetCompatibility = JavaLanguageVersion.of(java_version as int)
archivesBaseName = archives_base_name
version = plugin_version
group = maven_group
processResources {
filesMatching("plugin.yml") {
expand "version": plugin_version,
"bukkit_api_version": bukkit_api_version
}
}
// fix carls stupid custom domain name
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'me.carleslc.Simple-YAML' && details.requested.name == 'Simple-Yaml') {
details.useTarget 'com.github.Carleslc.Simple-YAML:Simple-Configuration:1.8.1'
}
}
}
dependencies {
implementation 'com.github.mizosoft.methanol:methanol:1.7.0'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
implementation 'org.apache.httpcomponents:httpasyncclient:4.1.5'
implementation 'commons-io:commons-io:2.15.1'
// To use this dependency, you need to compile bukkit by yourself
// See https://www.spigotmc.org/wiki/buildtools/
// implementation "org.bukkit:craftbukkit:${bukkit_version}"
// Use this dependency if you don't want to compile bukkit
implementation "io.papermc.paper:paper-api:${bukkit_version}"
implementation "de.maxhenkel.voicechat:voicechat-api:${voicechat_api_version}"
implementation "com.github.jensjeflensje:minecraft_imagery:${minecraft_imagery_api_version}"
implementation "com.loohp:ImageFrame:${image_frame_api_version}"
// implementation 'me.carleslc.Simple-YAML:Simple-Yaml:1.8.1'
implementation 'com.google.code.gson:gson:2.10.1'
implementation group: 'com.knuddels', name: 'jtokkit', version: '1.0.0'
}
repositories {
mavenCentral()
// for voice chat api
maven {
name = "henkelmax.public"
url = 'https://maven.maxhenkel.de/repository/public'
}
// for ImageFrame api
maven {
name = "loohp-repo"
url = "https://repo.loohpjames.com/repository"
}
// You need this maven repository if you want to use the paper dependency
maven {
url = uri("https://papermc.io/repo/repository/maven-public/")
}
// for github and stuff
maven { url 'https://jitpack.io' }
mavenLocal()
}
shadowJar {
dependencies {
include(dependency('org.apache.commons:.*'))
include(dependency('com.google.code.gson:.*'))
include(dependency('com.github.mizosoft.methanol:.*'))
include(dependency('com.knuddels:.*'))
include(dependency('org.apache.httpcomponents:.*'))
}
}