-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
60 lines (47 loc) · 1.41 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
buildscript {
ext.kotlin_version = '1.3.41'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "com.github.johnrengelman.shadow" version '5.2.0'
id 'java'
}
apply plugin: 'kotlin'
group 'de.elliepotato'
version '1.6.6-RELEASE'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
/* Spigot */
maven { url 'https://hub.spigotmc.org/nexus/content/groups/public/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
/* BStats */
maven { url 'https://repo.codemc.org/repository/maven-public' }
/* PlaceHolderAPI */
maven { url 'http://repo.extendedclip.com/content/repositories/placeholderapi/' }
}
dependencies {
// Environment
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile group: 'org.bstats', name: 'bstats-bukkit', version: '1.7'
// Provided dependencies
compileOnly group: 'org.spigotmc', name: 'spigot-api', version: '1.15.2-R0.1-SNAPSHOT'
// Soft dependencies
compileOnly group: 'me.clip', name: 'placeholderapi', version: '2.10.9'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
shadowJar {
relocate 'org.bstats', 'de.elliepotato.commandalias'
archiveName = "CommandAlias-${version}.jar"
}