Edit: remove use shadowing for apis;

feat/data-edit-commands
Harvels X 3 years ago
parent 83ddc76075
commit d67d5b64da
No known key found for this signature in database
GPG Key ID: 9637BCFE856BB8F3

@ -1,3 +1,8 @@
plugins {
id 'java-library'
id 'maven-publish'
}
dependencies {
implementation project(':common')
@ -5,28 +10,26 @@ dependencies {
compileOnly 'org.jetbrains:annotations:22.0.0'
}
publishing {
repositories {
mavenCentral()
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
}
afterEvaluate {
publishing {
publications {
mavenJava(MavenPublication) {
shadow.component(it)
afterEvaluate {
maven(MavenPublication) {
groupId = "${rootProject.group}.${rootProject.name.toLowerCase()}"
artifactId = project.name
from components.java
artifact javadocsJar
}
}
}
repositories {
mavenLocal()
}
}
shadowJar {
classifier = null
relocate ':common', 'me.william278.husksync'
}
repositories {
mavenCentral()
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
}
}
task javadocs(type: Javadoc) {
@ -39,6 +42,6 @@ task javadocs(type: Javadoc) {
}
task javadocsJar(type: Jar, dependsOn: javadocs) {
classifier = 'javadoc'
archiveClassifier.set 'javadoc'
from javadocs.destinationDir
}
Loading…
Cancel
Save