mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-08-06 12:33:10 +00:00
Update gradle
This commit is contained in:
parent
b0a8fe2bcd
commit
e94613d973
4 changed files with 55 additions and 21 deletions
41
build.gradle
41
build.gradle
|
@ -2,15 +2,21 @@ import org.apache.tools.ant.filters.ReplaceTokens
|
|||
|
||||
plugins {
|
||||
id 'com.github.johnrengelman.shadow' version '5.1.0'
|
||||
id 'maven-publish'
|
||||
id 'java'
|
||||
}
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
compileJava.options.encoding = 'UTF-8'
|
||||
group = 'dev.esophose.playerparticles'
|
||||
group = 'dev.esophose'
|
||||
version = '7.0'
|
||||
|
||||
java {
|
||||
withJavadocJar()
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
jcenter()
|
||||
|
@ -42,4 +48,37 @@ processResources {
|
|||
}
|
||||
}
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue