mirror of
https://github.com/amalthea-mc/spigot-tg-bridge.git
synced 2024-11-23 19:02:21 +00:00
New version
This commit is contained in:
parent
09d647c3c2
commit
a115f6e8bd
@ -17,16 +17,16 @@ buildscript {
|
|||||||
plugins {
|
plugins {
|
||||||
id("org.jetbrains.kotlin.jvm") version "1.4.31"
|
id("org.jetbrains.kotlin.jvm") version "1.4.31"
|
||||||
id("com.github.johnrengelman.shadow") version "5.2.0"
|
id("com.github.johnrengelman.shadow") version "5.2.0"
|
||||||
|
id("org.jlleitschuh.gradle.ktlint") version "10.1.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
apply(plugin = "org.jlleitschuh.gradle.ktlint")
|
|
||||||
|
|
||||||
group = "org.kraftwerk28"
|
group = "org.kraftwerk28"
|
||||||
|
|
||||||
val cfg: Map<String, String> = Yaml()
|
val cfg: Map<String, String> = Yaml()
|
||||||
.load(FileInputStream("$projectDir/src/main/resources/plugin.yml"))
|
.load(FileInputStream("$projectDir/src/main/resources/plugin.yml"))
|
||||||
val pluginVersion = cfg.get("version")
|
val pluginVersion = cfg.get("version")
|
||||||
val spigotApiVersion = cfg.get("api-version")
|
val spigotApiVersion = cfg.get("api-version")
|
||||||
|
val exposedVersion = "0.31.1"
|
||||||
version = pluginVersion as Any
|
version = pluginVersion as Any
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@ -38,32 +38,10 @@ repositories {
|
|||||||
maven(url = "https://oss.sonatype.org/content/repositories/snapshots/")
|
maven(url = "https://oss.sonatype.org/content/repositories/snapshots/")
|
||||||
}
|
}
|
||||||
|
|
||||||
val tgBotVersion = "6.0.4"
|
|
||||||
val retrofitVersion = "2.7.1"
|
val retrofitVersion = "2.7.1"
|
||||||
val plugDir = "MinecraftServers/spigot_1.17/plugins/"
|
val plugDir = "MinecraftServers/spigot_1.17/plugins/"
|
||||||
val homeDir = System.getProperty("user.home")
|
val homeDir = System.getProperty("user.home")
|
||||||
|
|
||||||
tasks {
|
|
||||||
named<ShadowJar>("shadowJar") {
|
|
||||||
archiveFileName.set(
|
|
||||||
"spigot-tg-bridge-${spigotApiVersion}-v${pluginVersion}.jar"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
build {
|
|
||||||
dependsOn("shadowJar")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.register<Copy>("copyArtifacts") {
|
|
||||||
from(tasks.shadowJar)
|
|
||||||
into(File(homeDir, plugDir))
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.register("pack") {
|
|
||||||
dependsOn("shadowJar")
|
|
||||||
finalizedBy("copyArtifacts")
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
||||||
compileOnly("org.spigotmc:spigot-api:$spigotApiVersion-R0.1-SNAPSHOT")
|
compileOnly("org.spigotmc:spigot-api:$spigotApiVersion-R0.1-SNAPSHOT")
|
||||||
@ -75,6 +53,21 @@ dependencies {
|
|||||||
implementation("com.vdurmont:emoji-java:5.1.1")
|
implementation("com.vdurmont:emoji-java:5.1.1")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<KotlinCompile> {
|
defaultTasks("shadowJar")
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
|
||||||
|
tasks {
|
||||||
|
named<ShadowJar>("shadowJar") {
|
||||||
|
archiveFileName.set(
|
||||||
|
"spigot-tg-bridge-${spigotApiVersion}-v${pluginVersion}.jar"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
register<Copy>("copyArtifacts") {
|
||||||
|
from("shadowJar")
|
||||||
|
into(File(homeDir, plugDir))
|
||||||
|
}
|
||||||
|
register("pack") {
|
||||||
|
description = "[For development only!] Build project and copy .jar into servers directory"
|
||||||
|
dependsOn("shadowJar")
|
||||||
|
finalizedBy("copyArtifacts")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: SpigotTGBridge
|
name: SpigotTGBridge
|
||||||
version: "0.17"
|
version: "0.18"
|
||||||
api-version: "1.15"
|
api-version: "1.15"
|
||||||
main: org.kraftwerk28.spigot_tg_bridge.Plugin
|
main: org.kraftwerk28.spigot_tg_bridge.Plugin
|
||||||
description: Telegram <-> Minecraft communication plugin for Spigot.
|
description: Telegram <-> Minecraft communication plugin for Spigot.
|
||||||
|
Loading…
Reference in New Issue
Block a user