Unverified Commit 6cf16812 authored by Licho's avatar Licho Committed by GitHub

refactor: pom.xml (#1919)

* feat Signed-off-by: 's avatarLicho <lecho.sun@gmail.com> * feat: pom * feat: pom * feat: pom * refactor: pom * refactor: reduce pom config * refactor: reduce pom config * refactor: exclude default profile * Spotless Apply * refactor: exclude default profile * feat Signed-off-by: 's avatarlicho <lecho.sun@gmail.com> * remove: javafaker * fix: prod envirmnment * fix: prod environment * fix Signed-off-by: 's avatarLicho <lecho.sun@gmail.com> * Spotless Apply * trigger build * trigger build * fix: udf compile * refactor: plugin verson variable Signed-off-by: 's avatarLicho <lecho.sun@gmail.com> * Spotless Apply * refactor: version variable * feat: add notAll profile * Spotless Apply * fix: special not-all * Spotless Apply * fix: function * fix: not-all build action Signed-off-by: 's avatarlicho <lecho.sun@gmail.com> * fix: dinky-app module --------- Signed-off-by: 's avatarLicho <lecho.sun@gmail.com> Signed-off-by: 's avatarlicho <lecho.sun@gmail.com> Co-authored-by: 's avatarleechor <leechor@users.noreply.github.com>
parent 02bd2009
...@@ -125,7 +125,7 @@ jobs: ...@@ -125,7 +125,7 @@ jobs:
-Dspotless.check.skip=true \ -Dspotless.check.skip=true \
-Denforcer.skip=true \ -Denforcer.skip=true \
-Dmaven.javadoc.skip=true \ -Dmaven.javadoc.skip=true \
-P prod,scala-2.12,flink-${{ matrix.flink }},maven-central \ -P prod,scala-2.12,not-all,flink-${{ matrix.flink }},maven-central \
--no-snapshot-updates --no-snapshot-updates
# 检查打包的大小 # 检查打包的大小
......
...@@ -89,14 +89,6 @@ ...@@ -89,14 +89,6 @@
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.datatype</groupId> <groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId> <artifactId>jackson-datatype-jsr310</artifactId>
...@@ -155,14 +147,6 @@ ...@@ -155,14 +147,6 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId> <artifactId>spring-boot-starter-data-redis</artifactId>
</dependency> </dependency>
<!-- <dependency>-->
<!-- <groupId>cn.dev33</groupId>-->
<!-- <artifactId>sa-token-dao-redis-jackson</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>redis.clients</groupId>-->
<!-- <artifactId>jedis</artifactId>-->
<!-- </dependency>-->
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId> <artifactId>commons-lang3</artifactId>
...@@ -173,11 +157,21 @@ ...@@ -173,11 +157,21 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-common</artifactId> <artifactId>dinky-daemon</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-client-base</artifactId> <artifactId>dinky-gateway</artifactId>
<exclusions>
<exclusion>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-client</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-scheduler</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
...@@ -185,25 +179,20 @@ ...@@ -185,25 +179,20 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-alert-base</artifactId> <artifactId>dinky-executor</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-daemon</artifactId> <artifactId>dinky-alert-base</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-executor</artifactId> <artifactId>dinky-client-base</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-gateway</artifactId> <artifactId>dinky-client-hadoop</artifactId>
<exclusions> <scope>${scope.runtime}</scope>
<exclusion>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-client</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.poi</groupId> <groupId>org.apache.poi</groupId>
...@@ -225,106 +214,18 @@ ...@@ -225,106 +214,18 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId> <artifactId>spring-boot-starter-aop</artifactId>
</dependency> </dependency>
<!-- hadoop -->
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-hadoop</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-scheduler</artifactId>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-process</artifactId>
</dependency>
<dependency> <dependency>
<groupId>io.prometheus.jmx</groupId> <groupId>io.prometheus.jmx</groupId>
<artifactId>jmx_prometheus_javaagent</artifactId> <artifactId>jmx_prometheus_javaagent</artifactId>
<version>0.16.1</version> <version>0.16.1</version>
</dependency> </dependency>
<!-- expand metadata -->
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>com.github.jsqlparser</groupId>
<artifactId>dinky-metadata-clickhouse</artifactId> <artifactId>jsqlparser</artifactId>
<scope>${expand.scope}</scope> <version>4.4</version>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-metadata-doris</artifactId>
<scope>${expand.scope}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-metadata-hive</artifactId>
<scope>${expand.scope}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-metadata-mysql</artifactId>
<scope>${expand.scope}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-metadata-oracle</artifactId>
<scope>${expand.scope}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-metadata-phoenix</artifactId>
<scope>${expand.scope}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-metadata-postgresql</artifactId>
<scope>${expand.scope}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-metadata-presto</artifactId>
<scope>${expand.scope}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-metadata-sqlserver</artifactId>
<scope>${expand.scope}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-metadata-starrocks</artifactId>
<scope>${expand.scope}</scope>
</dependency>
<!-- expand alert -->
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-alert-dingtalk</artifactId>
<scope>${expand.scope}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-alert-email</artifactId>
<scope>${expand.scope}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-alert-feishu</artifactId>
<scope>${expand.scope}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-alert-wechat</artifactId>
<scope>${expand.scope}</scope>
</dependency> </dependency>
<!-- test dependencies --> <!-- test dependencies -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>org.junit.vintage</groupId> <groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId> <artifactId>junit-vintage-engine</artifactId>
...@@ -397,16 +298,10 @@ ...@@ -397,16 +298,10 @@
<artifactId>maven-invoker</artifactId> <artifactId>maven-invoker</artifactId>
<version>3.2.0</version> <version>3.2.0</version>
</dependency> </dependency>
<!--<dependency>-->
<!-- <groupId>org.apache.maven</groupId>-->
<!-- <artifactId>maven-model</artifactId>-->
<!-- <version>3.9.1</version>-->
<!--</dependency>-->
</dependencies> </dependencies>
<build> <build>
<finalName>${project.artifactId}-${project.version}</finalName> <finalName>${project.artifactId}-${project.version}</finalName>
<resources> <resources>
<resource> <resource>
<filtering>true</filtering> <filtering>true</filtering>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.12</artifactId> <artifactId>dinky-flink-1.12</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.13</artifactId> <artifactId>dinky-flink-1.13</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.14</artifactId> <artifactId>dinky-flink-1.14</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.15</artifactId> <artifactId>dinky-flink-1.15</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
......
...@@ -22,26 +22,15 @@ ...@@ -22,26 +22,15 @@
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-app-base</artifactId> <artifactId>dinky-app-base</artifactId>
</dependency> </dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.16</artifactId>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.16</artifactId>
<scope>provided</scope>
</dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-client-base</artifactId> <artifactId>dinky-client-${dinky.flink.version}</artifactId>
<scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-executor</artifactId> <artifactId>dinky-flink-${dinky.flink.version}</artifactId>
<scope>${scope.runtime}</scope>
</dependency> </dependency>
</dependencies> </dependencies>
......
...@@ -34,18 +34,10 @@ ...@@ -34,18 +34,10 @@
<groupId>mysql</groupId> <groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId> <artifactId>mysql-connector-java</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-base</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-executor</artifactId> <artifactId>dinky-executor</artifactId>
</dependency> </dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
...@@ -55,141 +47,74 @@ ...@@ -55,141 +47,74 @@
<profiles> <profiles>
<profile> <profile>
<id>flink-1.12</id> <id>not-all</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.12</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.12</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.13</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.13</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.13</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.14</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.14</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.14</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.15</id>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-client-1.15</artifactId> <artifactId>dinky-client-${dinky.flink.version}</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.15</artifactId> <artifactId>dinky-flink-${dinky.flink.version}</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
</dependencies> </dependencies>
</profile> </profile>
<profile>
<id>flink-1.16</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.16</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.16</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile> <profile>
<id>flink-all</id> <id>flink-all</id>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-client-1.12</artifactId> <artifactId>dinky-client-1.12</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.12</artifactId> <artifactId>dinky-flink-1.12</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-client-1.13</artifactId> <artifactId>dinky-client-1.13</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.13</artifactId> <artifactId>dinky-flink-1.13</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-client-1.14</artifactId> <artifactId>dinky-client-1.14</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.14</artifactId> <artifactId>dinky-flink-1.14</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-client-1.15</artifactId> <artifactId>dinky-client-1.15</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.15</artifactId> <artifactId>dinky-flink-1.15</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-client-1.16</artifactId> <artifactId>dinky-client-1.16</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.16</artifactId> <artifactId>dinky-flink-1.16</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
</dependencies> </dependencies>
</profile> </profile>
......
...@@ -7,10 +7,9 @@ ...@@ -7,10 +7,9 @@
<artifactId>dinky</artifactId> <artifactId>dinky</artifactId>
<version>0.8.0</version> <version>0.8.0</version>
</parent> </parent>
<artifactId>dinky-app</artifactId>
<artifactId>dinky-app</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>Dinky : App</name> <name>Dinky : App</name>
<modules> <modules>
...@@ -19,40 +18,11 @@ ...@@ -19,40 +18,11 @@
<profiles> <profiles>
<profile> <profile>
<id>flink-1.12</id> <id>not-all</id>
<modules> <modules>
<module>dinky-app-1.12</module> <module>dinky-app-${dinky.flink.version}</module>
</modules> </modules>
</profile> </profile>
<profile>
<id>flink-1.13</id>
<modules>
<module>dinky-app-1.13</module>
</modules>
</profile>
<profile>
<id>flink-1.14</id>
<modules>
<module>dinky-app-1.14</module>
</modules>
</profile>
<profile>
<id>flink-1.15</id>
<modules>
<module>dinky-app-1.15</module>
</modules>
</profile>
<profile>
<id>flink-1.16</id>
<modules>
<module>dinky-app-1.16</module>
</modules>
</profile>
<profile> <profile>
<id>flink-all</id> <id>flink-all</id>
<modules> <modules>
......
...@@ -23,10 +23,9 @@ ...@@ -23,10 +23,9 @@
<artifactId>dinky-catalog-mysql</artifactId> <artifactId>dinky-catalog-mysql</artifactId>
<version>0.8.0</version> <version>0.8.0</version>
</parent> </parent>
<artifactId>dinky-catalog-mysql-1.13</artifactId>
<artifactId>dinky-catalog-mysql-1.13</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>Dinky : Catalog : Mysql 1.13</name> <name>Dinky : Catalog : Mysql 1.13</name>
<dependencies> <dependencies>
......
...@@ -23,10 +23,9 @@ ...@@ -23,10 +23,9 @@
<artifactId>dinky-catalog-mysql</artifactId> <artifactId>dinky-catalog-mysql</artifactId>
<version>0.8.0</version> <version>0.8.0</version>
</parent> </parent>
<artifactId>dinky-catalog-mysql-1.14</artifactId>
<artifactId>dinky-catalog-mysql-1.14</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>Dinky : Catalog : Mysql 1.14</name> <name>Dinky : Catalog : Mysql 1.14</name>
<dependencies> <dependencies>
......
...@@ -24,41 +24,18 @@ ...@@ -24,41 +24,18 @@
<artifactId>dinky-catalog</artifactId> <artifactId>dinky-catalog</artifactId>
<version>0.8.0</version> <version>0.8.0</version>
</parent> </parent>
<artifactId>dinky-catalog-mysql</artifactId>
<artifactId>dinky-catalog-mysql</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>Dinky : Catalog : Mysql</name> <name>Dinky : Catalog : Mysql</name>
<profiles> <profiles>
<profile> <profile>
<id>flink-1.13</id> <id>not-all</id>
<modules>
<module>dinky-catalog-mysql-1.13</module>
</modules>
</profile>
<profile>
<id>flink-1.14</id>
<modules> <modules>
<module>dinky-catalog-mysql-1.14</module> <module>dinky-catalog-mysql-${dinky.flink.version}</module>
</modules> </modules>
</profile> </profile>
<profile>
<id>flink-1.15</id>
<modules>
<module>dinky-catalog-mysql-1.15</module>
</modules>
</profile>
<profile>
<id>flink-1.16</id>
<modules>
<module>dinky-catalog-mysql-1.16</module>
</modules>
</profile>
<profile> <profile>
<id>flink-all</id> <id>flink-all</id>
<modules> <modules>
......
...@@ -25,9 +25,7 @@ ...@@ -25,9 +25,7 @@
<version>0.8.0</version> <version>0.8.0</version>
</parent> </parent>
<artifactId>dinky-catalog</artifactId> <artifactId>dinky-catalog</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>Dinky : Catalog</name> <name>Dinky : Catalog</name>
<modules> <modules>
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.12</artifactId> <artifactId>dinky-flink-1.12</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
</dependencies> </dependencies>
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.13</artifactId> <artifactId>dinky-flink-1.13</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
</dependencies> </dependencies>
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.14</artifactId> <artifactId>dinky-flink-1.14</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.datatype</groupId> <groupId>com.fasterxml.jackson.datatype</groupId>
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.15</artifactId> <artifactId>dinky-flink-1.15</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.datatype</groupId> <groupId>com.fasterxml.jackson.datatype</groupId>
......
...@@ -17,16 +17,11 @@ ...@@ -17,16 +17,11 @@
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-client-base</artifactId> <artifactId>dinky-client-base</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-common</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.16</artifactId> <artifactId>dinky-flink-1.16</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.datatype</groupId> <groupId>com.fasterxml.jackson.datatype</groupId>
...@@ -54,7 +49,6 @@ ...@@ -54,7 +49,6 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version> <version>${maven-jar-plugin.version}</version>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory> <outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-common</artifactId> <artifactId>dinky-common</artifactId>
</dependency> </dependency>
<!-- test dependencies --> <!-- test dependencies -->
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
...@@ -120,60 +121,15 @@ ...@@ -120,60 +121,15 @@
<profiles> <profiles>
<profile> <profile>
<id>flink-1.12</id> <id>not-all</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.12</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.13</id>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.13</artifactId> <artifactId>dinky-flink-${dinky.flink.version}</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.14</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.14</artifactId>
<scope>${scope.runtime}</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
</dependencies> </dependencies>
</profile> </profile>
<profile>
<id>flink-1.15</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.15</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.16</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.16</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile> <profile>
<id>flink-all</id> <id>flink-all</id>
<dependencies> <dependencies>
......
...@@ -37,40 +37,11 @@ ...@@ -37,40 +37,11 @@
<profiles> <profiles>
<profile> <profile>
<id>flink-1.12</id> <id>not-all</id>
<modules> <modules>
<module>dinky-client-1.12</module> <module>dinky-client-${dinky.flink.version}</module>
</modules>
</profile>
<profile>
<id>flink-1.13</id>
<modules>
<module>dinky-client-1.13</module>
</modules>
</profile>
<profile>
<id>flink-1.14</id>
<modules>
<module>dinky-client-1.14</module>
</modules> </modules>
</profile> </profile>
<profile>
<id>flink-1.15</id>
<modules>
<module>dinky-client-1.15</module>
</modules>
</profile>
<profile>
<id>flink-1.16</id>
<modules>
<module>dinky-client-1.16</module>
</modules>
</profile>
<profile> <profile>
<id>flink-all</id> <id>flink-all</id>
<modules> <modules>
......
...@@ -30,23 +30,23 @@ ...@@ -30,23 +30,23 @@
<name>Dinky : Common</name> <name>Dinky : Common</name>
<dependencies> <dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId> <artifactId>jackson-databind</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId> <groupId>org.projectlombok</groupId>
<artifactId>jackson-databind</artifactId> <artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId> <artifactId>slf4j-api</artifactId>
</dependency> </dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
</dependency>
<dependency> <dependency>
<groupId>com.github.docker-java</groupId> <groupId>com.github.docker-java</groupId>
...@@ -78,17 +78,8 @@ ...@@ -78,17 +78,8 @@
<groupId>com.github.docker-java</groupId> <groupId>com.github.docker-java</groupId>
<artifactId>docker-java-transport-httpclient5</artifactId> <artifactId>docker-java-transport-httpclient5</artifactId>
</dependency> </dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
</dependency>
<!-- test dependencies --> <!-- test dependencies -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>org.junit.vintage</groupId> <groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId> <artifactId>junit-vintage-engine</artifactId>
......
...@@ -23,29 +23,12 @@ ...@@ -23,29 +23,12 @@
<artifactId>dinky</artifactId> <artifactId>dinky</artifactId>
<version>0.8.0</version> <version>0.8.0</version>
</parent> </parent>
<artifactId>dinky-core</artifactId>
<artifactId>dinky-core</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>Dinky : Core</name> <name>Dinky : Core</name>
<dependencies> <dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-common</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.codehaus.groovy</groupId> <groupId>org.codehaus.groovy</groupId>
<artifactId>groovy</artifactId> <artifactId>groovy</artifactId>
...@@ -56,21 +39,6 @@ ...@@ -56,21 +39,6 @@
<artifactId>dinky-executor</artifactId> <artifactId>dinky-executor</artifactId>
<scope>${scope.runtime}</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<!--<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-connector-jdbc-${dinky.flink.version}</artifactId>
<scope>${scope.runtime}</scope>
</dependency>-->
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-gateway</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-hadoop</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-alert-dingtalk</artifactId> <artifactId>dinky-alert-dingtalk</artifactId>
...@@ -145,10 +113,6 @@ ...@@ -145,10 +113,6 @@
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId> <artifactId>druid-spring-boot-starter</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-process</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-function</artifactId> <artifactId>dinky-function</artifactId>
...@@ -162,12 +126,8 @@ ...@@ -162,12 +126,8 @@
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- test dependencies --> <!-- test dependencies -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>org.junit.vintage</groupId> <groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId> <artifactId>junit-vintage-engine</artifactId>
...@@ -219,118 +179,55 @@ ...@@ -219,118 +179,55 @@
<profile> <profile>
<id>flink-1.12</id> <id>flink-1.12</id>
<dependencies> <dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.12</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-connector-jdbc-1.12</artifactId> <artifactId>dinky-connector-jdbc-1.12</artifactId>
<scope>${scope.runtime}</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.12</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies> </dependencies>
</profile> </profile>
<profile> <profile>
<id>flink-1.13</id> <id>flink-1.13</id>
<dependencies> <dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.13</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-catalog-mysql-1.13</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-connector-jdbc-1.13</artifactId> <artifactId>dinky-connector-jdbc-1.13</artifactId>
<scope>${scope.runtime}</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.13</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies> </dependencies>
</profile> </profile>
<profile> <profile>
<id>flink-1.14</id> <id>flink-1.14</id>
<dependencies> <dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.14</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-catalog-mysql-1.14</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-connector-jdbc-1.14</artifactId> <artifactId>dinky-connector-jdbc-1.14</artifactId>
<scope>${scope.runtime}</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.14</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.15</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.15</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-catalog-mysql-1.15</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.15</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies> </dependencies>
</profile> </profile>
<profile> <profile>
<id>flink-1.16</id> <id>not-all</id>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-client-1.16</artifactId> <artifactId>dinky-catalog-mysql-${dinky.flink.version}</artifactId>
<scope>${scope.runtime}</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-catalog-mysql-1.16</artifactId> <artifactId>dinky-client-${dinky.flink.version}</artifactId>
<scope>${scope.runtime}</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.16</artifactId> <artifactId>dinky-flink-${dinky.flink.version}</artifactId>
<scope>${scope.runtime}</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
</dependencies> </dependencies>
</profile> </profile>
<profile> <profile>
<id>flink-all</id> <id>flink-all</id>
<dependencies> <dependencies>
...@@ -360,7 +257,6 @@ ...@@ -360,7 +257,6 @@
<artifactId>dinky-flink-1.13</artifactId> <artifactId>dinky-flink-1.13</artifactId>
<scope>${scope.runtime}</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-client-1.14</artifactId> <artifactId>dinky-client-1.14</artifactId>
...@@ -376,7 +272,6 @@ ...@@ -376,7 +272,6 @@
<artifactId>dinky-flink-1.14</artifactId> <artifactId>dinky-flink-1.14</artifactId>
<scope>${scope.runtime}</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-client-1.15</artifactId> <artifactId>dinky-client-1.15</artifactId>
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-metadata-base</artifactId> <artifactId>dinky-metadata-base</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
...@@ -79,11 +79,6 @@ ...@@ -79,11 +79,6 @@
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- test dependencies --> <!-- test dependencies -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>org.junit.vintage</groupId> <groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId> <artifactId>junit-vintage-engine</artifactId>
...@@ -129,6 +124,16 @@ ...@@ -129,6 +124,16 @@
<artifactId>junit-jupiter</artifactId> <artifactId>junit-jupiter</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-${dinky.flink.version}</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-${dinky.flink.version}</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies> </dependencies>
<profiles> <profiles>
...@@ -143,112 +148,10 @@ ...@@ -143,112 +148,10 @@
</dependency> </dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.12</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.12</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile> </profile>
<profile>
<id>flink-1.13</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.13</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.13</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.14</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.14</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.14</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.15</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.15</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.15</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.16</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.16</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.16</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</profile>
<profile> <profile>
<id>flink-all</id> <id>flink-all</id>
<dependencies> <dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-${dinky.flink.version}</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-${dinky.flink.version}</artifactId>
<scope>provided</scope>
</dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.datatype</groupId> <groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId> <artifactId>jackson-datatype-jsr310</artifactId>
......
...@@ -37,31 +37,16 @@ ...@@ -37,31 +37,16 @@
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table-runtime</artifactId>
<version>${flink.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.apache.flink</groupId> <groupId>org.apache.flink</groupId>
<artifactId>flink-connector-jdbc</artifactId> <artifactId>flink-connector-jdbc</artifactId>
<version>${flink.version}</version> <version>${flink.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table-api-java-bridge</artifactId>
<version>${flink.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.apache.flink</groupId> <groupId>org.apache.flink</groupId>
<artifactId>flink-table-api-scala-bridge_2.12</artifactId> <artifactId>flink-table-api-scala-bridge_2.12</artifactId>
<version>${flink.version}</version> <version>${flink.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-core</artifactId>
<version>${flink.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.apache.flink</groupId> <groupId>org.apache.flink</groupId>
<artifactId>flink-table-common</artifactId> <artifactId>flink-table-common</artifactId>
...@@ -69,25 +54,13 @@ ...@@ -69,25 +54,13 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.flink</groupId> <groupId>org.apache.flink</groupId>
<artifactId>flink-table-api-java</artifactId> <artifactId>flink-yarn</artifactId>
<version>${flink.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients</artifactId>
<version>${flink.version}</version> <version>${flink.version}</version>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId> <artifactId>slf4j-api</artifactId>
</exclusion> </exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-yarn</artifactId>
<version>${flink.version}</version>
<exclusions>
<exclusion> <exclusion>
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-yarn-common</artifactId> <artifactId>hadoop-yarn-common</artifactId>
...@@ -149,10 +122,5 @@ ...@@ -149,10 +122,5 @@
<artifactId>flink-doris-connector-1.16</artifactId> <artifactId>flink-doris-connector-1.16</artifactId>
<version>1.3.0</version> <version>1.3.0</version>
</dependency> </dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-runtime-web</artifactId>
<version>${flink.version}</version>
</dependency>
</dependencies> </dependencies>
</project> </project>
...@@ -24,47 +24,16 @@ ...@@ -24,47 +24,16 @@
<version>0.8.0</version> <version>0.8.0</version>
</parent> </parent>
<artifactId>dinky-flink</artifactId> <artifactId>dinky-flink</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>Dinky : Flink</name> <name>Dinky : Flink</name>
<profiles> <profiles>
<profile> <profile>
<id>flink-1.12</id> <id>not-all</id>
<modules>
<module>dinky-flink-1.12</module>
</modules>
</profile>
<profile>
<id>flink-1.13</id>
<modules>
<module>dinky-flink-1.13</module>
</modules>
</profile>
<profile>
<id>flink-1.14</id>
<modules> <modules>
<module>dinky-flink-1.14</module> <module>dinky-flink-${dinky.flink.version}</module>
</modules>
</profile>
<profile>
<id>flink-1.15</id>
<modules>
<module>dinky-flink-1.15</module>
</modules> </modules>
</profile> </profile>
<profile>
<id>flink-1.16</id>
<modules>
<module>dinky-flink-1.16</module>
</modules>
</profile>
<profile> <profile>
<id>flink-all</id> <id>flink-all</id>
<modules> <modules>
......
...@@ -35,19 +35,18 @@ ...@@ -35,19 +35,18 @@
<artifactId>freemarker</artifactId> <artifactId>freemarker</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>cn.hutool</groupId> <groupId>org.dinky</groupId>
<artifactId>hutool-all</artifactId> <artifactId>dinky-gateway</artifactId>
<scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-gateway</artifactId> <artifactId>dinky-client-${dinky.flink.version}</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-process</artifactId> <artifactId>dinky-flink-${dinky.flink.version}</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.codehaus.groovy</groupId> <groupId>org.codehaus.groovy</groupId>
...@@ -74,12 +73,8 @@ ...@@ -74,12 +73,8 @@
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- test dependencies --> <!-- test dependencies -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>org.junit.vintage</groupId> <groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId> <artifactId>junit-vintage-engine</artifactId>
...@@ -127,101 +122,4 @@ ...@@ -127,101 +122,4 @@
</dependency> </dependency>
</dependencies> </dependencies>
<profiles>
<profile>
<id>flink-1.12</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.12</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.12</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.13</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.13</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.13</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.14</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.14</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.14</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.15</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.15</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.15</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.16</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.16</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.16</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-all</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-${dinky.flink.version}</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-${dinky.flink.version}</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
</profiles>
</project> </project>
...@@ -24,7 +24,6 @@ import java.io.File; ...@@ -24,7 +24,6 @@ import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream; import java.io.OutputStream;
import java.net.URI; import java.net.URI;
import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -79,33 +78,6 @@ public class CustomStringJavaCompiler { ...@@ -79,33 +78,6 @@ public class CustomStringJavaCompiler {
this.fullClassName = getFullClassName(sourceCode); this.fullClassName = getFullClassName(sourceCode);
} }
/**
* 编译字符串源代码,编译失败在 diagnosticsCollector 中获取提示信息
*
* @return true:编译成功 false:编译失败
*/
public boolean compiler() {
long startTime = System.currentTimeMillis();
// 标准的内容管理器,更换成自己的实现,覆盖部分方法
StandardJavaFileManager standardFileManager =
compiler.getStandardFileManager(diagnosticsCollector, null, null);
JavaFileManager javaFileManager = new StringJavaFileManage(standardFileManager);
// 构造源代码对象
JavaFileObject javaFileObject = new StringJavaFileObject(fullClassName, sourceCode);
// 获取一个编译任务
JavaCompiler.CompilationTask task =
compiler.getTask(
null,
javaFileManager,
diagnosticsCollector,
null,
null,
Arrays.asList(javaFileObject));
// 设置编译耗时
compilerTakeTime = System.currentTimeMillis() - startTime;
return task.call();
}
/** /**
* 编译字符串源代码,并放在缓存目录下,编译失败在 diagnosticsCollector 中获取提示信息 * 编译字符串源代码,并放在缓存目录下,编译失败在 diagnosticsCollector 中获取提示信息
* *
...@@ -128,6 +100,7 @@ public class CustomStringJavaCompiler { ...@@ -128,6 +100,7 @@ public class CustomStringJavaCompiler {
Iterable<? extends JavaFileObject> javaFileObject = Iterable<? extends JavaFileObject> javaFileObject =
standardFileManager.getJavaFileObjectsFromFiles( standardFileManager.getJavaFileObjectsFromFiles(
Collections.singletonList(codeFile)); Collections.singletonList(codeFile));
// 获取一个编译任务 // 获取一个编译任务
JavaCompiler.CompilationTask task = JavaCompiler.CompilationTask task =
compiler.getTask( compiler.getTask(
......
...@@ -37,31 +37,29 @@ ...@@ -37,31 +37,29 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-common</artifactId> <artifactId>dinky-client-hadoop</artifactId>
</dependency> <scope>${scope.runtime}</scope>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>cn.hutool</groupId> <groupId>org.dinky</groupId>
<artifactId>hutool-all</artifactId> <artifactId>dinky-process</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>org.dinky</groupId>
<artifactId>junit</artifactId> <artifactId>dinky-client-${dinky.flink.version}</artifactId>
<scope>provided</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-client-hadoop</artifactId> <artifactId>dinky-flink-${dinky.flink.version}</artifactId>
<scope>${scope.runtime}</scope> <scope>${scope.runtime}</scope>
<exclusions>
<exclusion>
<groupId>com.github.jsqlparser</groupId>
<artifactId>jsqlparser</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
<!-- delete this dependency will result in a JcaPEMKey error <!-- delete this dependency will result in a JcaPEMKey error
for k8s commit tasks--> for k8s commit tasks-->
<dependency> <dependency>
...@@ -87,7 +85,7 @@ for k8s commit tasks--> ...@@ -87,7 +85,7 @@ for k8s commit tasks-->
<!-- test dependencies --> <!-- test dependencies -->
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId> <artifactId>junit-jupiter-params</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
...@@ -135,10 +133,6 @@ for k8s commit tasks--> ...@@ -135,10 +133,6 @@ for k8s commit tasks-->
<artifactId>junit-jupiter</artifactId> <artifactId>junit-jupiter</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-process</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>
...@@ -229,102 +223,6 @@ for k8s commit tasks--> ...@@ -229,102 +223,6 @@ for k8s commit tasks-->
</plugins> </plugins>
</build> </build>
<profiles> <profiles />
<profile>
<id>flink-1.12</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.12</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.12</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.13</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.13</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.13</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.14</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.14</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.14</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.15</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.15</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.15</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.16</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-1.16</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-1.16</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-all</id>
<dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-client-${dinky.flink.version}</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-flink-${dinky.flink.version}</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
</profiles>
</project> </project>
...@@ -30,26 +30,10 @@ ...@@ -30,26 +30,10 @@
<name>Dinky : Metadata : Base</name> <name>Dinky : Metadata : Base</name>
<dependencies> <dependencies>
<dependency>
<groupId>org.dinky</groupId>
<artifactId>dinky-common</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-process</artifactId> <artifactId>dinky-process</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId> <artifactId>druid-spring-boot-starter</artifactId>
......
...@@ -34,11 +34,6 @@ ...@@ -34,11 +34,6 @@
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-metadata-base</artifactId> <artifactId>dinky-metadata-base</artifactId>
</dependency> </dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>provided</scope>
</dependency>
<dependency> <dependency>
<groupId>mysql</groupId> <groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId> <artifactId>mysql-connector-java</artifactId>
...@@ -78,10 +73,5 @@ ...@@ -78,10 +73,5 @@
<artifactId>junit-jupiter</artifactId> <artifactId>junit-jupiter</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
</project> </project>
...@@ -34,24 +34,7 @@ ...@@ -34,24 +34,7 @@
<groupId>org.dinky</groupId> <groupId>org.dinky</groupId>
<artifactId>dinky-common</artifactId> <artifactId>dinky-common</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
</dependency>
<!-- test dependencies --> <!-- test dependencies -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>org.junit.vintage</groupId> <groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId> <artifactId>junit-vintage-engine</artifactId>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment