PlayerParticles/build.gradle

85 lines
2 KiB
Groovy
Raw Normal View History

import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'com.github.johnrengelman.shadow' version '5.1.0'
2020-01-31 08:21:25 +00:00
id 'maven-publish'
id 'java'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
2020-01-31 08:21:25 +00:00
group = 'dev.esophose'
version = '7.0'
2020-01-31 08:21:25 +00:00
java {
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
jcenter()
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://repo.codemc.org/repository/maven-public' }
2019-12-13 04:39:53 +00:00
maven { url = 'http://repo.extendedclip.com/content/repositories/placeholderapi/' }
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.25'
compile 'org.slf4j:slf4j-nop:1.7.25'
compile 'com.zaxxer:HikariCP:3.2.0'
shadow 'org.jetbrains:annotations:16.0.2'
shadow 'me.clip:placeholderapi:2.10.4'
2019-12-13 04:39:53 +00:00
shadow 'org.xerial:sqlite-jdbc:3.23.1'
shadow 'org.spigotmc:spigot-api:1.15.2-R0.1-SNAPSHOT'
}
shadowJar {
archiveClassifier.set(null)
2019-12-21 01:15:13 +00:00
minimize()
}
processResources {
from (sourceSets.main.resources.srcDirs) {
include '**/*.yml'
filter ReplaceTokens, tokens: ["version": project.property("version")]
}
}
2020-01-31 08:21:25 +00:00
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
}
mavenJava(MavenPublication) {
artifactId = 'playerparticles'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'playerparticles'
}
}
}
repositories {
maven { url = 'https://repo.codemc.org/repository/maven-releases/' }
}
}
javadoc {
options.encoding = 'UTF-8'
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
build.dependsOn shadowJar