-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
70 lines (63 loc) · 1.57 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
plugins {
id 'java-library'
id 'eclipse'
id 'com.github.johnrengelman.shadow' version "8.1.1"
id 'maven-publish'
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
maven {
url 'https://m2.dv8tion.net/releases'
}
maven {
url "https://repo.spongepowered.org/maven/"
}
}
sourceCompatibility = 19
targetCompatibility = 19
version = "0.5.0.2"
group = "com.thegamecommunity"
archivesBaseName = "discordBrigadierExtension"
dependencies {
api group: 'com.thegamecommunity', name:'brigadier', version: 'TGC-1.3.3.0'
shadow group: 'com.thegamecommunity', name:'brigadier', version: 'TGC-1.3.3.0'
shadow ('net.dv8tion:JDA:5.0.0-beta.20')
api ('net.dv8tion:JDA:5.0.0-beta.20')
}
shadowJar {
mergeServiceFiles()
configurations = [project.configurations.shadow]
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSsE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'LICENSE.txt'
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes(
'Class-Path': configurations.runtimeClasspath.collect { it.getName() }.join(' '),
'Specification-Version': 8.0,
'Multi-Release': 'true'
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
}
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
}
}
repositories {
mavenLocal()
}
}