-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
81 lines (73 loc) · 2.31 KB
/
build.gradle
File metadata and controls
81 lines (73 loc) · 2.31 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
69
70
71
72
73
74
75
76
77
78
79
80
81
buildscript {
configurations.classpath.resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'org.ow2.asm') {
details.useVersion '9.5'
details.because 'Shadow plugin needs ASM ≥9.5 to parse Java 21 classes'
}
}
}
plugins {
id 'java-library'
id 'maven-publish'
id "fr.brouillard.oss.gradle.jgitver" version "+"
id "com.github.johnrengelman.shadow" version "+"
}
//<editor-fold desc="Settings: Plugin">
repositories {
maven {
url = 'https://repo.papermc.io/repository/maven-public/'
}
}
dependencies {
compileOnly "com.velocitypowered:velocity-api:${versionVelocity}"
annotationProcessor "com.velocitypowered:velocity-api:${versionVelocity}"
}
apply from: 'https://github.com/code-lime/org.lime.core/refs/tags/3.1.1/global.gradle'
apply from: 'https://github.com/code-lime/org.lime.core/refs/tags/3.1.1/version.gradle'
apply from: 'https://github.com/code-lime/org.lime.core/refs/tags/3.1.1/remote.gradle'
println "Project version: $version"
configureTemplates([
pluginName: "${name}",
pluginId: "${name}".toLowerCase().replaceAll("[.:/]", "-"),
bStatsId: "${bStatsId}",
])
tasks.withType(org.gradle.jvm.tasks.Jar).configureEach {
archiveBaseName.set(project.name)
}
//</editor-fold>
configurations {
relocate
}
//<editor-fold desc="Settings: Libraries">
//<editor-fold desc="Settings: Libraries: Netty (All)">
dependencies {
implementation "io.netty:netty-codec:${versionNetty}"
}
//</editor-fold>
//<editor-fold desc="Settings: Libraries: Adventure (Facet)">
dependencies {
implementation "net.kyori:adventure-platform-facet:${versionAdventureFaset}"
}
//</editor-fold>
//<editor-fold desc="Settings: Libraries: LuckPerms">
dependencies {
implementation "net.luckperms:api:${versionLuckPermsApi}"
}
//</editor-fold>
//<editor-fold desc="Settings: Libraries: BStats">
dependencies {
compileOnly "org.bstats:bstats-velocity:${versionBStats}"
relocate "org.bstats:bstats-velocity:${versionBStats}"
}
shadowJar {
relocate 'org.bstats', "org.lime.velocircon.bstats"
}
//</editor-fold>
//</editor-fold>
shadowJar {
archiveClassifier.set('')
configurations = [project.configurations.relocate]
}
artifacts {
archives tasks.shadowJar
}