refresh-bean-spring-boot-starter
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.jaapool.boot</groupId> <artifactId>refresh-bean-spring-boot-starter</artifactId> <version>3.1.0</version> </dependency>
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.jaapool.boot</groupId> <artifactId>refresh-bean-spring-boot-starter</artifactId> <version>3.1.0</version> <!--Maven相关信息配置--> <name>refresh-bean-spring-boot-starter</name> <description>refresh-bean-spring-boot-starter</description> <url>https://gitee.com/jaapool/refresh-bean-parent</url> <!--Issue 配置--> <issueManagement> <system>Gitee Issue</system> <url>https://gitee.com/jaapool/refresh-bean-parent/issues</url> </issueManagement> <!--Licenses配置--> <licenses> <license> <name>The Apache Software License, Version 2.0</name> <url>https://apache.org/licenses/LICENSE-2.0.txt</url> </license> </licenses> <!--开发人员信息配置--> <developers> <developer> <name>Jiandev</name> <email>jiandev@vip.qq.com</email> <timezone>+8</timezone> </developer> </developers> <!--scm信息配置--> <scm> <url>https://gitee.com/jaapool/refresh-bean-parent</url> <connection>scm:git:https://gitee.com/jaapool/refresh-bean-parent.git</connection> <developerConnection>scm:git:https://gitee.com/jaapool/refresh-bean-parent.git</developerConnection> </scm> <properties> <serverId>central</serverId> <java.version>17</java.version> <maven.compiler.source>17</maven.compiler.source> <maven.compiler.target>17</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <spring.boot.version>3.4.5</spring.boot.version> <spring.cloud.version>4.1.1</spring.cloud.version> <kotlin.version>2.1.20</kotlin.version> <kotlin-logging.version>7.0.7</kotlin-logging.version> </properties> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-context</artifactId> <version>${spring.cloud.version}</version> <optional>true</optional> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-logging</artifactId> <version>${spring.boot.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-autoconfigure</artifactId> <version>${spring.boot.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> <version>${spring.boot.version}</version> <optional>true</optional> </dependency> <dependency> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-stdlib</artifactId> <version>${kotlin.version}</version> </dependency> <dependency> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-test</artifactId> <version>${kotlin.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>io.github.oshai</groupId> <artifactId>kotlin-logging-jvm</artifactId> <version>${kotlin-logging.version}</version> </dependency> </dependencies> <distributionManagement> <snapshotRepository> <id>${serverId}</id> <url>https://central.sonatype.com/</url> </snapshotRepository> </distributionManagement> <build> <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory> <plugins> <plugin> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-maven-plugin</artifactId> <version>${kotlin.version}</version> <executions> <execution> <id>compile</id> <goals> <goal>compile</goal> </goals> </execution> <execution> <id>test-compile</id> <goals> <goal>test-compile</goal> </goals> </execution> </executions> <configuration> <jvmTarget>${maven.compiler.target}</jvmTarget> </configuration> </plugin> <!-- Source --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.3.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <!-- Dokka Kotlin文档生成 --> <plugin> <groupId>org.jetbrains.dokka</groupId> <artifactId>dokka-maven-plugin</artifactId> <version>1.9.20</version> <executions> <execution> <!-- 确保在打包前生成文档 --> <phase>prepare-package</phase> <goals> <!-- 输出格式可选设为 dokka javadoc javadocJar --> <goal>dokka</goal> </goals> </execution> </executions> <configuration> <outputDir>${project.build.directory}/documentation/dokka</outputDir> <sourceDirectories> <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory> </sourceDirectories> </configuration> </plugin> <!-- Dokka 打包成javadoc.jar --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.3.0</version> <executions> <execution> <id>attach-dokka-javadoc</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> <configuration> <!-- 分类器必须为 javadoc --> <classifier>javadoc</classifier> <classesDirectory>${project.build.directory}/documentation/dokka</classesDirectory> <skipIfEmpty>true</skipIfEmpty> </configuration> </execution> </executions> </plugin> <!-- GPG --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.6</version> <executions> <execution> <phase>verify</phase> <goals> <goal>sign</goal> </goals> <configuration> <gpgArguments> <!--表示密码直接输入,不需要弹出密码框--> <arg>--pinentry-mode</arg> <arg>loopback</arg> </gpgArguments> </configuration> </execution> </executions> </plugin> <!-- 新方式的配置,将组件部署到OSSRH并将其发布到Central Repository--> <plugin> <groupId>org.sonatype.central</groupId> <artifactId>central-publishing-maven-plugin</artifactId> <version>0.7.0</version> <extensions>true</extensions> <configuration> <publishingServerId>${serverId}</publishingServerId> <autoPublish>true</autoPublish> </configuration> </plugin> </plugins> </build> </project>