Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
blueokanna committed Nov 7, 2023
1 parent 482bcf9 commit c1c3e40
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,18 @@
</dependency>
```

**Java Gradle** 调用本次项目的库:
```java
implementation group: 'top.pulselink.java', name: 'customjwt', version: '1.0.0'
```

**Java ivy** 调用本次项目的库:
```java
<dependency org="top.pulselink.java" name="customjwt" rev="1.0.0"/>
```

### 使用 Java-CustomJWT 库
使用 `CustomJWT jwt = new CustomJWT()` 初始化这个库,配置声明等。
使用 **`CustomJWT jwt = new CustomJWT()`** 初始化这个库,配置声明等。

下面的示例使用各种支持的签名算法:

Expand Down
20 changes: 9 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,8 @@
<artifactId>bcprov-jdk18on</artifactId>
<version>1.76</version>
</dependency>

</dependencies>
<distributionManagement>
<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>

<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -118,4 +108,12 @@
<maven.compiler.target>17</maven.compiler.target>
<exec.mainClass>top.pulselink.java.customjwt.CustomJWT</exec.mainClass>
</properties>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub blueokanna Apache Maven Packages</name>
<url>https://maven.pkg.github.com/blueokanna/CustomJWT/</url>
</repository>
</distributionManagement>
</project>

0 comments on commit c1c3e40

Please sign in to comment.