switch to gradle
gradle files added gradle: plugins added build: files added .travis.yml: gradle cache stored distribution: tar and zip file stuff added broker/build.gradle: osgi plugin added build: bintray upload added pom: files removed distribution: assembly.xml removed gradle: test ouput added to sub builds .editorconfig: gradle files added build: wrapper task added osgi: added to h2_ and mapdb_storage gradle: files cleaned build.gradle: jars used for tar/zip
This commit is contained in:
committed by
Andreas Mager
parent
7c4f902dbd
commit
e8b105fa90
@@ -0,0 +1,63 @@
|
||||
|
||||
description = 'Moquette - distribution'
|
||||
|
||||
apply plugin: 'application'
|
||||
|
||||
// adds task shadowJar - Create a combined JAR of project and runtime dependencies
|
||||
apply plugin: 'com.github.johnrengelman.shadow'
|
||||
|
||||
mainClassName = "io.moquette.server.Server"
|
||||
|
||||
dependencies {
|
||||
compile project(':moquette-broker')
|
||||
compile project(':moquette-h2-storage')
|
||||
compile project(':moquette-mapdb-storage')
|
||||
}
|
||||
|
||||
def packageSet = project.copySpec {
|
||||
from 'src/main/resources/README.txt'
|
||||
|
||||
into ('bin'){
|
||||
from 'src/main/scripts/'
|
||||
fileMode=0755
|
||||
}
|
||||
|
||||
into ('lib'){
|
||||
from "build/libs/${project.name}-${version}.jar"
|
||||
rename { "moquette-${version}.jar" }
|
||||
}
|
||||
|
||||
into ('lib'){
|
||||
from configurations.compile
|
||||
}
|
||||
|
||||
into ('config'){
|
||||
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'
|
||||
}
|
||||
|
||||
into ('config'){
|
||||
from 'src/main/resources/log4j.properties'
|
||||
rename { 'moquette-log.properties' }
|
||||
}
|
||||
}
|
||||
|
||||
task distMoquetteTar(type: Tar) {
|
||||
archiveName = "moquette-${version}.tar"
|
||||
destinationDir file('build')
|
||||
extension 'tar'
|
||||
compression = Compression.GZIP
|
||||
|
||||
with packageSet
|
||||
}
|
||||
distMoquetteTar.dependsOn jar
|
||||
|
||||
task distMoquetteZip(type: Zip) {
|
||||
archiveName = "moquette-${version}.zip"
|
||||
destinationDir file('build')
|
||||
|
||||
with packageSet
|
||||
}
|
||||
distMoquetteZip.dependsOn jar
|
||||
@@ -1,80 +0,0 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<relativePath>../</relativePath>
|
||||
<!--<relativePath>../pom.xml</relativePath>-->
|
||||
<artifactId>moquette-parent</artifactId>
|
||||
<groupId>io.moquette</groupId>
|
||||
<version>0.11-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>distribution</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<name>Moquette - distribution</name>
|
||||
|
||||
<!-- Includes all modules -->
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>moquette-broker</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>moquette-h2-storage</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>moquette-mapdb-storage</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>1.7.5</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-log4j12</artifactId>
|
||||
<version>1.7.5</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
<build>
|
||||
<sourceDirectory>${basedir}/src/main/</sourceDirectory> <!-- Force default maven layout -->
|
||||
<plugins>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<version>2.4</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>distribution-package</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<!-- Specifies the configuration file of the assembly plugin -->
|
||||
<descriptors>
|
||||
<descriptor>${basedir}/src/main/assembly/assembly.xml</descriptor>
|
||||
</descriptors>
|
||||
<tarLongFileMode>gnu</tarLongFileMode>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
@@ -1,57 +0,0 @@
|
||||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
||||
<id>bundle-tar</id>
|
||||
<formats>
|
||||
<format>tar.gz</format>
|
||||
<!--<format>dir</format>-->
|
||||
</formats>
|
||||
<includeBaseDirectory>false</includeBaseDirectory> <!-- disable the creation of root's distribution dir in the archive -->
|
||||
|
||||
<files>
|
||||
<!-- executables scripts-->
|
||||
<file>
|
||||
<source>src/main/scripts/moquette.sh</source>
|
||||
<outputDirectory>bin</outputDirectory>
|
||||
<fileMode>0755</fileMode>
|
||||
</file>
|
||||
|
||||
<file>
|
||||
<source>src/main/scripts/moquette.bat</source>
|
||||
<outputDirectory>bin</outputDirectory>
|
||||
</file>
|
||||
|
||||
<file>
|
||||
<source>src/main/resources/log4j.properties</source>
|
||||
<outputDirectory>config/</outputDirectory>
|
||||
<destName>moquette-log.properties</destName>
|
||||
</file>
|
||||
|
||||
<file>
|
||||
<source>src/main/resources/moquette.conf</source>
|
||||
<outputDirectory>config/</outputDirectory>
|
||||
</file>
|
||||
|
||||
<file>
|
||||
<source>src/main/resources/password_file.conf</source>
|
||||
<outputDirectory>config/</outputDirectory>
|
||||
</file>
|
||||
|
||||
<file>
|
||||
<source>src/main/resources/hazelcast.xml</source>
|
||||
<outputDirectory>config/</outputDirectory>
|
||||
</file>
|
||||
|
||||
<file>
|
||||
<source>src/main/resources/README.txt</source>
|
||||
</file>
|
||||
</files>
|
||||
|
||||
|
||||
<dependencySets>
|
||||
<dependencySet>
|
||||
<outputDirectory>lib/</outputDirectory>
|
||||
<useProjectArtifact>true</useProjectArtifact> <!-- avoid inclusion of the artifact itself -->
|
||||
</dependencySet>
|
||||
</dependencySets>
|
||||
</assembly>
|
||||
Reference in New Issue
Block a user