✨ Convert build scripts to Kotlin
Also added some new tasks to only build/install to maven local certain platforms `buildMinecraft`, `installMinecraft`, `buildDiscord`, `installDiscord`, `buildIRC`, `installIRC`
This commit is contained in:
parent
d812ea633a
commit
2c188eb130
48 changed files with 519 additions and 499 deletions
|
|
@ -1,23 +0,0 @@
|
|||
apply plugin: "com.github.johnrengelman.shadow"
|
||||
|
||||
def adventureVersion = "4.0.0-SNAPSHOT"
|
||||
|
||||
shadowJar {
|
||||
dependencies {
|
||||
exclude(dependency("org.bukkit:bukkit:1.8.8-R0.1-SNAPSHOT"))
|
||||
}
|
||||
}
|
||||
|
||||
build.dependsOn(shadowJar)
|
||||
|
||||
dependencies {
|
||||
/* Cloud */
|
||||
implementation project(":cloud-paper")
|
||||
implementation project(":cloud-annotations")
|
||||
implementation project(":cloud-minecraft-extras")
|
||||
/* Extras */
|
||||
implementation "me.lucko:commodore:1.9"
|
||||
implementation "net.kyori:adventure-platform-bukkit:$adventureVersion"
|
||||
/* Bukkit */
|
||||
compileOnly "org.bukkit:bukkit:1.8.8-R0.1-SNAPSHOT"
|
||||
}
|
||||
26
examples/example-bukkit/build.gradle.kts
Normal file
26
examples/example-bukkit/build.gradle.kts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
plugins {
|
||||
id("com.github.johnrengelman.shadow")
|
||||
}
|
||||
|
||||
tasks {
|
||||
shadowJar {
|
||||
dependencies {
|
||||
exclude(dependency("org.bukkit:bukkit:1.8.8-R0.1-SNAPSHOT"))
|
||||
}
|
||||
}
|
||||
build {
|
||||
dependsOn(shadowJar)
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
/* Cloud */
|
||||
implementation(project(":cloud-paper"))
|
||||
implementation(project(":cloud-annotations"))
|
||||
implementation(project(":cloud-minecraft-extras"))
|
||||
/* Extras */
|
||||
implementation("me.lucko", "commodore", vers["commodore"])
|
||||
implementation("net.kyori", "adventure-platform-bukkit", vers["adventure-platform"])
|
||||
/* Bukkit */
|
||||
compileOnly("org.bukkit", "bukkit", "1.8.8-R0.1-SNAPSHOT")
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
apply plugin: "com.github.johnrengelman.shadow"
|
||||
|
||||
def adventureVersion = "4.0.0-SNAPSHOT"
|
||||
|
||||
shadowJar {
|
||||
dependencies {
|
||||
exclude(dependency("net.md-5:bungeecord-api:1.8-SNAPSHOT"))
|
||||
}
|
||||
}
|
||||
|
||||
build.dependsOn(shadowJar)
|
||||
|
||||
dependencies {
|
||||
/* Cloud */
|
||||
implementation project(":cloud-bungee")
|
||||
implementation project(":cloud-annotations")
|
||||
implementation project(":cloud-minecraft-extras")
|
||||
/* Extras */
|
||||
implementation "net.kyori:adventure-platform-bungeecord:$adventureVersion"
|
||||
/* Bungee*/
|
||||
compileOnly 'net.md-5:bungeecord-api:1.8-SNAPSHOT'
|
||||
}
|
||||
25
examples/example-bungee/build.gradle.kts
Normal file
25
examples/example-bungee/build.gradle.kts
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
plugins {
|
||||
id ("com.github.johnrengelman.shadow")
|
||||
}
|
||||
|
||||
tasks {
|
||||
shadowJar {
|
||||
dependencies {
|
||||
exclude(dependency("net.md-5:bungeecord-api:1.8-SNAPSHOT"))
|
||||
}
|
||||
}
|
||||
build {
|
||||
dependsOn(shadowJar)
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
/* Cloud */
|
||||
implementation(project(":cloud-bungee"))
|
||||
implementation(project(":cloud-annotations"))
|
||||
implementation(project(":cloud-minecraft-extras"))
|
||||
/* Extras */
|
||||
implementation("net.kyori", "adventure-platform-bungeecord", vers["adventure-platform"])
|
||||
/* Bungee*/
|
||||
compileOnly("net.md-5", "bungeecord-api", "1.8-SNAPSHOT")
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
apply plugin: "application"
|
||||
apply plugin: "com.github.johnrengelman.shadow"
|
||||
|
||||
application {
|
||||
mainClassName = "cloud.commandframework.examples.jda.ExampleBot"
|
||||
}
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(":cloud-jda")
|
||||
implementation 'net.dv8tion:JDA:4.2.0_212'
|
||||
implementation 'org.slf4j:slf4j-simple:1.7.30'
|
||||
}
|
||||
|
||||
build.dependsOn(shadowJar)
|
||||
24
examples/example-jda/build.gradle.kts
Normal file
24
examples/example-jda/build.gradle.kts
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
plugins {
|
||||
application
|
||||
id("com.github.johnrengelman.shadow")
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass.set("cloud.commandframework.examples.jda.ExampleBot")
|
||||
}
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":cloud-jda"))
|
||||
implementation("net.dv8tion:JDA:4.2.0_212")
|
||||
implementation("org.slf4j:slf4j-simple:1.7.30")
|
||||
}
|
||||
|
||||
tasks {
|
||||
build {
|
||||
dependsOn(shadowJar)
|
||||
}
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
apply plugin: "com.github.johnrengelman.shadow"
|
||||
|
||||
shadowJar {
|
||||
dependencies {
|
||||
exclude(dependency('com.velocitypowered:velocity-api'))
|
||||
}
|
||||
}
|
||||
|
||||
build.dependsOn(shadowJar)
|
||||
|
||||
dependencies {
|
||||
api project(':cloud-velocity')
|
||||
api project(':cloud-minecraft-extras')
|
||||
api project(':cloud-annotations')
|
||||
compileOnly('com.velocitypowered:velocity-api:1.1.0')
|
||||
annotationProcessor('com.velocitypowered:velocity-api:1.1.0')
|
||||
}
|
||||
22
examples/example-velocity/build.gradle.kts
Normal file
22
examples/example-velocity/build.gradle.kts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
plugins {
|
||||
id ("com.github.johnrengelman.shadow")
|
||||
}
|
||||
|
||||
tasks {
|
||||
shadowJar {
|
||||
dependencies {
|
||||
exclude(dependency("com.velocitypowered:velocity-api"))
|
||||
}
|
||||
}
|
||||
build {
|
||||
dependsOn(shadowJar)
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(project(":cloud-velocity"))
|
||||
api(project(":cloud-minecraft-extras"))
|
||||
api(project(":cloud-annotations"))
|
||||
compileOnly("com.velocitypowered:velocity-api:1.1.0")
|
||||
annotationProcessor("com.velocitypowered:velocity-api:1.1.0")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue