Files
Rankup3/build.gradle
T
okx-code 9b37409479 3.12.2
2021-06-26 19:35:47 +01:00

104 lines
2.7 KiB
Groovy

plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '6.1.0'
id "io.freefair.lombok" version "6.0.0-m2"
}
group 'sh.okx'
version '3.12.2'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenCentral()
maven {
url 'https://hub.spigotmc.org/nexus/content/groups/public/'
}
maven {
url 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}
maven {
url 'https://raw.github.com/PyvesB/AdvancedAchievements/mvn-repo/'
}
maven {
url 'https://jitpack.io'
}
}
dependencies {
testImplementation("org.junit.platform:junit-platform-launcher:1.7.2")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.7.2")
testImplementation 'com.github.MockBukkit:MockBukkit:04889261630cd6f5aaebd86a576bbcd12c442ea7'
implementation group: 'org.slf4j', name: 'slf4j-nop', version: '1.7.30'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.30'
compileOnly 'org.jetbrains:annotations:16.0.2'
compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
compileOnly('com.github.Realizedd:TokenManager:3.2.4') {
transitive = false
}
compileOnly('com.github.MilkBowl:VaultAPI:1.7') {
exclude group: 'org.bukkit'
}
compileOnly ('me.clip:placeholderapi:2.10.9') {
exclude group: 'org.bstats'
}
compileOnly 'com.github.pyvesb:advanced-achievements:6.7.2'
compileOnly 'com.github.astei:Superbvote:700fca43659b438cb9bb36c218a7646d2f2ef315'
compileOnly('com.github.mcMMO-Dev:mcMMO:601297') {
exclude group: 'com.sk89q.worldguard'
}
compileOnly 'com.github.BenCodez:VotingPlugin:6.0'
compileOnly 'com.github.LlmDl:Towny:25fc18a'
implementation ('io.pebbletemplates:pebble:3.1.5') {
exclude group: 'org.slf4j'
}
}
artifacts {
archives shadowJar
}
shadowJar {
archiveClassifier.set('')
minimize()
}
// automatically copy the version to plugin.yml
processResources {
// do this again whenever version changes
inputs.property 'version', project.version
duplicatesStrategy = 'include'
// copy plugin.yml and replace version
from(sourceSets.main.resources.srcDirs) {
include 'plugin.yml'
expand 'version': project.version
}
// copy everything else
from(sourceSets.main.resources.srcDirs) {
exclude 'plugin.yml'
}
}
task spigot(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
from sourceSets.main.runtimeClasspath
destinationDirectory = file("./spigot/plugins/")
archiveFileName = "Rankup.jar"
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}