forked from Yamakaja/commanditems
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
57 lines (49 loc) · 1.71 KB
/
build.gradle
File metadata and controls
57 lines (49 loc) · 1.71 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group = 'me.yamakaja.commanditems'
version = '2.4.0'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
processResources {
filesMatching("**/plugin.yml") {
filter {
it.replace('@version@', project.version)
}
}
}
repositories {
mavenCentral()
mavenLocal()
maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
maven { url "https://repo.codemc.org/repository/maven-public/" }
maven { url "https://repo.aikar.co/content/groups/aikar/" }
}
dependencies {
compileOnly "org.spigotmc:spigot-api:1.21.4-R0.1-SNAPSHOT"
implementation "org.bstats:bstats-bukkit:1.5"
implementation "co.aikar:acf-paper:0.5.0-SNAPSHOT"
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.0"
implementation "com.fasterxml.jackson.core:jackson-databind:2.9.0"
}
shadowJar {
archiveBaseName.set('CommandItems')
relocate 'org.bstats', 'me.yamakaja.commanditems.lib.org.bstats'
relocate 'co.aikar.commands', 'me.yamakaja.commanditems.lib.co.aikar.commands'
relocate 'org.intellij', 'me.yamakaja.commanditems.lib.org.intellij'
relocate 'org.jetbrains', 'me.yamakaja.commanditems.lib.org.jetbrains'
relocate 'net.jodah', 'me.yamakaja.commanditems.lib.net.jodah'
relocate 'org.yaml.snakeyaml', 'me.yamakaja.commanditems.lib.org.yaml.snakeyaml'
relocate 'com.fasterxml', 'me.yamakaja.commanditems.lib.com.fasterxml'
}
tasks.register('install', Copy) {
from("$rootDir/build/libs/") {
include "**/CommandItems-*.jar"
}
rename("([^-]*).*\\.jar", '$1.jar')
into "$rootDir/testenv/plugins/"
}