Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51578

Plugin won't compile with java 8 features

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • logstash-plugin
    • None
    • 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

            jbochenski Jakub Bochenski
            idohalevi Ido Halevi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: