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

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

    Details

    • Sprint:
      2020 Week 25-27 (from Jun 15)
    • Story Points:
      1
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      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).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mmacik Marian Macik
                Reporter:
                mmacik Marian Macik
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: