-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
62 lines (49 loc) · 1.56 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
61
62
plugins {
id 'java'
id 'maven'
id 'signing'
id 'com.github.johnrengelman.shadow' version '2.0.4'
}
import org.apache.tools.ant.filters.ReplaceTokens
group 'io.indices.minecraft'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.10
targetCompatibility = 1.10
defaultTasks 'clean', 'build'
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://oss.sonatype.org/content/groups/public/' }
maven { url 'https://voxelgameslib.github.io/VoxelGamesLibv2/mvn-repo/' }
maven { url = 'https://repo.aikar.co/content/groups/aikar/' }
maven { url = 'http://repo.md-5.net/content/groups/public/' }
}
dependencies {
compile 'co.aikar:idb-core:1.0.0-SNAPSHOT'
testCompile group: 'junit', name: 'junit', version: '4.12'
compileOnly group: 'com.voxelgameslib', name: 'voxelgameslib', version: '1.0.0-SNAPSHOT'
compileOnly group: 'com.voxelgameslib', name: 'dependencies', version: '1.0.0-SNAPSHOT'
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.2'
compileOnly group: 'LibsDisguises', name: 'LibsDisguises', version: '9.6.0-SNAPSHOT'
}
processResources {
filter ReplaceTokens, tokens: [
'version': project.version
]
}
task javadocJar(type: Jar) {
classifier 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier 'sources'
from sourceSets.main.allSource
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
shadowJar {
relocate 'co.aikar.idb', 'io.indices.minecraft.troubleinminecraft.idb'
}
build.dependsOn shadowJar