Skip to content

Commit dbfad96

Browse files
committed
Merge branch 'main' of github.com:DataSQRL/flink-jar-runner into safe-kafka-connectors
2 parents 11b25fa + 6784e68 commit dbfad96

File tree

12 files changed

+203
-6
lines changed

12 files changed

+203
-6
lines changed

functions/pom.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright © 2024 DataSQRL (contact@datasqrl.com)
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
18+
-->
19+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20+
21+
<modelVersion>4.0.0</modelVersion>
22+
23+
<parent>
24+
<groupId>com.datasqrl.flinkrunner</groupId>
25+
<artifactId>flink-sql-runner-parent</artifactId>
26+
<version>1.0.0-SNAPSHOT</version>
27+
</parent>
28+
29+
<artifactId>functions</artifactId>
30+
<packaging>pom</packaging>
31+
32+
<modules>
33+
<module>system-functions-discovery</module>
34+
</modules>
35+
36+
</project>

system-functions-discovery/pom.xml renamed to functions/system-functions-discovery/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<parent>
2323
<groupId>com.datasqrl.flinkrunner</groupId>
24-
<artifactId>flink-sql-runner-parent</artifactId>
24+
<artifactId>functions</artifactId>
2525
<version>1.0.0-SNAPSHOT</version>
2626
</parent>
2727

pom.xml

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
</developers>
5151

5252
<modules>
53-
<module>system-functions-discovery</module>
53+
<module>functions</module>
5454
<module>connectors</module>
55-
<module>helpers</module>
55+
<module>testing</module>
5656
<module>flink-sql-runner</module>
5757
</modules>
5858

@@ -128,6 +128,31 @@
128128
</dependencies>
129129
</dependencyManagement>
130130

131+
<dependencies>
132+
<!-- General Dependencies -->
133+
<dependency>
134+
<groupId>org.projectlombok</groupId>
135+
<artifactId>lombok</artifactId>
136+
<version>${lombok.version}</version>
137+
<scope>provided</scope>
138+
</dependency>
139+
<dependency>
140+
<groupId>org.junit.platform</groupId>
141+
<artifactId>junit-platform-launcher</artifactId>
142+
<scope>test</scope>
143+
</dependency>
144+
<dependency>
145+
<groupId>org.junit.vintage</groupId>
146+
<artifactId>junit-vintage-engine</artifactId>
147+
<scope>test</scope>
148+
</dependency>
149+
<dependency>
150+
<groupId>org.junit.jupiter</groupId>
151+
<artifactId>junit-jupiter-engine</artifactId>
152+
<scope>test</scope>
153+
</dependency>
154+
</dependencies>
155+
131156
<build>
132157
<plugins>
133158
<plugin>
@@ -266,6 +291,22 @@
266291
</execution>
267292
</executions>
268293
</plugin>
294+
295+
<plugin>
296+
<groupId>org.jacoco</groupId>
297+
<artifactId>jacoco-maven-plugin</artifactId>
298+
<version>0.8.11</version>
299+
<executions>
300+
<execution>
301+
<goals>
302+
<goal>prepare-agent</goal>
303+
<goal>prepare-agent-integration</goal>
304+
<goal>report</goal>
305+
<goal>report-integration</goal>
306+
</goals>
307+
</execution>
308+
</executions>
309+
</plugin>
269310
</plugins>
270311
</build>
271312

@@ -476,4 +517,5 @@
476517
</build>
477518
</profile>
478519
</profiles>
520+
479521
</project>

testing/coverage/pom.xml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright © 2024 DataSQRL (contact@datasqrl.com)
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
18+
-->
19+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20+
<modelVersion>4.0.0</modelVersion>
21+
<parent>
22+
<groupId>com.datasqrl.flinkrunner</groupId>
23+
<artifactId>testing</artifactId>
24+
<version>1.0.0-SNAPSHOT</version>
25+
</parent>
26+
27+
<artifactId>flink-sql-runner-coverage</artifactId>
28+
29+
<description>JaCoCo can’t actually aggregate test reposts, so we have to jump through a bunch of hoops. This is hoop numero uno.</description>
30+
31+
<dependencies>
32+
<dependency>
33+
<groupId>${project.groupId}</groupId>
34+
<artifactId>flink-sql-runner</artifactId>
35+
<version>${project.version}</version>
36+
</dependency>
37+
<dependency>
38+
<groupId>${project.groupId}</groupId>
39+
<artifactId>system-functions-discovery</artifactId>
40+
<version>${project.version}</version>
41+
</dependency>
42+
</dependencies>
43+
44+
<build>
45+
<plugins>
46+
<plugin>
47+
<groupId>org.jacoco</groupId>
48+
<artifactId>jacoco-maven-plugin</artifactId>
49+
<version>0.8.11</version>
50+
<executions>
51+
<execution>
52+
<id>report-aggregate</id>
53+
<goals>
54+
<goal>report-aggregate</goal>
55+
</goals>
56+
<phase>verify</phase>
57+
<configuration>
58+
<dataFileIncludes>
59+
<dataFileInclude>**/jacoco.exec</dataFileInclude>
60+
<dataFileInclude>**/jacoco-it.exec</dataFileInclude>
61+
</dataFileIncludes>
62+
</configuration>
63+
</execution>
64+
</executions>
65+
</plugin>
66+
</plugins>
67+
</build>
68+
</project>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright © 2024 DataSQRL (contact@datasqrl.com)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package hoop;
17+
18+
/**
19+
* JaCoCo can’t actually aggregate test reposts, so we have to jump through a bunch of hoops. This
20+
* is hoop numero tres.
21+
*/
22+
public class Code {}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright © 2024 DataSQRL (contact@datasqrl.com)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package packagereport;
17+
18+
import org.junit.Test;
19+
20+
/**
21+
* JaCoCo can’t actually aggregate test reposts, so we have to jump through a bunch of hoops. This
22+
* is hoop numero dos.
23+
*/
24+
public class ReportTest {
25+
26+
@Test
27+
public void test() {}
28+
}

helpers/pom.xml renamed to testing/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@
2626
<version>1.0.0-SNAPSHOT</version>
2727
</parent>
2828

29-
<artifactId>helpers</artifactId>
29+
<artifactId>testing</artifactId>
3030
<packaging>pom</packaging>
3131

3232
<modules>
3333
<module>system-functions-sample</module>
3434
<module>udf-sample</module>
35+
<module>coverage</module>
3536
</modules>
3637

3738
</project>

helpers/system-functions-sample/pom.xml renamed to testing/system-functions-sample/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<parent>
2323
<groupId>com.datasqrl.flinkrunner</groupId>
24-
<artifactId>helpers</artifactId>
24+
<artifactId>testing</artifactId>
2525
<version>1.0.0-SNAPSHOT</version>
2626
</parent>
2727

helpers/udf-sample/pom.xml renamed to testing/udf-sample/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<parent>
2323
<groupId>com.datasqrl.flinkrunner</groupId>
24-
<artifactId>helpers</artifactId>
24+
<artifactId>testing</artifactId>
2525
<version>1.0.0-SNAPSHOT</version>
2626
</parent>
2727

0 commit comments

Comments
 (0)