|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
group 'net.pingex'
|
|
|
|
|
version '0.1-dev'
|
|
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
|
apply plugin: "com.zoltu.git-versioning"
|
|
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
@ -53,7 +53,40 @@ jar {
|
|
|
|
|
attributes 'Implementation-Title': 'DiscordCommandableFramework',
|
|
|
|
|
'Main-Class': 'net.pingex.dcf.DiscordCommandableFramework'
|
|
|
|
|
}
|
|
|
|
|
from {
|
|
|
|
|
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
task runtimeJar(type: Jar) {
|
|
|
|
|
classifier = 'runtime'
|
|
|
|
|
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
|
|
|
with jar
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar, dependsOn: 'classes') {
|
|
|
|
|
classifier = 'sources'
|
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
task javadocJar(type: Jar, dependsOn: 'javadoc') {
|
|
|
|
|
classifier = 'javadoc'
|
|
|
|
|
from javadoc.destinationDir
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
|
archives jar
|
|
|
|
|
archives runtimeJar
|
|
|
|
|
archives sourcesJar
|
|
|
|
|
archives javadocJar
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
|
publications {
|
|
|
|
|
mavenJava(MavenPublication){
|
|
|
|
|
from components.java
|
|
|
|
|
|
|
|
|
|
artifact jar
|
|
|
|
|
artifact runtimeJar
|
|
|
|
|
artifact sourcesJar
|
|
|
|
|
artifact javadocJar
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|