Skip to content

Commit

Permalink
发布1.0.2版本至maven中心仓库
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongFuCheng3y committed Mar 26, 2023
1 parent f83f2eb commit fbfd859
Show file tree
Hide file tree
Showing 9 changed files with 130 additions and 20 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
<dependency>
<groupId>io.github.ZhongFuCheng3y</groupId>
<artifactId>hades-apollo-starter</artifactId>
<version>// TODO 未发布至maven仓库</version>
<version>1.0.2</version>
</dependency>

<!--如果你用apollo,则引入该dependency-->
<dependency>
<groupId>io.github.ZhongFuCheng3y</groupId>
<artifactId>hades-nacos-starter</artifactId>
<version>// TODO 未发布至maven仓库</version>
<version>1.0.2</version>
</dependency>

```
Expand Down
2 changes: 1 addition & 1 deletion hades-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>hades</artifactId>
<groupId>io.github.ZhongFuCheng3y</groupId>
<version>1.0-SNAPSHOT</version>
<version>1.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>hades-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hades-example/hades-apollo-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>hades-example</artifactId>
<groupId>io.github.ZhongFuCheng3y</groupId>
<version>1.0-SNAPSHOT</version>
<version>1.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>hades-apollo-example</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hades-example/hades-nacos-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>hades-example</artifactId>
<groupId>io.github.ZhongFuCheng3y</groupId>
<version>1.0-SNAPSHOT</version>
<version>1.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>hades-nacos-example</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions hades-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>hades</artifactId>
<groupId>io.github.ZhongFuCheng3y</groupId>
<version>1.0-SNAPSHOT</version>
<version>1.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -25,7 +25,7 @@
<dependency>
<groupId>io.github.ZhongFuCheng3y</groupId>
<artifactId>hades-core</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.2</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down
4 changes: 2 additions & 2 deletions hades-starter/hades-apollo-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>hades-starter</artifactId>
<groupId>io.github.ZhongFuCheng3y</groupId>
<version>1.0-SNAPSHOT</version>
<version>1.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -16,7 +16,7 @@
<dependency>
<groupId>io.github.ZhongFuCheng3y</groupId>
<artifactId>hades-core</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.2</version>
</dependency>
<dependency>
<groupId>com.ctrip.framework.apollo</groupId>
Expand Down
4 changes: 2 additions & 2 deletions hades-starter/hades-nacos-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>hades-starter</artifactId>
<groupId>io.github.ZhongFuCheng3y</groupId>
<version>1.0-SNAPSHOT</version>
<version>1.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -16,7 +16,7 @@
<dependency>
<groupId>io.github.ZhongFuCheng3y</groupId>
<artifactId>hades-core</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.2</version>
</dependency>
<dependency>
<groupId>com.alibaba.boot</groupId>
Expand Down
2 changes: 1 addition & 1 deletion hades-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>hades</artifactId>
<groupId>io.github.ZhongFuCheng3y</groupId>
<version>1.0-SNAPSHOT</version>
<version>1.0.2</version>
</parent>
<packaging>pom</packaging>
<modules>
Expand Down
126 changes: 118 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>io.github.ZhongFuCheng3y</groupId>
<artifactId>hades</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<version>1.0.2</version>

<modules>
<module>hades-core</module>
Expand All @@ -22,11 +22,6 @@
<relativePath/>
</parent>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>

<dependencyManagement>
<dependencies>
<!--groovy-->
Expand Down Expand Up @@ -62,9 +57,124 @@
<artifactId>apollo-client</artifactId>
<version>2.1.0</version>
</dependency>

</dependencies>

</dependencyManagement>

<!-- license -->
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>actable</distribution>
</license>
</licenses>

<!-- scm -->
<scm>
<tag>master</tag>
<url>[email protected]:ZhongFuCheng3y/hades.git</url>
<connection>[email protected]:ZhongFuCheng3y/hades.git</connection>
<developerConnection>[email protected]:ZhongFuCheng3y/hades.git</developerConnection>
</scm>

<!-- issue -->
<issueManagement>
<system>Github Issue</system>
<url>https://github.com/ZhongFuCheng3y/hades/issues</url>
</issueManagement>

<!-- developers -->
<developers>
<developer>
<name>Fucheng Zhong</name>
<email>[email protected]</email>
<timezone>+8</timezone>
<roles>
<role>Developer</role>
</roles>
</developer>
</developers>

<distributionManagement>
<!-- 申明打包到Maven公有仓库 -->
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<profiles>
<profile>
<id>release</id>
<activation>
<!-- 默认激活此profile -->
<activeByDefault>true</activeByDefault>
</activation>

<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>


<!-- Gpg Signature -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>ossrh</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>


</project>

0 comments on commit fbfd859

Please sign in to comment.