Kotlinify + publish to repo.fvdh.dev

This commit is contained in:
Frank van der Heijden 2021-10-05 16:44:22 +02:00
parent 22d6af916d
commit 75c2fda749
No known key found for this signature in database
GPG key ID: B808721C2DD5B5B8
19 changed files with 386 additions and 282 deletions

View file

@ -1,32 +0,0 @@
group = rootProject.group + '.bungee'
String rootDependencyDir = rootProject.group + '.dependencies'
String dependencyDir = group + '.dependencies'
version = rootProject.version
archivesBaseName = rootProject.name + '-Bungee'
repositories {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
implementation "cloud.commandframework:cloud-bungee:${rootProject.cloudVersion}"
implementation "net.kyori:adventure-api:${rootProject.adventureVersion}"
implementation "net.kyori:adventure-platform-bungeecord:${rootProject.adventurePlatformVersion}"
implementation ("net.kyori:adventure-text-minimessage:${rootProject.adventureMinimessageVersion}") {
exclude group: 'net.kyori', module: 'adventure-api'
}
implementation "org.bstats:bstats-bungeecord:${rootProject.bstatsVersion}"
implementation project(":Common")
compileOnly 'net.md-5:bungeecord-api:1.17-R0.1-SNAPSHOT'
}
processResources {
from('src/main/resources') {
include 'bungee.yml'
expand(version: project.version)
}
}
shadowJar {
relocate 'org.bstats', dependencyDir + '.bstats'
}

40
Bungee/build.gradle.kts Normal file
View file

@ -0,0 +1,40 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("net.minecrell.plugin-yml.bungee") version "0.5.0"
}
group = rootProject.group
val rootDependencyDir = "${group}.dependencies"
val dependencyDir = "${group}.bungee.dependencies"
version = rootProject.version
base {
archivesName.set("${rootProject.name}-Bungee")
}
repositories {
maven("https://oss.sonatype.org/content/repositories/snapshots")
}
dependencies {
implementation("cloud.commandframework:cloud-bungee:${VersionConstants.cloudVersion}")
implementation("net.kyori:adventure-api:${VersionConstants.adventureVersion}")
implementation("net.kyori:adventure-platform-bungeecord:${VersionConstants.adventurePlatformVersion}")
implementation("net.kyori:adventure-text-minimessage:${VersionConstants.adventureMinimessageVersion}") {
exclude("net.kyori", "adventure-api")
}
implementation("org.bstats:bstats-bungeecord:${VersionConstants.bstatsVersion}")
implementation(project(":Common"))
compileOnly("net.md-5:bungeecord-api:1.17-R0.1-SNAPSHOT")
}
tasks.withType<ShadowJar> {
relocate("org.bstats", "${dependencyDir}.bstats")
}
bungee {
main = "net.frankheijden.serverutils.bungee.ServerUtils"
description = "A server utility"
softDepends = setOf("ServerUtilsUpdater")
author = "FrankHeijden"
}

View file

@ -1,4 +0,0 @@
name: ServerUtils
main: net.frankheijden.serverutils.bungee.ServerUtils
version: ${version}
author: FrankHeijden