-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.gradle
46 lines (38 loc) · 1.29 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
apply plugin: 'java'
project.ext.mainClassName = "corebot.CoreBot"
sourceCompatibility = targetCompatibility = 16
version = '1.0'
sourceSets.main.java.srcDirs = ["src/"]
allprojects{
repositories{
mavenLocal()
mavenCentral()
maven{ url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven{ url "https://oss.sonatype.org/content/repositories/releases/" }
maven{ url 'https://jitpack.io' }
maven{
name 'm2-dv8tion'
url 'https://m2.dv8tion.net/releases'
}
}
}
ext{
mindustryVersion = 'v135'
}
task dist(type: Jar){
from files(sourceSets.main.output.classesDirs)
from files(sourceSets.main.output.resourcesDir)
from {configurations.runtimeClasspath.collect{ it.isDirectory() || !it.name.endsWithAny(".zip", ".jar") ? it : zipTree(it) }}
archiveFileName = "CoreBot.jar"
manifest{
attributes 'Main-Class': project.mainClassName
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
dependencies{
implementation("net.dv8tion:JDA:5.0.0-alpha.10")
implementation "org.jsoup:jsoup:1.7.2"
implementation "com.github.Anuken.MindustryJitpack:core:5b7f751073"
implementation "com.github.Anuken.Arc:arc-core:dfcb21ce56"
implementation "org.slf4j:slf4j-nop:1.7.31"
}