Skip to content

Commit

Permalink
build: add central publishing maven plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Maglitch65 committed Dec 9, 2024
1 parent 5a2adf4 commit 8c5c1f4
Show file tree
Hide file tree
Showing 48 changed files with 1,285 additions and 189 deletions.
45 changes: 25 additions & 20 deletions application/application-dev/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>application</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<artifactId>application-dev</artifactId>
<name>application-dev</name>
<description>An open-source platform designed for rapid and intuitive IoT application development.</description>
<url>https://github.com/milesight-iot/beaver-iot</url>
<scm>
<url>https://github.com/milesight-iot/beaver-iot</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 Down Expand Up @@ -83,24 +106,6 @@
<artifactId>entity-service</artifactId>
<version>${project.version}</version>
</dependency>

<!-- integration test -->
<!--<dependency>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>msc-integration</artifactId>
<version>${project.version}</version>
<scope>system</scope>
<systemPath>C:/Users/Zhangl/.m2/repository/com/milesight/beaveriot/msc-integration/1.0-SNAPSHOT/msc-integration-1.0-SNAPSHOT.jar</systemPath>
</dependency>
<dependency>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>ping</artifactId>
<version>${project.version}</version>
<scope>system</scope>
<systemPath>C:/Users/Zhangl/.m2/repository/com/milesight/beaveriot/ping/1.0-SNAPSHOT/ping-1.0-SNAPSHOT.jar</systemPath>
</dependency>-->

</dependencies>

<build>
Expand All @@ -115,4 +120,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
45 changes: 43 additions & 2 deletions application/application-edge/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,56 @@
<parent>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>application</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<artifactId>application-edge</artifactId>
<name>application-edge</name>
<description>An open-source platform designed for rapid and intuitive IoT application development.</description>
<url>https://github.com/milesight-iot/beaver-iot</url>
<scm>
<url>https://github.com/milesight-iot/beaver-iot</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>

</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>
56 changes: 37 additions & 19 deletions application/application-standard/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>application</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<artifactId>application-standard</artifactId>
<name>application-standard</name>
<description>An open-source platform designed for rapid and intuitive IoT application development.</description>
<url>https://github.com/milesight-iot/beaver-iot</url>
<scm>
<url>https://github.com/milesight-iot/beaver-iot</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 Down Expand Up @@ -119,26 +142,9 @@
<dependency>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>msc-integration</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
</dependency>

<!-- sample test -->
<!--<dependency>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>msc-integration</artifactId>
<version>${project.version}</version>
<scope>system</scope>
<systemPath>C:/Users/Zhangl/.m2/repository/com/milesight/beaveriot/msc-integration/1.0-SNAPSHOT/msc-integration-1.0-SNAPSHOT.jar</systemPath>
</dependency>
<dependency>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>ping</artifactId>
<version>${project.version}</version>
<scope>system</scope>
<systemPath>C:/Users/Zhangl/.m2/repository/com/milesight/beaveriot/ping/1.0-SNAPSHOT/ping-1.0-SNAPSHOT.jar</systemPath>
</dependency>-->

<!-- unit test -->
<dependency>
<groupId>org.junit.platform</groupId>
Expand Down Expand Up @@ -180,6 +186,18 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<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>

Expand Down
28 changes: 26 additions & 2 deletions application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,35 @@
<parent>
<groupId>com.milesight.beaveriot</groupId>
<artifactId>beaver-iot</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<artifactId>application</artifactId>
<packaging>pom</packaging>
<name>application</name>
<description>An open-source platform designed for rapid and intuitive IoT application development.</description>
<url>https://github.com/milesight-iot/beaver-iot</url>
<scm>
<url>https://github.com/milesight-iot/beaver-iot</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>application-edge</module>
<module>application-standard</module>
Expand All @@ -24,4 +48,4 @@
</properties>


</project>
</project>
Loading

0 comments on commit 8c5c1f4

Please sign in to comment.