Skip to content

Commit

Permalink
Merge pull request #2 from Milesight-IoT/add-central-publishing-maven…
Browse files Browse the repository at this point in the history
…-plugin

build: add central publishing maven plugin
  • Loading branch information
zakersimonjack authored Dec 9, 2024
2 parents 8a3ca1a + 2304a33 commit f7590f3
Show file tree
Hide file tree
Showing 7 changed files with 324 additions and 79 deletions.
48 changes: 44 additions & 4 deletions application-dev/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,41 @@
<parent>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>beaver-iot-integrations</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<modelVersion>4.0.0</modelVersion>

<groupId>com.milesight.beaveriot</groupId>
<artifactId>application-dev</artifactId>
<name>application-dev</name>
<description>Beaver IoT integrations.</description>
<url>https://github.com/milesight-iot/beaver-iot-integrations</url>
<scm>
<url>https://github.com/milesight-iot/beaver-iot-integrations</url>
</scm>
<organization>
<name>Milesight</name>
<url>https://www.milesight.com</url>
</organization>
<developers>
<developer>
<id>Simon</id>
<name>Simon Zhao</name>
<email>[email protected]</email>
</developer>
</developers>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/license/MIT</url>
</license>
</licenses>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<deploy.skip>true</deploy.skip>
</properties>

<dependencies>
Expand Down Expand Up @@ -45,7 +68,7 @@
<dependency>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>data-jpa</artifactId>
<version>${project.version}</version>
<version>${beaver-iot.version}</version>
</dependency>

<!--<dependency>
Expand Down Expand Up @@ -123,4 +146,21 @@
</dependency>-->
</dependencies>

</project>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.6.0</version>
<extensions>true</extensions>
<executions>
<execution>
<id>injected-central-publishing</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
31 changes: 27 additions & 4 deletions integrations/msc-integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,33 @@
<parent>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>integrations</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<artifactId>msc-integration</artifactId>
<name>msc-integration</name>
<description>Beaver IoT integrations.</description>
<url>https://github.com/milesight-iot/beaver-iot-integrations</url>
<scm>
<url>https://github.com/milesight-iot/beaver-iot-integrations</url>
</scm>
<organization>
<name>Milesight</name>
<url>https://www.milesight.com</url>
</organization>
<developers>
<developer>
<id>Simon</id>
<name>Simon Zhao</name>
<email>[email protected]</email>
</developer>
</developers>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/license/MIT</url>
</license>
</licenses>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand All @@ -21,20 +44,20 @@
<dependency>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>context</artifactId>
<version>${project.version}</version>
<version>${beaver-iot.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.milesight</groupId>
<artifactId>msc-java-sdk</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</dependency>

<!-- unit test -->
<dependency>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>application-dev</artifactId>
<version>1.0-SNAPSHOT</version>
<version>${beaver-iot.version}</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
24 changes: 22 additions & 2 deletions integrations/ping/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,31 @@
<parent>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>integrations</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<artifactId>ping</artifactId>
<name>ping</name>
<description>Beaver IoT integrations.</description>
<url>https://github.com/milesight-iot/beaver-iot-integrations</url>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/license/MIT</url>
</license>
</licenses>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<deploy.skip>true</deploy.skip>
</properties>

<dependencies>
<dependency>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>context</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand All @@ -32,6 +41,17 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.6.0</version>
<executions>
<execution>
<id>injected-central-publishing</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
31 changes: 27 additions & 4 deletions integrations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,40 @@
<parent>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>beaver-iot-integrations</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<groupId>com.milesight.beaveriot</groupId>
<artifactId>integrations</artifactId>
<packaging>pom</packaging>
<name>integrations</name>
<description>Beaver IoT integrations.</description>
<url>https://github.com/milesight-iot/beaver-iot-integrations</url>
<scm>
<url>https://github.com/milesight-iot/beaver-iot-integrations</url>
</scm>
<organization>
<name>Milesight</name>
<url>https://www.milesight.com</url>
</organization>
<developers>
<developer>
<id>Simon</id>
<name>Simon Zhao</name>
<email>[email protected]</email>
</developer>
</developers>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/license/MIT</url>
</license>
</licenses>

<modules>
<module>sample-integrations</module>
<module>msc-integration</module>
<module>ping</module>
<module>msc-integration</module>
</modules>

<properties>
Expand All @@ -24,4 +47,4 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

</project>
</project>
13 changes: 11 additions & 2 deletions integrations/sample-integrations/my-integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,31 @@
<parent>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>sample-integrations</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<artifactId>my-integration</artifactId>
<name>my-integration</name>
<description>Beaver IoT integrations.</description>
<url>https://github.com/milesight-iot/beaver-iot-integrations</url>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/license/MIT</url>
</license>
</licenses>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<deploy.skip>true</deploy.skip>
</properties>

<dependencies>
<dependency>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>context</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
45 changes: 42 additions & 3 deletions integrations/sample-integrations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,33 @@
<parent>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>integrations</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<artifactId>sample-integrations</artifactId>
<name>sample-integrations</name>
<description>Beaver IoT integrations.</description>
<url>https://github.com/milesight-iot/beaver-iot-integrations</url>
<scm>
<url>https://github.com/milesight-iot/beaver-iot-integrations</url>
</scm>
<organization>
<name>Milesight</name>
<url>https://www.milesight.com</url>
</organization>
<developers>
<developer>
<id>Simon</id>
<name>Simon Zhao</name>
<email>[email protected]</email>
</developer>
</developers>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/license/MIT</url>
</license>
</licenses>

<modules>
<module>my-integration</module>
Expand All @@ -20,15 +43,31 @@
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<deploy.skip>true</deploy.skip>
</properties>

<dependencies>
<dependency>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>context</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

</project>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.6.0</version>
<executions>
<execution>
<id>injected-central-publishing</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
Loading

0 comments on commit f7590f3

Please sign in to comment.