Files
IM-server-new/distribution/build.gradle
T

64 lines
1.4 KiB
Groovy
Raw Normal View History

2017-01-17 15:12:15 +01:00
apply plugin: 'application'
// adds task shadowJar - Create a combined JAR of project and runtime dependencies
2018-04-25 19:39:12 +02:00
description = 'Moquette - distribution'
2017-01-17 15:12:15 +01:00
apply plugin: 'com.github.johnrengelman.shadow'
2018-04-25 19:39:12 +02:00
2017-01-17 15:12:15 +01:00
mainClassName = "io.moquette.server.Server"
dependencies {
compile project(':moquette-broker')
compile project(':moquette-h2-storage')
compile project(':moquette-mapdb-storage')
compile group: 'org.slf4j', name: 'slf4j-log4j12', version:'1.7.5'
2017-01-17 15:12:15 +01:00
}
def packageSet = project.copySpec {
from 'src/main/resources/README.txt'
2018-04-25 19:39:12 +02:00
into ('bin') {
2018-04-27 15:08:15 +02:00
from 'src/main/scripts/'
2017-01-17 15:12:15 +01:00
fileMode=0755
}
2018-04-25 19:39:12 +02:00
into ('lib') {
2017-01-17 15:12:15 +01:00
from "build/libs/${project.name}-${version}.jar"
rename { "moquette-${version}.jar" }
}
2018-04-25 19:39:12 +02:00
into ('lib') {
2017-01-17 15:12:15 +01:00
from configurations.compile
}
2018-04-25 19:39:12 +02:00
into ('config') {
2017-01-17 15:12:15 +01:00
from 'src/main/resources/moquette.conf'
from 'src/main/resources/password_file.conf'
from 'src/main/resources/hazelcast.xml'
// from 'src/main/resources/acl.conf'
}
2018-04-25 19:39:12 +02:00
into ('config') {
2017-01-17 15:12:15 +01:00
from 'src/main/resources/log4j.properties'
2018-05-17 23:40:53 +02:00
rename { 'moquette-log.properties' }
2017-01-17 15:12:15 +01:00
}
}
task distMoquetteTar(type: Tar) {
2018-04-25 19:39:12 +02:00
archiveName = "moquette-${version}.tar.gz"
2017-01-17 15:12:15 +01:00
destinationDir file('build')
extension 'tar'
compression = Compression.GZIP
with packageSet
}
distMoquetteTar.dependsOn jar
task distMoquetteZip(type: Zip) {
archiveName = "moquette-${version}.zip"
2018-04-27 12:46:23 +02:00
destinationDir file('build')
2017-01-17 15:12:15 +01:00
with packageSet
}
distMoquetteZip.dependsOn jar