|
1 | 1 | # JDevKit |
| 2 | + |
2 | 3 | JDevKit is a Java Development Kit that offers a set of convenient tools for writing code efficiently. |
3 | 4 |
|
4 | 5 | ## Modules |
@@ -55,25 +56,66 @@ A Simple JWT implementation using the `io.jsonwebtoken:jjwt-api` library. |
55 | 56 |
|
56 | 57 | <span style="font-size: 14px;">_[Learn more](https://github.com/CodeCraftersCN/jdevkit/simple-jwt-spring-boot-starter/README.md)_</span> |
57 | 58 |
|
58 | | -A Spring Boot auto-configuration wrapper for the simple-jwt module, making it easier to integrate JWT functionality into Spring Boot applications. |
| 59 | +A Spring Boot autoconfiguration wrapper for the simple-jwt module, making it easier to integrate JWT functionality into Spring Boot applications. |
59 | 60 |
|
60 | 61 | ## Installation and Usage |
61 | | -If you are using `maven`, please paste the following codes to `pom.xml` in your project. |
| 62 | + |
| 63 | +### Before Installation |
| 64 | + |
| 65 | +For **Chinese Mainland** users, it is suggested to use maven packages services provided by coding.net. |
| 66 | + |
| 67 | +You could follow the following steps to configure. |
| 68 | + |
| 69 | +#### For Maven |
| 70 | + |
| 71 | +You could add the following codes to register Coding Nexus to your Maven. |
| 72 | + |
| 73 | +```xml |
| 74 | +<repository> |
| 75 | + <id>codecrafters-coding-nexus</id> |
| 76 | + <name>codecrafters-coding-nexus</name> |
| 77 | + <url>https://codecrafters-maven.pkg.coding.net/repository/common-productions/maven-packages/</url> |
| 78 | + <releases> |
| 79 | + <enabled>true</enabled> |
| 80 | + </releases> |
| 81 | + <snapshots> |
| 82 | + <enabled>true</enabled> |
| 83 | + </snapshots> |
| 84 | +</repository> |
| 85 | +``` |
| 86 | + |
| 87 | +#### For Gradle |
| 88 | + |
| 89 | +You could add a new repository to Gradle repositories closure. |
| 90 | + |
| 91 | +```groovy |
| 92 | +maven { url 'https://codecrafters-maven.pkg.coding.net/repository/common-productions/maven-packages/' } |
| 93 | +``` |
| 94 | + |
| 95 | +```kotlin |
| 96 | +maven(url = "https://codecrafters-maven.pkg.coding.net/repository/common-productions/maven-packages/") |
| 97 | +``` |
| 98 | + |
| 99 | +If you are using **Maven**, please paste the following codes to _pom.xml_ in your project. |
62 | 100 |
|
63 | 101 | ```xml |
64 | 102 | <dependency> |
65 | | - <groupId>cn.org.codecrafters</groupId> |
| 103 | + <groupId>cn.org.codecrafters</groupId> |
66 | 104 | <artifactId>${artifactId}</artifactId> |
67 | 105 | <version>${version}</version> |
68 | 106 | </dependency> |
69 | 107 | ``` |
70 | 108 |
|
71 | | -If you are using `gradle`, please paste the following codes to `buile.gradle` in your project. |
| 109 | +If you are using **Gradle**, please paste the following codes to _buile.gradle\[.kts\]_ in your project. |
72 | 110 |
|
73 | 111 | ```groovy |
74 | 112 | implementation 'cn.org.codecrafters:$artifactId:$version' |
75 | 113 | ``` |
76 | 114 |
|
| 115 | +```kotlin |
| 116 | +implementation("cn.org.codecrafters:$artifactId:$version") |
| 117 | +``` |
| 118 | + |
77 | 119 | If you want to check the available versions, please check out at our [official site](https://codecrafters.org.cn/devkit/changelog). |
78 | 120 |
|
79 | 121 | ## Contribution |
|
0 commit comments