Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9205

Make jbpm-workitems-webservice to compile to JDK 8 target with JDK 11

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.40.0.Final
    • 7.39.0.Final
    • Runtime Engine
    • None
    • 1
    • NEW
    • NEW
    • 2020 Week 25-27 (from Jun 15)

      jbpm-workitems-webservice currently compiles to JDK 11 target with JDK 11:

      <profiles>
          <profile>
            <id>jdk-11-compile</id>
            <activation>
              <jdk>[9,)</jdk>
            </activation>
            <build>
              <pluginManagement>
                <plugins>
                  <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <configuration>
                      <release>11</release>
                    </configuration>
                  </plugin>
                </plugins>
              </pluginManagement>
            </build>
          </profile>
          <profile>
            <id>jdk-8-compile</id>
            <activation>
              <jdk>(,9)</jdk>
            </activation>
            <build>
              <pluginManagement>
                <plugins>
                  <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <configuration>
                      <source>8</source>
                      <target>8</target>
                    </configuration>
                  </plugin>
                </plugins>
              </pluginManagement>
            </build>
          </profile>
        </profiles>
      

      We should have both JDK 8 and JDK 11 to compile always to JDK 8 target. This change was introduced to fix the annotation processor which doesn't work when JDK 11 is used with compilation target of JDK 8. However, I have found a workaround for that (explicitly stating the @WidAuth annotation on the annotated class).

              mmacik@redhat.com Marian Macik
              mmacik@redhat.com Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: