Plugin won't compile with java 8 features

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: logstash-plugin
    • None
    • Environment:
      Java8, jenkins.version = 2.7.4, plugin version = 2.15

      Hi, 

      Thank you all for the great logstash plugin.

      I'm trying to extend the plugin but when I use Java 8 code with Jave 8 features I can't compile the plugin. I get the following error:

      "

      Restricted to JDK 1.7 yet X contains X.class targeted to JDK 1.8

      "

      I noticed that if I change the java.level in the pom file to java.level=8 it is working and I won't get any error. Any reasons why it is set to java.level=7? If yes is there any other way to fix it?

      Thanks

            Assignee:
            Jakub Bochenski
            Reporter:
            Ido Halevi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: