This is an automated email from the ASF dual-hosted git repository. cdutz pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit a4d9afae60eb4e13b866dda5ad1484869e13339a Author: Till Voss <[email protected]> AuthorDate: Thu Aug 15 11:20:29 2019 +0200 clean up & gitignore & pom file --- plc4j/integrations/logstash-plugin/.gitignore | 98 ++++++++++++++ plc4j/integrations/logstash-plugin/pom.xml | 182 ++++++++++++++++++++++++++ plc4j/integrations/pom.xml | 1 + 3 files changed, 281 insertions(+) diff --git a/plc4j/integrations/logstash-plugin/.gitignore b/plc4j/integrations/logstash-plugin/.gitignore new file mode 100644 index 0000000..ddee199 --- /dev/null +++ b/plc4j/integrations/logstash-plugin/.gitignore @@ -0,0 +1,98 @@ +*.gem +*.rbc +/.config +/coverage/ +/InstalledFiles +/pkg/ +/spec/reports/ +/spec/examples.txt +/test/tmp/ +/test/version_tmp/ +/tmp/ + +# Used by dotenv library to load environment variables. +# .env + +# Ignore Byebug command history file. +.byebug_history + +## Specific to RubyMotion: +.dat* +.repl_history +build/ +*.bridgesupport +build-iPhoneOS/ +build-iPhoneSimulator/ + +## Specific to RubyMotion (use of CocoaPods): +# +# We recommend against adding the Pods directory to your .gitignore. However +# you should judge for yourself, the pros and cons are mentioned at: +# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control +# +# vendor/Pods/ + +## Documentation cache and generated files: +/.yardoc/ +/_yardoc/ +/doc/ +/rdoc/ + +## Environment normalization: +/.bundle/ +/vendor/bundle +/lib/bundler/man/ + +# for a library or gem, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# Gemfile.lock +# .ruby-version +# .ruby-gemset + +# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: +.rvmrc + +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +.idea + +.gradle/ +build/ +vendor/ +lib/ + +*.gemspec + +# Ignore Gradle GUI config +gradle-app.setting + +# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) +!gradle-wrapper.jar + +# Cache of project +.gradletasknamecache + +# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 +# gradle/wrapper/gradle-wrapper.properties \ No newline at end of file diff --git a/plc4j/integrations/logstash-plugin/pom.xml b/plc4j/integrations/logstash-plugin/pom.xml new file mode 100644 index 0000000..0430496 --- /dev/null +++ b/plc4j/integrations/logstash-plugin/pom.xml @@ -0,0 +1,182 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.plc4x</groupId> + <artifactId>plc4j-integrations</artifactId> + <version>0.5.0-SNAPSHOT</version> + </parent> + + <artifactId>plc4j-logstash-plugin</artifactId> + + + <name>PLC4J: Integrations: Logstash plugin</name> + <description>Integration module for integrating PLC4X into Elastic Logstash.</description> + <properties> + <gradle.executable>./gradlew</gradle.executable> + </properties> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <executions> + <execution> + <id>default-compile</id> + <phase>none</phase> + </execution> + <execution> + <id>default-testCompile</id> + <phase>test-compile</phase> + <goals> + <goal>testCompile</goal> + </goals> + <configuration> + <skip>true</skip> + </configuration> + </execution> + </executions> + </plugin> + <!-- copy all dependencies to target/dependencies --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-dependencies</id> + <phase>generate-resources</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <inherited>false</inherited> + <configuration> + <useBaseVersion>true</useBaseVersion> + <addParentPoms>true</addParentPoms> + <copyPom>true</copyPom> + <useRepositoryLayout>true</useRepositoryLayout> + <outputDirectory>${project.build.directory}/dependencies</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + <!-- execute Gradle command --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <executions> + <execution> + <id>gradle</id> + <phase>prepare-package</phase> + <configuration> + <executable>${gradle.executable}</executable> + <arguments> + <!-- <argument>clean</argument>--> + <argument>vendor</argument> + <argument>-Pgroup=${project.groupId}</argument> + <argument>-Pversion=${project.version}</argument> + <argument>-S</argument> + </arguments> + </configuration> + <goals> + <goal>exec</goal> + </goals> + </execution> + </executions> + </plugin> + <!-- copy generated JARs --> + <!--<plugin> + <artifactId>maven-resources-plugin</artifactId> + <executions> + <execution> + <id>copy-gradle-jars</id> + <phase>package</phase> + <goals> + <goal>copy-resources</goal> + </goals> + + <configuration> + <outputDirectory>${basedir}/target</outputDirectory> + <resources> + <resource> + <directory>build/libs/</directory> + <includes> + <include>${project.artifactId}-${project.version}.jar</include> + <include>${project.artifactId}-${project.version}-javadoc.jar</include> + <include>${project.artifactId}-${project.version}-sources.jar</include> + </includes> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin>--> + <!-- attach copied JARs to build --> + <!--<plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>attach-artifacts</id> + <phase>package</phase> + <goals> + <goal>attach-artifact</goal> + </goals> + <configuration> + <artifacts> + <artifact> + <file>target/${project.artifactId}-${project.version}-javadoc.jar</file> + <type>jar</type> + <classifier>javadoc</classifier> + </artifact> + <artifact> + <file>target/${project.artifactId}-${project.version}-sources.jar</file> + <type>jar</type> + <classifier>sources</classifier> + </artifact> + </artifacts> + </configuration> + </execution> + </executions> + </plugin>--> + </plugins> + </build> + <profiles> + <!-- TODO test linux and mac profiles --> + <profile> + <id>windows</id> + <activation> + <os> + <family>windows</family> + </os> + </activation> + <properties> + <gradle.executable>gradlew.bat</gradle.executable> + </properties> + </profile> + <profile> + <id>mac</id> + <activation> + <os> + <family>mac</family> + </os> + </activation> + <properties> + <gradle.executable>gradlew</gradle.executable> + </properties> + </profile> + <profile> + <id>unix</id> + <activation> + <os> + <family>unix</family> + <name>Linux</name> + </os> + </activation> + <properties> + <gradle.executable>gradlew</gradle.executable> + </properties> + </profile> + </profiles> +</project> diff --git a/plc4j/integrations/pom.xml b/plc4j/integrations/pom.xml index 938e7ae..f35b5d3 100644 --- a/plc4j/integrations/pom.xml +++ b/plc4j/integrations/pom.xml @@ -39,6 +39,7 @@ <module>apache-nifi</module> <module>apache-karaf</module> <module>apache-calcite</module> + <module>logstash-plugin</module> </modules> </project> \ No newline at end of file
