Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-24635 Clean up flink-examples
  3. FLINK-24833

Prevent use of deprecated APIs in flink-examples

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.15.0
    • 1.15.0
    • Examples
    • None

    Description

      We should be able to setup java compiler for examples
      to fail on any usage of deprecated APIs.

      Something along the lines of:

      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>...</version>
        <executions>
          <execution>
            <id>compile</id>
            <phase>process-sources</phase>
            <goals>
              <goal>compile</goal>
            </goals>
            <configuration>
              <compilerArgument>-Xlint:deprecation</compilerArgument>
              <failOnWarning>true</failOnWarning>
            </configuration>
          </execution>
        </executions>
      </plugin>

      Attachments

        Activity

          People

            sjwiesman Seth Wiesman
            sjwiesman Seth Wiesman
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: