123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- description = 'Moquette - broker'
- apply plugin: 'osgi'
- apply plugin: 'maven'
- dependencies {
- compile group: 'io.netty', name: 'netty-common', version: nettyVersion
- compile group: 'io.netty', name: 'netty-buffer', version: nettyVersion
- compile group: 'io.netty', name: 'netty-transport', version: nettyVersion
- compile group: 'io.netty', name: 'netty-handler', version: nettyVersion
- compile group: 'io.netty', name: 'netty-codec', version: nettyVersion
- compile group: 'io.netty', name: 'netty-codec-http', version: nettyVersion
- compile group: 'io.netty', name: 'netty-codec-mqtt', version: nettyVersion
- compile group: 'io.netty', name: 'netty-transport-native-epoll', version: nettyVersion, classifier: 'linux-x86_64'
- // <classifier>${os.detected.name}-${os.detected.arch}</classifier>
- compile group: 'io.dropwizard.metrics', name: 'metrics-core', version:'3.2.2'
- compile group: 'io.dropwizard.metrics', name: 'metrics-jvm', version:'3.2.2'
- compile group: 'com.librato.metrics', name: 'metrics-librato', version:'5.1.0'
- compile group: 'com.librato.metrics', name: 'librato-java' , version:'2.1.0'
- compile group: 'com.bugsnag', name: 'bugsnag', version:'[3.0,4.0)'
- compile group: 'commons-codec', name: 'commons-codec', version:'1.10'
- // compile group: 'org.hdrhistogram', name: 'HdrHistogram', version:'2.1.4'
- compile group: 'com.hazelcast', name: 'hazelcast', version:'3.5.4'
- testCompile group: 'org.fusesource.mqtt-client', name: 'mqtt-client', version:'1.12'
- testCompile group: 'org.eclipse.paho', name: 'org.eclipse.paho.client.mqttv3', version:'1.0.2'
- testCompile group: 'org.eclipse.jetty.websocket', name: 'websocket-client', version:'9.2.0.M1'
- testCompile group: 'com.h2database', name: 'h2', version:'1.4.191'
- }
- task createPom () {
- pom { }.writeTo("build/pom.xml")
- }
- jar {
- manifest {
- instruction 'Bundle-Description', 'Moquette lightweight MQTT Broker'
- instruction 'Bundle-License', 'http://www.apache.org/licenses/LICENSE-2.0.txt, http://www.eclipse.org/org/documents/epl-v10.php'
- instruction 'Import-Package', '!com.codahale.metrics*, !com.bugsnag*, !com.librato.metrics*, *'
- }
- into ("META-INF/maven/io.moquette/${project.name}"){
- from "build/pom.xml"
- }
- }
- jar.dependsOn createPom
|