Skip to content

Commit

Permalink
add griffin bom for third party dependencies management (#660)
Browse files Browse the repository at this point in the history
* add griffin bom for third party dependencies management

* standarize pom structure
  • Loading branch information
guoyuepeng authored Aug 6, 2024
1 parent 5fab2b1 commit 0703f8b
Show file tree
Hide file tree
Showing 7 changed files with 186 additions and 39 deletions.
1 change: 1 addition & 0 deletions griffin-bom/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this is for third party dependencies' management.
51 changes: 51 additions & 0 deletions griffin-bom/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<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">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.griffin</groupId>
<artifactId>griffin</artifactId>
<version>2.0.0-SNAPSHOT</version>
<relativePath/>
</parent>

<groupId>org.apache.griffin</groupId>
<artifactId>griffin-bom</artifactId>
<version>2.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Apache Griffin BOM ${project.version}</name>
<url>https://griffin.apache.org</url>

<properties>

</properties>


<dependencyManagement>
<dependencies>
</dependencies>
</dependencyManagement>



</project>
12 changes: 5 additions & 7 deletions griffin-connectors/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<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">
<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">

<modelVersion>4.0.0</modelVersion>

<parent>
Expand All @@ -28,11 +28,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
<version>2.0.0-SNAPSHOT</version>
</parent>

<groupId>org.apache.griffin</groupId>

<artifactId>griffin-connectors</artifactId>
<version>2.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>griffin-connectors-${project.parent.version}</name>
<name>${project.artifactId}</name>
<url>https://griffin.apache.org</url>


Expand Down
12 changes: 5 additions & 7 deletions griffin-dqc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<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">
<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">

<modelVersion>4.0.0</modelVersion>

<parent>
Expand All @@ -28,11 +28,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
<version>2.0.0-SNAPSHOT</version>
</parent>

<groupId>org.apache.griffin</groupId>

<artifactId>griffin-dqc</artifactId>
<version>2.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>griffin-dqc-${project.parent.version}</name>
<name>${project.artifactId}</name>
<url>https://griffin.apache.org</url>


Expand Down
6 changes: 2 additions & 4 deletions griffin-metric/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ under the License.
<version>2.0.0-SNAPSHOT</version>
</parent>

<groupId>org.apache.griffin</groupId>

<artifactId>griffin-metric</artifactId>
<version>2.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>griffin-metric-${project.parent.version}</name>
<name>${project.artifactId}</name>
<url>https://griffin.apache.org</url>


Expand Down
36 changes: 36 additions & 0 deletions griffin-scheduler/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<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">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.griffin</groupId>
<artifactId>griffin</artifactId>
<version>2.0.0-SNAPSHOT</version>
</parent>

<artifactId>griffin-scheduler</artifactId>
<name>${project.artifactId}</name>
<url>https://griffin.apache.org</url>


</project>
107 changes: 86 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
Expand All @@ -34,26 +34,31 @@ under the License.
<version>2.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Apache Griffin ${project.version}</name>
<description>Big Data Quality Solution For Batch and Streaming</description>
<url>https://griffin.apache.org</url>

<properties>
<encoding>UTF-8</encoding>
<project.build.sourceEncoding>${encoding}</project.build.sourceEncoding>
<project.reporting.outputEncoding>${encoding}</project.reporting.outputEncoding>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<spring.boot.version>2.6.1</spring.boot.version>
<java.version>1.8</java.version>
<scala.binary.version>2.11</scala.binary.version>
<scala211.binary.version>2.11</scala211.binary.version>
<scala.version>${scala.binary.version}.12</scala.version>

<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<junit.version>5.9.0</junit.version>
<mockito.version>3.12.4</mockito.version>
<spotbugs.version>3.1.12</spotbugs.version>
<maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
<maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
<maven-javadoc-plugin.version>2.10.3</maven-javadoc-plugin.version>
<maven-source-plugin.version>2.4</maven-source-plugin.version>
<maven-surefire-plugin.version>3.0.0-M6</maven-surefire-plugin.version>
<maven-dependency-plugin.version>3.1.1</maven-dependency-plugin.version>
<maven-shade-plugin.version>3.2.1</maven-shade-plugin.version>
<maven.deploy.skip>false</maven.deploy.skip>
<jacoco.skip>false</jacoco.skip>
<maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
<exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
<lombok.version>1.18.20</lombok.version>

<maven-apache-rat.version>${version.apache-rat-plugin}</maven-apache-rat.version>
<exec-maven-plugin.version>1.6.0</exec-maven-plugin.version>

<compile.scope>compile</compile.scope>
<provided.scope>provided</provided.scope>
</properties>

<licenses>
Expand Down Expand Up @@ -97,20 +102,80 @@ under the License.
<module>griffin-connectors</module>
<module>griffin-metric</module>
<module>griffin-dqc</module>
<module>schedulers</module>
<module>griffin-scheduler</module>
</modules>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
<groupId>org.apache.griffin</groupId>
<artifactId>griffin-metric</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.griffin</groupId>
<artifactId>griffin-scheduler</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.griffin</groupId>
<artifactId>griffin-connectors</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.griffin</groupId>
<artifactId>griffin-dqc</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<version>${spring.boot.version}</version>
<optional>true</optional>
</dependency>
</dependencies>

<build>
<pluginManagement>
<plugins>
Expand Down

0 comments on commit 0703f8b

Please sign in to comment.