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

34
Common/build.gradle.kts Normal file
View file

@ -0,0 +1,34 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("net.kyori.blossom") version "1.3.0"
}
group = rootProject.group
version = "${rootProject.version}"
base {
archivesName.set("${rootProject.name}-Common")
}
repositories {
maven("https://jitpack.io")
}
dependencies {
compileOnly("net.kyori:adventure-platform-api:${VersionConstants.adventurePlatformVersion}")
compileOnly("net.kyori:adventure-text-minimessage:${VersionConstants.adventureMinimessageVersion}")
compileOnly("com.github.FrankHeijden:ServerUtilsUpdater:v1.0.0")
testImplementation("net.kyori:adventure-text-serializer-plain:${VersionConstants.adventureVersion}")
}
tasks {
blossom {
replaceToken("{version}", version, "src/main/java/net/frankheijden/serverutils/common/ServerUtilsApp.java")
}
}
tasks.withType<ShadowJar> {
exclude("plugin.yml")
exclude("bungee.yml")
}