-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
51 lines (41 loc) · 1.26 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
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath 'gradle.plugin.com.github.jengelman.gradle.plugins:shadow:7.0.0'
}
}
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
boolean isMadBlockCollection = rootProject != project
group 'org.madblock.lib'
version '1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven {
url = 'https://repo.nukkitx.com/maven-snapshots'
}
maven {
url = 'https://repo.opencollab.dev/maven-releases/'
}
maven {
url = 'https://repo.opencollab.dev/maven-snapshots/'
}
}
dependencies {
if(isMadBlockCollection) {
implementation 'com.nukkitx:nbt:2.0.1'
shadow project(path: ":Library:QuirkCommons", configuration: 'shadow')
shadow project(":Tool:Database")
} else {
shadow 'cn.nukkit:nukkit:1.0-SNAPSHOT'
implementation 'com.nukkitx:nbt:2.0.1'
implementation group: 'commons-io', name: 'commons-io', version: '2.6'
// Include MadBlockDatabase. Might be replaced in a future version.
implementation fileTree(dir: 'libs/included', include: '*.jar')
shadow fileTree(dir: 'libs/runtime', include: '*.jar')
}
}