- 新增 GitHub CI 配置文件,实现自动构建和测试 - 更新 zlm-spring-boot-starter版本至 1.0.9 - 移除 zlm-spring-boot-starter-test 的 SNAPSHOT 版本 - 在 StreamProxyItem 类中添加作者注释
255 lines
10 KiB
XML
255 lines
10 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<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>
|
||
|
||
<groupId>io.github.lunasaw</groupId>
|
||
<artifactId>zlm-spring-boot-starter</artifactId>
|
||
<version>${zlm-spring-boot-starter.version}</version>
|
||
|
||
<name>zlm-spring-boot-starter</name>
|
||
<description>ZLMediaKit restful api and hook starter</description>
|
||
<url>https://github.com/lunasaw/zlm-spring-boot-starter</url>
|
||
|
||
|
||
<properties>
|
||
<maven.compiler.source>17</maven.compiler.source>
|
||
<maven.compiler.target>17</maven.compiler.target>
|
||
<spring-boot.version>3.5.3</spring-boot.version>
|
||
<luna-common.version>2.6.5</luna-common.version>
|
||
<github.username>lunasaw</github.username>
|
||
<app.profiles>${project.name}</app.profiles>
|
||
<zlm-spring-boot-starter.version>1.0.9</zlm-spring-boot-starter.version>
|
||
</properties>
|
||
|
||
<developers>
|
||
<developer>
|
||
<name>luna</name>
|
||
<id>luna</id>
|
||
<email>iszychen@gmail.com</email>
|
||
</developer>
|
||
</developers>
|
||
<licenses>
|
||
<license>
|
||
<name>Apache 2.0</name>
|
||
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
|
||
</license>
|
||
</licenses>
|
||
<scm>
|
||
<url>https://github.com/lunasaw/zlm-spring-boot-starter</url>
|
||
<connection>https://github.com/lunasaw/zlm-spring-boot-starter</connection>
|
||
<developerConnection>https://github.com/lunasaw/zlm-spring-boot-starter.git</developerConnection>
|
||
</scm>
|
||
|
||
<dependencyManagement>
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>io.github.lunasaw</groupId>
|
||
<artifactId>luna-common</artifactId>
|
||
<version>${luna-common.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-dependencies</artifactId>
|
||
<version>${spring-boot.version}</version>
|
||
<type>pom</type>
|
||
<scope>import</scope>
|
||
</dependency>
|
||
</dependencies>
|
||
</dependencyManagement>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-web</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>io.github.lunasaw</groupId>
|
||
<artifactId>luna-common</artifactId>
|
||
</dependency>
|
||
|
||
<!-- OpenAPI/Swagger 依赖 -->
|
||
<dependency>
|
||
<groupId>org.springdoc</groupId>
|
||
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
||
<version>2.8.9</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springdoc</groupId>
|
||
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
|
||
<version>2.8.9</version>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
|
||
<profiles>
|
||
<profile>
|
||
<id>github_auth</id>
|
||
<distributionManagement>
|
||
<repository>
|
||
<id>github_auth</id>
|
||
<name>GitHub OWNER Apache Maven Packages</name>
|
||
<url>https://maven.pkg.github.com/lunasaw/zlm-spring-boot-starter</url>
|
||
</repository>
|
||
<snapshotRepository>
|
||
<id>github_auth</id>
|
||
<name>GitHub OWNER Apache Maven Packages</name>
|
||
<url>https://maven.pkg.github.com/lunasaw/zlm-spring-boot-starter</url>
|
||
</snapshotRepository>
|
||
</distributionManagement>
|
||
<repositories>
|
||
<repository>
|
||
<!-- id需要与上面的server对应的id匹配 -->
|
||
<id>github_auth</id>
|
||
<name>GitHub OWNER Apache Maven Packages</name>
|
||
<url>https://maven.pkg.github.com/lunasaw/zlm-spring-boot-starter</url>
|
||
<snapshots>
|
||
<enabled>true</enabled>
|
||
</snapshots>
|
||
</repository>
|
||
</repositories>
|
||
<activation>
|
||
<activeByDefault>true</activeByDefault>
|
||
</activation>
|
||
</profile>
|
||
<profile>
|
||
<id>ossrh</id>
|
||
<distributionManagement>
|
||
<repository>
|
||
<id>ossrh</id>
|
||
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url>
|
||
</repository>
|
||
<snapshotRepository>
|
||
<id>ossrh</id>
|
||
<url>https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots</url>
|
||
</snapshotRepository>
|
||
</distributionManagement>
|
||
<activation>
|
||
<activeByDefault>true</activeByDefault>
|
||
</activation>
|
||
<build>
|
||
<plugins>
|
||
<!--这是自动发布的插件-->
|
||
<plugin>
|
||
<groupId>org.sonatype.plugins</groupId>
|
||
<artifactId>nexus-staging-maven-plugin</artifactId>
|
||
<version>1.7.0</version>
|
||
<extensions>true</extensions>
|
||
<configuration>
|
||
<serverId>ossrh</serverId>
|
||
<nexusUrl>https://ossrh-staging-api.central.sonatype.com/</nexusUrl>
|
||
<!--自动释放,deploy就不需要在仓库中在操作部署了-->
|
||
<autoReleaseAfterClose>true</autoReleaseAfterClose>
|
||
<goal>deploy</goal>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-release-plugin</artifactId>
|
||
<version>3.1.1</version>
|
||
<configuration>
|
||
<autoVersionSubmodules>true</autoVersionSubmodules>
|
||
<useReleaseProfile>false</useReleaseProfile>
|
||
<!--正式包release 快照包snapshots-->
|
||
<releaseProfiles>snapshots</releaseProfiles>
|
||
<goals>deploy</goals>
|
||
</configuration>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<version>3.14.0</version>
|
||
<configuration>
|
||
<source>17</source>
|
||
<target>17</target>
|
||
<encoding>utf-8</encoding>
|
||
</configuration>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-gpg-plugin</artifactId>
|
||
<version>3.1.0</version>
|
||
<executions>
|
||
<execution>
|
||
<id>sign-artifacts</id>
|
||
<phase>verify</phase>
|
||
<goals>
|
||
<goal>sign</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
<configuration>
|
||
<gpgArguments>
|
||
<arg>--pinentry-mode</arg>
|
||
<arg>loopback</arg>
|
||
</gpgArguments>
|
||
</configuration>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-source-plugin</artifactId>
|
||
<version>3.3.0</version>
|
||
<executions>
|
||
<execution>
|
||
<id>attach-sources</id>
|
||
<goals>
|
||
<goal>jar-no-fork</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-javadoc-plugin</artifactId>
|
||
<version>2.9.1</version>
|
||
<configuration>
|
||
<!--<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>-->
|
||
<additionalparam>-Xdoclint:none</additionalparam>
|
||
<aggregate>true</aggregate>
|
||
<charset>UTF-8</charset><!-- utf-8读取文件 -->
|
||
<encoding>UTF-8</encoding><!-- utf-8进行编码代码 -->
|
||
<docencoding>UTF-8</docencoding><!-- utf-8进行编码文档 -->
|
||
<tags>
|
||
<tag>
|
||
<name>date</name>
|
||
<name>description</name>
|
||
</tag>
|
||
</tags>
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>jar</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</profile>
|
||
</profiles>
|
||
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</project> |