build.gradle 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. description = 'Moquette - broker'
  2. apply plugin: 'osgi'
  3. apply plugin: 'maven'
  4. dependencies {
  5. compile group: 'io.netty', name: 'netty-common', version: nettyVersion
  6. compile group: 'io.netty', name: 'netty-buffer', version: nettyVersion
  7. compile group: 'io.netty', name: 'netty-transport', version: nettyVersion
  8. compile group: 'io.netty', name: 'netty-handler', version: nettyVersion
  9. compile group: 'io.netty', name: 'netty-codec', version: nettyVersion
  10. compile group: 'io.netty', name: 'netty-codec-http', version: nettyVersion
  11. compile group: 'io.netty', name: 'netty-codec-mqtt', version: nettyVersion
  12. compile group: 'io.netty', name: 'netty-transport-native-epoll', version: nettyVersion, classifier: 'linux-x86_64'
  13. // <classifier>${os.detected.name}-${os.detected.arch}</classifier>
  14. compile group: 'io.dropwizard.metrics', name: 'metrics-core', version:'3.2.2'
  15. compile group: 'io.dropwizard.metrics', name: 'metrics-jvm', version:'3.2.2'
  16. compile group: 'com.librato.metrics', name: 'metrics-librato', version:'5.1.0'
  17. compile group: 'com.librato.metrics', name: 'librato-java' , version:'2.1.0'
  18. compile group: 'com.bugsnag', name: 'bugsnag', version:'[3.0,4.0)'
  19. compile group: 'commons-codec', name: 'commons-codec', version:'1.10'
  20. // compile group: 'org.hdrhistogram', name: 'HdrHistogram', version:'2.1.4'
  21. compile group: 'com.hazelcast', name: 'hazelcast', version:'3.5.4'
  22. testCompile group: 'org.fusesource.mqtt-client', name: 'mqtt-client', version:'1.12'
  23. testCompile group: 'org.eclipse.paho', name: 'org.eclipse.paho.client.mqttv3', version:'1.0.2'
  24. testCompile group: 'org.eclipse.jetty.websocket', name: 'websocket-client', version:'9.2.0.M1'
  25. testCompile group: 'com.h2database', name: 'h2', version:'1.4.191'
  26. }
  27. task createPom () {
  28. pom { }.writeTo("build/pom.xml")
  29. }
  30. jar {
  31. manifest {
  32. instruction 'Bundle-Description', 'Moquette lightweight MQTT Broker'
  33. instruction 'Bundle-License', 'http://www.apache.org/licenses/LICENSE-2.0.txt, http://www.eclipse.org/org/documents/epl-v10.php'
  34. instruction 'Import-Package', '!com.codahale.metrics*, !com.bugsnag*, !com.librato.metrics*, *'
  35. }
  36. into ("META-INF/maven/io.moquette/${project.name}"){
  37. from "build/pom.xml"
  38. }
  39. }
  40. jar.dependsOn createPom