-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (54 loc) · 1.45 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
plugins {
id 'com.github.johnrengelman.shadow' version '7.1.0'
id 'org.jetbrains.kotlin.jvm' version '1.6.0'
}
allprojects {
group 'de.sean.splugin'
repositories {
mavenCentral()
maven {
name = 'Spigot'
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
content {
includeGroup 'org.bukkit'
includeGroup 'org.spigotmc'
}
}
maven {
name = 'Paper'
url = 'https://papermc.io/repo/repository/maven-public/'
}
maven {
// For JDA
name = 'm2-dv8tion'
url = 'https://m2.dv8tion.net/releases'
}
}
dependencies {
plugins.withType(JavaPlugin) {
implementation('net.dv8tion:JDA:4.4.0_351') { exclude module: 'opus-java' }
}
}
apply plugin: 'kotlin'
jar {
setArchivesBaseName("${project.name}-${project.plugin_version}")
}
shadowJar {
minimize()
archiveFileName = "${project.name}-${project.plugin_version}-${getArchiveClassifier().get()}.${archiveExtension}"
}
processResources {
expand([version: project.version])
}
}
// Delete the unwanted output of the root project
gradle.buildFinished {
project.buildDir.deleteDir()
}