forked from public-mirrors/HuskSync
Refactor API
parent
b531196d8a
commit
359f0d6f18
@ -1,49 +1,14 @@
|
||||
//file:noinspection GroovyAssignabilityCheck
|
||||
plugins {
|
||||
id 'java-library'
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(path: ':common')
|
||||
compileOnly project(path: ':common')
|
||||
implementation project(path: ':bukkit')
|
||||
|
||||
compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
|
||||
compileOnly 'org.jetbrains:annotations:23.0.0'
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
publishing {
|
||||
publications {
|
||||
maven(MavenPublication) {
|
||||
groupId = "${rootProject.group}.${rootProject.name.toLowerCase()}"
|
||||
artifactId = project.name
|
||||
|
||||
from components.java
|
||||
artifact javadocsJar
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
mavenLocal()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task javadocs(type: Javadoc) {
|
||||
options.encoding = 'UTF-8'
|
||||
options.addStringOption('Xdoclint:none', '-quiet')
|
||||
source = project(':common').sourceSets.main.allJava
|
||||
source += project(':api').sourceSets.main.allJava
|
||||
classpath = files(project(':common').sourceSets.main.compileClasspath)
|
||||
classpath += files(project(':api').sourceSets.main.compileClasspath)
|
||||
destinationDir = file("${buildDir}/docs/javadoc")
|
||||
}
|
||||
|
||||
task javadocsJar(type: Jar, dependsOn: javadocs) {
|
||||
archiveClassifier.set 'javadoc'
|
||||
from javadocs.destinationDir
|
||||
shadowJar {
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package net.william278.husksync.bukkit.api.events;
|
||||
package net.william278.husksync.bukkit.events;
|
||||
|
||||
import net.william278.husksync.PlayerData;
|
||||
import org.bukkit.entity.Player;
|
@ -1,4 +1,4 @@
|
||||
package net.william278.husksync.bukkit.api.events;
|
||||
package net.william278.husksync.bukkit.events;
|
||||
|
||||
import net.william278.husksync.PlayerData;
|
||||
import org.bukkit.entity.Player;
|
@ -1,7 +1,15 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'com.zaxxer:HikariCP:5.0.1'
|
||||
}
|
||||
|
||||
java {
|
||||
withJavadocJar()
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
relocate 'com.zaxxer', 'net.william278.husksync.libraries'
|
||||
}
|
Loading…
Reference in New Issue