-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
40 lines (34 loc) · 969 Bytes
/
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
plugins {
id 'com.github.johnrengelman.shadow' version '2.0.2'
id "org.spongepowered.plugin" version "0.8.1"
id 'java'
}
group 'me.dags'
version '0.4.1'
description 'copy and paste things'
def api = '7.2.0'
def channel = 'SNAPSHOT'
configurations {
shade
compile.extendsFrom shade
}
repositories {
mavenCentral()
jcenter()
maven { url 'http://repo.spongepowered.org/maven' }
maven { url 'https://jitpack.io' }
}
dependencies {
shade('com.github.dags-:Config:master-SNAPSHOT') { transitive = false }
shade 'com.github.dags-:CommandBus:2.0.1'
compile "org.spongepowered:spongeapi:${api}-${channel}"
}
shadowJar {
configurations = [project.configurations.shade]
exclude 'generated'
relocate 'me.dags.config.', 'me.dags.copy.config.'
relocate 'me.dags.commandbus.', 'me.dags.copy.commandbus.'
archiveName = "${baseName}-${api}-${version}-${channel}.jar"
}
jar.dependsOn shadowJar
jar.enabled = false