60 lines
1.4 KiB
Groovy
60 lines
1.4 KiB
Groovy
plugins {
|
|
id 'java-library'
|
|
id 'maven-publish'
|
|
}
|
|
|
|
group = 'com.majinnaibu.bukkitplugins'
|
|
description = 'Metropolis'
|
|
version = '0.5-SNAPSHOT'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
|
|
maven { url = 'https://maven.enginehub.org/repo/' }
|
|
mavenLocal()
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly 'io.papermc.paper:paper-api:26.2.build.129-stable'
|
|
compileOnly 'com.sk89q.worldedit:worldedit-bukkit:7.4.5'
|
|
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.19'
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
|
|
testImplementation 'org.mockito:mockito-junit-jupiter:5.24.0'
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(25)
|
|
}
|
|
}
|
|
|
|
tasks.named('updateDaemonJvm') {
|
|
languageVersion = JavaLanguageVersion.of(25)
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
def pluginVersion = project.version.toString()
|
|
|
|
tasks.named('processResources') {
|
|
inputs.property('version', pluginVersion)
|
|
filesMatching('plugin.yml') {
|
|
expand(version: pluginVersion)
|
|
}
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.named('wrapper') {
|
|
gradleVersion = '9.8.0'
|
|
distributionType = Wrapper.DistributionType.BIN
|
|
distributionBase = Wrapper.PathBase.PROJECT
|
|
distributionPath = '.gradle/wrapper/dists'
|
|
archiveBase = Wrapper.PathBase.PROJECT
|
|
archivePath = '.gradle/wrapper/dists'
|
|
} |