forked from bloctown/CommandAlias
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (52 loc) · 1.66 KB
/
build.gradle
File metadata and controls
68 lines (52 loc) · 1.66 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
66
67
68
buildscript {
ext.kotlin_version = '1.6.20'
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-gradle-plugin' }
}
dependencies {
classpath ("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20")
}
}
plugins {
id "com.github.johnrengelman.shadow" version '7.1.2'
id 'java'
}
apply plugin: 'kotlin'
group 'de.elliepotato'
version '1.6.8-RELEASE'
sourceCompatibility = 1.18
targetCompatibility = 1.18
repositories {
mavenLocal()
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 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
/* Kotlin */
maven { url 'https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib-jdk8' }
}
dependencies {
// Environment
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.20'
implementation group: 'org.bstats', name: 'bstats-bukkit', version: '3.0.0'
// Provided dependencies
compileOnly group: 'org.spigotmc', name: 'spigot-api', version: '1.18.2-R0.1-SNAPSHOT'
// Soft dependencies
compileOnly group: 'me.clip', name: 'placeholderapi', version: '2.11.0'
}
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "17"
}
shadowJar {
relocate 'org.bstats', 'de.elliepotato.commandalias'
archiveName = "CommandAlias-${version}.jar"
}