forked from chunky-dev/chunky-denoiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
45 lines (40 loc) · 1.11 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
apply plugin: 'java'
jar.enabled = false
compileJava {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
sourceSets {
main {
if (project.properties.get("chunky") == "1") {
java.srcDir 'src/main/java'
java.srcDir 'src/chunky-1/java'
resources.srcDir 'src/main/resources'
resources.srcDir 'src/chunky-1/resources'
} else {
java.srcDir 'src/main/java'
java.srcDir 'src/chunky-2/java'
resources.srcDir 'src/main/resources'
resources.srcDir 'src/chunky-2/resources'
}
}
}
task pluginJar(type: Jar) {
classifier = 'chunky' + project.properties.get("chunky")
with jar
}
dependencies {
if (project.properties.get("chunky") == "1") {
compile 'se.llbit:chunky-core:1.4.5'
} else {
compile 'se.llbit:chunky-core:2.0-beta6'
}
runtimeClasspath 'org.apache.commons:commons-math3:3.2'
}
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}