-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (47 loc) · 1.31 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
allprojects {
apply plugin: "java"
apply plugin: "idea"
version = '1.0'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
sourceCompatibility = 11
}
subprojects {
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
//maven { url 'https://dl.bintray.com/sargunv/maven' }
jcenter()
}
dependencies {
compile 'org.jetbrains:annotations:17.0.0'
}
}
project(":core") {
sourceSets.main.java.srcDirs = [ "src/" ]
dependencies {
implementation 'com.discord4j:discord4j-core:3.2.1'
}
task run(dependsOn: classes, type: JavaExec) {
main = "bot.Core"
classpath = sourceSets.main.runtimeClasspath
workingDir = new File("resources")
ignoreExitValue = true
}
task dist(dependsOn: classes, type: Jar) {
from files(sourceSets.main.output.classesDirs)
from files(sourceSets.main.output.resourcesDir)
from {configurations.compile.collect {zipTree(it)}}
from files(new File("resources"))
manifest {
attributes 'Main-Class': "bot.Core"
}
}
}
project(":importing") {
sourceSets.main.java.srcDirs = [ "src/" ]
dependencies {
implementation 'com.discord4j:discord4j-core:3.2.1'
//implementation 'me.sargunvohra.lib:pokekotlin:2.3.1'
compile group: 'com.google.http-client', name: 'google-http-client', version: '1.35.0'
}
}