mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-04 08:59:47 +01:00
Added javadoc and sources to publishing.
This commit is contained in:
parent
09de0968d7
commit
f4ec0fc6f6
30
build.gradle
30
build.gradle
@ -35,6 +35,26 @@ repositories {
|
||||
}
|
||||
}
|
||||
|
||||
task sourceJar (type : Jar, dependsOn: classes) {
|
||||
classifier = 'sources'
|
||||
from sourceSets.main.allSource
|
||||
}
|
||||
|
||||
task javadocJar (type: Jar, dependsOn: javadoc) { // (1)
|
||||
classifier = 'javadoc'
|
||||
from javadoc.destinationDir
|
||||
}
|
||||
|
||||
jar {
|
||||
baseName "LibsDisguises"
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives sourceJar
|
||||
archives javadocJar
|
||||
archives jar
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
@ -42,6 +62,12 @@ publishing {
|
||||
artifactId 'LibsDisguises'
|
||||
version '8.5-SNAPSHOT'
|
||||
from components.java
|
||||
artifact (sourceJar) {
|
||||
classifier = 'sources'
|
||||
}
|
||||
artifact (javadocJar) {
|
||||
classifier = 'javadoc'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -70,10 +96,6 @@ file('libs').mkdirs()
|
||||
//Retrieves spigot.jar server file from link
|
||||
ant.get src: 'https://www.dropbox.com/s/1ofgubrldjwamnk/spigot.jar?dl=1', dest: file('libs'), verbose: false, skipexisting: true
|
||||
|
||||
jar {
|
||||
baseName "LibsDisguises"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile 'org.bukkit:bukkit:' + project.ext.spigotVersion
|
||||
compile 'com.comphenix.protocol:ProtocolLib:3.6.3-SNAPSHOT'
|
||||
|
Loading…
Reference in New Issue
Block a user