Kotlinify + publish to repo.fvdh.dev
This commit is contained in:
parent
22d6af916d
commit
75c2fda749
19 changed files with 386 additions and 282 deletions
|
|
@ -1,28 +0,0 @@
|
|||
group = rootProject.group + '.bukkit'
|
||||
String rootDependencyDir = rootProject.group + '.dependencies'
|
||||
String dependencyDir = group + '.dependencies'
|
||||
version = rootProject.version
|
||||
archivesBaseName = rootProject.name + '-Bukkit'
|
||||
|
||||
dependencies {
|
||||
implementation "cloud.commandframework:cloud-paper:${rootProject.cloudVersion}"
|
||||
implementation "net.kyori:adventure-api:${rootProject.adventureVersion}"
|
||||
implementation "net.kyori:adventure-platform-bukkit:${rootProject.adventurePlatformVersion}"
|
||||
implementation ("net.kyori:adventure-text-minimessage:${rootProject.adventureMinimessageVersion}") {
|
||||
exclude group: 'net.kyori', module: 'adventure-api'
|
||||
}
|
||||
implementation "org.bstats:bstats-bukkit:${rootProject.bstatsVersion}"
|
||||
implementation project(":Common")
|
||||
compileOnly 'com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT'
|
||||
}
|
||||
|
||||
processResources {
|
||||
from('src/main/resources') {
|
||||
include 'plugin.yml'
|
||||
expand(version: project.version)
|
||||
}
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
relocate 'org.bstats', dependencyDir + '.bstats'
|
||||
}
|
||||
38
Bukkit/build.gradle.kts
Normal file
38
Bukkit/build.gradle.kts
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
|
||||
plugins {
|
||||
id("net.minecrell.plugin-yml.bukkit") version "0.5.0"
|
||||
}
|
||||
|
||||
group = rootProject.group
|
||||
val rootDependencyDir = "${rootProject.group}.dependencies"
|
||||
val dependencyDir = "${group}.bukkit.dependencies"
|
||||
version = rootProject.version
|
||||
base {
|
||||
archivesName.set("${rootProject.name}-Bukkit")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("cloud.commandframework:cloud-paper:${VersionConstants.cloudVersion}")
|
||||
implementation("net.kyori:adventure-api:${VersionConstants.adventureVersion}")
|
||||
implementation("net.kyori:adventure-platform-bukkit:${VersionConstants.adventurePlatformVersion}")
|
||||
implementation("net.kyori:adventure-text-minimessage:${VersionConstants.adventureMinimessageVersion}") {
|
||||
exclude("net.kyori", "adventure-api")
|
||||
}
|
||||
implementation("org.bstats:bstats-bukkit:${VersionConstants.bstatsVersion}")
|
||||
implementation(project(":Common"))
|
||||
compileOnly("com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT")
|
||||
}
|
||||
|
||||
tasks.withType<ShadowJar> {
|
||||
relocate("org.bstats", "${dependencyDir}.bstats")
|
||||
}
|
||||
|
||||
bukkit {
|
||||
main = "net.frankheijden.serverutils.bukkit.ServerUtils"
|
||||
description = "A server utility"
|
||||
apiVersion = "1.13"
|
||||
website = "https://github.com/FrankHeijden/ServerUtils"
|
||||
softDepend = listOf("ServerUtilsUpdater")
|
||||
authors = listOf("FrankHeijden")
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
name: ServerUtils
|
||||
main: net.frankheijden.serverutils.bukkit.ServerUtils
|
||||
version: ${version}
|
||||
author: FrankHeijden
|
||||
api-version: '1.13'
|
||||
softdepend: [ServerUtilsUpdater]
|
||||
Loading…
Add table
Add a link
Reference in a new issue