logstash-plugins/logstash-input-java_input_example

can you tell me , Third-party jars can be used ?

Opened this issue · 2 comments

can you tell me , Third-party jars can be used ?

Third party jars can be used by adding them to build.gradle

For example

dependencies {
    compile 'org.apache.commons:commons-lang3:3.7'
    compile 'org.apache.logging.log4j:log4j-api:2.9.1'
    compile 'org.apache.logging.log4j:log4j-core:2.9.1'
    compile fileTree(dir: LOGSTASH_CORE_PATH, include: "**/logstash-core-?.?.?.jar")
  
  // https://mvnrepository.com/artifact/org.msgpack/msgpack
    compile group: 'org.msgpack', name: 'msgpack', version: '0.6.12'

    testCompile 'junit:junit:4.12'
    testCompile 'org.jruby:jruby-complete:9.1.13.0'
}

+1 to what @cpmoore said. Note also the existing Log4j2 and Apache Commons third-party libs in the build.gradle file. :)