-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
39 lines (34 loc) · 1.14 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
repositories {
flatDir {
dirs '../lib'
}
}
dependencies {
compileOnly fileTree(dir: '../lib', include: '*.jar')
}
task listJars doLast {
configurations.compileOnly.each { File file -> println file.name }
}
// configure sources for jars
eclipse {
classpath {
file {
whenMerged {
try {
def basemod = entries.find { it.path.contains 'BaseMod.jar' }
basemod.sourcePath = fileReference(file('../lib/BaseMod.zip'))
def modthespire = entries.find { it.path.contains 'ModTheSpire.jar' }
modthespire.sourcePath = fileReference(file('../lib/ModTheSpire.zip'))
def slaythespire = entries.find { it.path.contains 'desktop-1.0.jar' }
slaythespire.sourcePath = fileReference(file('../lib/decompiled/'))
println 'Added sources for dependencies'
} catch (Exception ex) {
println 'Could not add sources for dependencies'
}
}
}
}
}