-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
61 lines (49 loc) · 1.45 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
60
apply plugin: 'java'
apply plugin: "com.github.johnrengelman.shadow"
group = pluginGroup
version = pluginVersion
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.1"
}
}
repositories {
mavenLocal()
mavenCentral()
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
url = 'https://oss.sonatype.org/content/repositories/snapshots'
}
}
dependencies {
compileOnly fileTree(dir: 'libs', include: ['*.jar'])
compile fileTree(dir: 'libs/export', include: ['*.jar'])
compile(project(':Common')) { transitive = false }
compile(project(':WorldEdit_6_1_9')) { transitive = false }
compile(project(':WorldEdit_7_0_0_Beta1')) { transitive = false }
compile(project(':WorldEdit_7_0_0_Beta5')) { transitive = false }
compile(project(':WorldEdit_7_0_0')) { transitive = false }
compile(project(':WorldEdit_7_1_0')) { transitive = false }
}
// implementation
import org.apache.tools.ant.filters.ReplaceTokens
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
shadowJar {
archiveName = "Investment.jar"
}
build.dependsOn(shadowJar)