39 lines
745 B
Groovy
39 lines
745 B
Groovy
plugins {
|
|
id 'java'
|
|
}
|
|
|
|
group = 'com.wulliestudio'
|
|
version = '1.2'
|
|
description = 'A Folia-safe teleport plugin with invisibility effects'
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name = "papermc"
|
|
url = "https://repo.papermc.io/repository/maven-public/"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly "dev.folia:folia-api:1.21.4-R0.1-SNAPSHOT"
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = 'UTF-8'
|
|
options.release.set(21)
|
|
}
|
|
|
|
jar {
|
|
archiveBaseName.set("PlayerUtils")
|
|
from {
|
|
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
|
}
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
}
|