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 { dependencies {
implementation project(':common') implementation project(':common')
@ -5,28 +10,26 @@ dependencies {
compileOnly 'org.jetbrains:annotations:22.0.0' compileOnly 'org.jetbrains:annotations:22.0.0'
} }
repositories {
mavenCentral()
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
}
afterEvaluate {
publishing { publishing {
publications { publications {
mavenJava(MavenPublication) { maven(MavenPublication) {
shadow.component(it) groupId = "${rootProject.group}.${rootProject.name.toLowerCase()}"
afterEvaluate { artifactId = project.name
from components.java
artifact javadocsJar artifact javadocsJar
} }
} }
}
repositories { repositories {
mavenLocal() 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) { task javadocs(type: Javadoc) {
@ -39,6 +42,6 @@ task javadocs(type: Javadoc) {
} }
task javadocsJar(type: Jar, dependsOn: javadocs) { task javadocsJar(type: Jar, dependsOn: javadocs) {
classifier = 'javadoc' archiveClassifier.set 'javadoc'
from javadocs.destinationDir from javadocs.destinationDir
} }
Loading…
Cancel
Save