-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
65 lines (53 loc) · 1.47 KB
/
build.gradle
File metadata and controls
65 lines (53 loc) · 1.47 KB
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
63
64
65
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2"
}
}
dependencies {
classpath "gradle.plugin.flavor.pie:promptsign:1.0.2"
}
}
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.11"
id "org.jetbrains.kotlin.kapt" version "1.3.11"
id "com.github.johnrengelman.shadow" version "4.0.3"
}
def isJitpack = System.getenv("JITPACK") != null
if (!isJitpack) {
apply plugin: "flavor.pie.promptsign"
}
group "de.randombyte"
version "2.4.0"
repositories {
jcenter()
maven { url "https://repo.spongepowered.org/maven/" }
maven { url "https://jitpack.io" }
maven { url "https://repo.codemc.org/repository/maven-public" }
}
configurations {
compile.extendsFrom shadow
compile.extendsFrom kapt
}
dependencies {
shadow "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.11"
kapt "org.spongepowered:spongeapi:7.1.0"
shadow("com.github.randombyte-developer.kosp:kosp:v2.2.3") { transitive = false }
shadow "org.bstats:bstats-sponge:1.4"
}
jar.enabled = false
shadowJar {
configurations = [project.configurations.shadow]
relocate "kotlin", "de.randombyte.commandutils.shaded.kotlin"
relocate "de.randombyte.kosp", "de.randombyte.commandutils.shaded.kosp"
classifier = null // Remove '-all' suffix from output file name
}
build.dependsOn shadowJar
if (!isJitpack) {
signArchives.dependsOn shadowJar
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}