You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3 KiB
Groovy

import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
}
group = 'fr.juke'
version = '2.27.0'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
mavenCentral()
maven {
name = 'papermc-repo'
url = 'https://papermc.io/repo/repository/maven-public/'
}
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven { url "https://repo.dmulloy2.net/repository/public/" }
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/public/' }
}
dependencies {
compileOnly 'com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT'
compileOnly group: "com.comphenix.protocol", name: "ProtocolLib", version: "4.6.0";
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testImplementation 'com.github.seeseemelk:MockBukkit-v1.16:0.25.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
testRuntimeOnly group: "com.comphenix.protocol", name: "ProtocolLib", version: "4.6.0";
}
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
test {
useJUnitPlatform()
}