2021-07-29 03:14:29 +02:00
|
|
|
import org.spongepowered.gradle.plugin.config.PluginLoaders
|
2021-10-09 19:49:59 +02:00
|
|
|
import org.spongepowered.plugin.metadata.model.PluginDependency
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
plugins {
|
2022-04-22 19:56:11 +02:00
|
|
|
alias(libs.plugins.spongeplugin)
|
2021-07-29 03:14:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
apply from: rootProject.file('buildscript/loader.gradle')
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// API
|
2021-10-25 01:04:46 +02:00
|
|
|
implementation project(':common:common-api')
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
// DependencyDownload
|
2022-04-22 19:56:11 +02:00
|
|
|
implementation(libs.dependencydownload.jarinjar.loader)
|
2021-07-29 03:14:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
archiveBaseName = 'DiscordSRV-Sponge'
|
|
|
|
}
|
|
|
|
|
|
|
|
// buildscript/loader.gradle includes the jarinjar in the jar
|
|
|
|
|
|
|
|
sponge {
|
2022-04-22 19:56:11 +02:00
|
|
|
apiVersion(libs.versions.sponge.get())
|
2021-10-09 19:49:59 +02:00
|
|
|
license('GPLv3')
|
|
|
|
loader {
|
|
|
|
name(PluginLoaders.JAVA_PLAIN)
|
|
|
|
version('1.0')
|
|
|
|
}
|
2021-07-29 03:14:29 +02:00
|
|
|
plugin('discordsrv') {
|
|
|
|
displayName('DiscordSRV')
|
|
|
|
version(project.version)
|
2021-10-09 19:49:59 +02:00
|
|
|
entrypoint('com.discordsrv.sponge.loader.DiscordSRVSpongeLoader')
|
2021-07-29 03:14:29 +02:00
|
|
|
description('')
|
|
|
|
links {
|
|
|
|
homepage('https://discordsrv.com')
|
|
|
|
source('https://github.com/DiscordSRV/DiscordSRV')
|
|
|
|
issues('https://github.com/DiscordSRV/DiscordSRV/issues')
|
|
|
|
}
|
|
|
|
contributor('Scarsz') {
|
|
|
|
description('Developer')
|
|
|
|
}
|
|
|
|
contributor('Vankka') {
|
|
|
|
description('Developer')
|
|
|
|
}
|
|
|
|
dependency('spongeapi') {
|
|
|
|
loadOrder(PluginDependency.LoadOrder.AFTER)
|
2021-10-09 19:49:59 +02:00
|
|
|
version('[8.0.0,)')
|
2021-07-29 03:14:29 +02:00
|
|
|
optional(false)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|