-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
59 lines (57 loc) · 1.44 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
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version "7.0.0"
}
version = '2.0.1'
group = "de.erdbeerbaerlp.curseforgeBot" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
mainClassName = 'de.erdbeerbaerlp.curseforgeBot.Main'
repositories {
maven {
url "https://jitpack.io"
}
mavenCentral()
maven {
name 'm2-dv8tion'
url 'https://m2.dv8tion.net/releases'
}
maven { url "https://repo.erdbeerbaerlp.de/repository/maven-public/" }
}
configurations {
embed
compileOnly.extendsFrom(embed)
}
shadowJar {
classifier = ""
configurations = [project.configurations.embed]
}
artifacts {
archives tasks.shadowJar
}
dependencies {
embed('net.dv8tion:JDA:5.0.0-beta.13') {
transitive = true
exclude module: 'opus-java'
}
embed group: 'com.typesafe', name: 'config', version: '1.4.1'
embed 'es.nitaur.markdown:txtmark:0.16'
embed group: 'commons-cli', name: 'commons-cli', version: '1.4'
embed("de.ErdbeerbaerLP:toml4j:cf5b4655")
embed("de.erdbeerbaerlp:cfcore:1.0.1") {
changing = true
}
embed 'dev.masecla:Modrinth4J:2.2.0'
embed group: 'mysql', name: 'mysql-connector-java', version: '8.0.33'
}
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 5, 'minutes'
}
}
jar {
manifest {
attributes(
'Main-Class': mainClassName
)
}
}