@@ -17,50 +17,110 @@ This guide gets a working JSON-RPC endpoint up quickly and provides the shortest
1717
1818### 3.1 Spring Boot starter
1919
20+ Replace ` latest-version ` with the release you want to use.
21+
2022Maven:
2123
2224``` xml
25+ <properties >
26+ <jsonrpc .version>latest-version</jsonrpc .version>
27+ </properties >
28+
2329<dependency >
2430 <groupId >io.github.limehee</groupId >
2531 <artifactId >jsonrpc-spring-boot-starter</artifactId >
26- <version >0.1.0 </version >
32+ <version >${jsonrpc.version} </version >
2733</dependency >
2834```
2935
3036Gradle (Kotlin DSL):
3137
3238``` kotlin
33- implementation(" io.github.limehee:jsonrpc-spring-boot-starter:0.1.0" )
39+ val jsonrpcVersion = " latest-version"
40+
41+ dependencies {
42+ implementation(" io.github.limehee:jsonrpc-spring-boot-starter:$jsonrpcVersion " )
43+ }
3444```
3545
3646Gradle (Groovy DSL):
3747
3848``` groovy
39- implementation 'io.github.limehee:jsonrpc-spring-boot-starter:0.1.0'
49+ def jsonrpcVersion = "latest-version"
50+
51+ dependencies {
52+ implementation "io.github.limehee:jsonrpc-spring-boot-starter:${jsonrpcVersion}"
53+ }
54+ ```
55+
56+ Gradle Version Catalog (` libs.versions.toml ` ):
57+
58+ ``` toml
59+ [versions ]
60+ jsonrpc = " latest-version"
61+
62+ [libraries ]
63+ jsonrpc-spring-boot-starter = { module = " io.github.limehee:jsonrpc-spring-boot-starter" , version.ref = " jsonrpc" }
64+ ```
65+
66+ ``` kotlin
67+ dependencies {
68+ implementation(libs.jsonrpc.spring.boot.starter)
69+ }
4070```
4171
4272### 3.2 Core only (pure Java)
4373
74+ Replace ` latest-version ` with the release you want to use.
75+
4476Maven:
4577
4678``` xml
79+ <properties >
80+ <jsonrpc .version>latest-version</jsonrpc .version>
81+ </properties >
82+
4783<dependency >
4884 <groupId >io.github.limehee</groupId >
4985 <artifactId >jsonrpc-core</artifactId >
50- <version >0.1.0 </version >
86+ <version >${jsonrpc.version} </version >
5187</dependency >
5288```
5389
5490Gradle (Kotlin DSL):
5591
5692``` kotlin
57- implementation(" io.github.limehee:jsonrpc-core:0.1.0" )
93+ val jsonrpcVersion = " latest-version"
94+
95+ dependencies {
96+ implementation(" io.github.limehee:jsonrpc-core:$jsonrpcVersion " )
97+ }
5898```
5999
60100Gradle (Groovy DSL):
61101
62102``` groovy
63- implementation 'io.github.limehee:jsonrpc-core:0.1.0'
103+ def jsonrpcVersion = "latest-version"
104+
105+ dependencies {
106+ implementation "io.github.limehee:jsonrpc-core:${jsonrpcVersion}"
107+ }
108+ ```
109+
110+ Gradle Version Catalog (` libs.versions.toml ` ):
111+
112+ ``` toml
113+ [versions ]
114+ jsonrpc = " latest-version"
115+
116+ [libraries ]
117+ jsonrpc-core = { module = " io.github.limehee:jsonrpc-core" , version.ref = " jsonrpc" }
118+ ```
119+
120+ ``` kotlin
121+ dependencies {
122+ implementation(libs.jsonrpc.core)
123+ }
64124```
65125
66126## 4. Spring Boot Minimal Example
0 commit comments