Added javadocs to generated jars
This commit is contained in:
+23
-5
@@ -46,7 +46,24 @@ subprojects {
|
|||||||
from sourceSets.test.resources
|
from sourceSets.test.resources
|
||||||
classifier = 'tests'
|
classifier = 'tests'
|
||||||
}
|
}
|
||||||
artifacts.archives packageTests
|
|
||||||
|
task javadocJar (type: Jar, dependsOn: javadoc) {
|
||||||
|
classifier = 'javadoc'
|
||||||
|
from javadoc.destinationDir
|
||||||
|
}
|
||||||
|
|
||||||
|
task sourceJar (type : Jar) {
|
||||||
|
classifier = 'sources'
|
||||||
|
from sourceSets.main.allSource
|
||||||
|
}
|
||||||
|
|
||||||
|
// summarize artifacts
|
||||||
|
artifacts {
|
||||||
|
archives jar
|
||||||
|
archives sourceJar
|
||||||
|
archives javadocJar
|
||||||
|
archives packageTests
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.5'
|
compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.5'
|
||||||
@@ -71,7 +88,7 @@ subprojects {
|
|||||||
// publication to maven repo
|
// publication to maven repo
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
MyPublication(MavenPublication) {
|
bintrayPublication(MavenPublication) {
|
||||||
from components.java
|
from components.java
|
||||||
groupId "$project.group"
|
groupId "$project.group"
|
||||||
artifactId "${project.name}"
|
artifactId "${project.name}"
|
||||||
@@ -81,15 +98,16 @@ subprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bintray {
|
bintray {
|
||||||
user = bintrayUser //System.getenv('BINTRAY_USER')
|
println "Bintray deploy with user [${System.getenv('BINTRAY_USER')}] while working on ${project.name}"
|
||||||
key = bintrayPassword //System.getenv('BINTRAY_KEY')
|
user = System.getenv('BINTRAY_USER')
|
||||||
|
key = System.getenv('BINTRAY_KEY')
|
||||||
pkg {
|
pkg {
|
||||||
repo = 'maven'//"${project.group}"
|
repo = 'maven'//"${project.group}"
|
||||||
name = "${project.group}.${project.name}"
|
name = "${project.group}.${project.name}"
|
||||||
userOrg = 'andsel'
|
userOrg = 'andsel'
|
||||||
licenses = ['Apache-2.0']
|
licenses = ['Apache-2.0']
|
||||||
vcsUrl = "https://api.bintray.com/maven/andsel/maven/${project.group}.${project.name}"
|
vcsUrl = "https://api.bintray.com/maven/andsel/maven/${project.group}.${project.name}"
|
||||||
publications = ['MyPublication']
|
publications = ['bintrayPublication']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ def packageSet = project.copySpec {
|
|||||||
|
|
||||||
into ('config') {
|
into ('config') {
|
||||||
from 'src/main/resources/log4j.properties'
|
from 'src/main/resources/log4j.properties'
|
||||||
rename { 'moquette-log.properties' }
|
rename { 'moquette-log.properties' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -34,8 +34,10 @@ import java.util.List;
|
|||||||
|
|
||||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||||
|
|
||||||
|
/**
|
||||||
final class EmbeddedLauncher {
|
* Simple example of how to embed the broker in another project
|
||||||
|
* */
|
||||||
|
public final class EmbeddedLauncher {
|
||||||
|
|
||||||
static class PublisherListener extends AbstractInterceptHandler {
|
static class PublisherListener extends AbstractInterceptHandler {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user