Ascension/sponge/loader/build.gradle
2022-02-19 22:47:39 +02:00

54 lines
1.4 KiB
Groovy

import org.spongepowered.gradle.plugin.config.PluginLoaders
import org.spongepowered.plugin.metadata.model.PluginDependency
plugins {
id 'org.spongepowered.gradle.plugin' version '2.0.0'
}
apply from: rootProject.file('buildscript/loader.gradle')
dependencies {
// API
implementation project(':common:common-api')
// DependencyDownload
implementation 'dev.vankka:dependencydownload-jarinjar-loader:' + rootProject.ddVersion
}
shadowJar {
archiveBaseName = 'DiscordSRV-Sponge'
}
// buildscript/loader.gradle includes the jarinjar in the jar
sponge {
apiVersion('8.0.0-SNAPSHOT')
license('GPLv3')
loader {
name(PluginLoaders.JAVA_PLAIN)
version('1.0')
}
plugin('discordsrv') {
displayName('DiscordSRV')
version(project.version)
entrypoint('com.discordsrv.sponge.loader.DiscordSRVSpongeLoader')
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)
version('[8.0.0,)')
optional(false)
}
}
}