PlayerParticles/build.gradle

71 lines
1.6 KiB
Groovy
Raw Normal View History

plugins {
id 'com.github.johnrengelman.shadow' version '5.1.0'
2020-01-31 01:21:25 -07:00
id 'maven-publish'
id 'java'
}
2020-05-11 13:04:11 -06:00
allprojects {
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
group = 'dev.esophose'
version = '7.5'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
2020-05-11 13:04:11 -06:00
maven { url = 'https://repo.codemc.org/repository/maven-public' }
maven { url = 'https://repo.codemc.org/repository/nms' }
maven { url = 'http://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url = 'https://repo.dmulloy2.net/nexus/repository/public/' }
}
2020-01-31 01:21:25 -07:00
}
2020-05-11 13:04:11 -06:00
//javadoc {
// options.encoding = 'UTF-8'
// if (JavaVersion.current().isJava9Compatible()) {
// options.addBooleanOption('html5', true)
// }
//}
//
//java {
// withJavadocJar()
// withSourcesJar()
//}
configurations {
childJars
}
dependencies {
2020-05-11 13:04:11 -06:00
implementation project(':Plugin')
implementation project(':NMS-Wrapper')
implementation project(':NMS-v1_15_R1')
subprojects.each {
childJars project(it.path)
}
}
shadowJar {
archiveClassifier.set(null)
relocate('org.bstats', 'dev.esophose.playerparticles.libs.bstats')
relocate('org.slf4j', 'dev.esophose.playerparticles.libs.slf4j')
relocate('com.zaxxer.hikari', 'dev.esophose.playerparticles.libs.hikaricp')
relocate('org.codemc.worldguardwrapper', 'dev.esophose.playerparticles.libs.worldguardwrapper')
}
2020-05-11 13:04:11 -06:00
jar {
dependsOn configurations.childJars
from {
configurations.childJars.collect {
zipTree(it)
2020-01-31 01:21:25 -07:00
}
}
}
build.dependsOn shadowJar