35 lines
633 B
Groovy
35 lines
633 B
Groovy
plugins {
|
|
id 'java'
|
|
}
|
|
|
|
group = 'com.wulliesudio.icon'
|
|
version = '1.0.0'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
// PaperMC hosts the Folia API here:
|
|
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly 'dev.folia:folia-api:1.21.4-R0.1-SNAPSHOT'
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
tasks.jar {
|
|
archiveBaseName.set('DynamicServerBanner')
|
|
from {
|
|
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
|
}
|
|
}
|
|
|