This is an automated email from the ASF dual-hosted git repository. chesnay pushed a commit to branch release-1.16 in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.16 by this push: new e9a3f7ca100 [FLINK-29803][table] Populate Scala API source jars e9a3f7ca100 is described below commit e9a3f7ca1002be5d119efce1aad79c7023bc1bf0 Author: Chesnay Schepler <ches...@apache.org> AuthorDate: Mon Oct 31 09:18:15 2022 +0100 [FLINK-29803][table] Populate Scala API source jars --- flink-table/flink-table-api-scala-bridge/pom.xml | 35 ++++++++++++++++++++++++ flink-table/flink-table-api-scala/pom.xml | 34 +++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/flink-table/flink-table-api-scala-bridge/pom.xml b/flink-table/flink-table-api-scala-bridge/pom.xml index d35d8012e7b..144717a0f60 100644 --- a/flink-table/flink-table-api-scala-bridge/pom.xml +++ b/flink-table/flink-table-api-scala-bridge/pom.xml @@ -122,6 +122,41 @@ under the License. </execution> </executions> </plugin> + + <!-- Adding scala source directories to build path + This is required for the source jar --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <!-- Add src/main/scala to build path --> + <execution> + <id>add-source</id> + <phase>generate-sources</phase> + <goals> + <goal>add-source</goal> + </goals> + <configuration> + <sources> + <source>src/main/scala</source> + </sources> + </configuration> + </execution> + <!-- Add src/test/scala to build path --> + <execution> + <id>add-test-source</id> + <phase>generate-test-sources</phase> + <goals> + <goal>add-test-source</goal> + </goals> + <configuration> + <sources> + <source>src/test/scala</source> + </sources> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project> diff --git a/flink-table/flink-table-api-scala/pom.xml b/flink-table/flink-table-api-scala/pom.xml index 7cda869cb65..7263a14b348 100644 --- a/flink-table/flink-table-api-scala/pom.xml +++ b/flink-table/flink-table-api-scala/pom.xml @@ -129,6 +129,40 @@ under the License. </execution> </executions> </plugin> + <!-- Adding scala source directories to build path + This is required for the source jar --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <!-- Add src/main/scala to build path --> + <execution> + <id>add-source</id> + <phase>generate-sources</phase> + <goals> + <goal>add-source</goal> + </goals> + <configuration> + <sources> + <source>src/main/scala</source> + </sources> + </configuration> + </execution> + <!-- Add src/test/scala to build path --> + <execution> + <id>add-test-source</id> + <phase>generate-test-sources</phase> + <goals> + <goal>add-test-source</goal> + </goals> + <configuration> + <sources> + <source>src/test/scala</source> + </sources> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project>