Skip to content

Commit c06e2b6

Browse files
committed
feat!: jvmArgs, programArgs, fix idea
BREAKING CHANGE: task `debugPaper` renamed to `debug$MODULE_NAME`, type Exec -> Task
1 parent afa1c75 commit c06e2b6

10 files changed

Lines changed: 149 additions & 98 deletions

File tree

README.md

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ An intelligent Gradle plugin used to develop plugins for Spigot, Bungeecord and
1414

1515
[comment]: <> (!! Do not edit this file but 'docs/templates' or 'docs/root-templates', See [CONTRIBUTING.md] !!)
1616

17-
- [Description file](https://docs.typst.io/spigradle/3.2.2/spigradle/io.typst.spigradle.spigot/-spigot-extension/index.html)
17+
- [Description file](https://docs.typst.io/spigradle/3.3.0/spigradle/io.typst.spigradle.spigot/-spigot-extension/index.html)
1818
generation: `plugin.yml` and/or `bungee.yml`
1919

2020
- Main class detection
@@ -26,7 +26,7 @@ An intelligent Gradle plugin used to develop plugins for Spigot, Bungeecord and
2626
```groovy
2727
plugins {
2828
id 'java'
29-
id 'io.typst.spigradle' version '3.2.2'
29+
id 'io.typst.spigradle' version '3.3.0'
3030
}
3131
3232
group 'org.sample'
@@ -35,10 +35,11 @@ version '1.0.0'
3535
repositories {
3636
mavenCentral()
3737
spigotmc()
38+
papermc()
3839
}
3940
4041
dependencies {
41-
compileOnly spigot('1.21.8')
42+
compileOnly paper('1.21.8') // or spigot('1.21.8')
4243
}
4344
4445
spigot {
@@ -101,16 +102,17 @@ Groovy DSL
101102
```groovy
102103
plugins {
103104
id 'java'
104-
id 'io.typst.spigradle' version '3.2.2'
105+
id 'io.typst.spigradle' version '3.3.0'
105106
}
106107
107108
repositories {
108109
mavenCentral()
109110
spigotmc()
111+
papermc()
110112
}
111113
112114
dependencies {
113-
compileOnly spigot('1.21.8')
115+
compileOnly paper('1.21.8') // or spigot('1.21.8')
114116
}
115117
116118
spigot {
@@ -137,17 +139,18 @@ import io.typst.spigradle.spigot.*
137139

138140
plugins {
139141
kotlin("jvm") version "2.1.20"
140-
id("io.typst.spigradle") version "3.2.2"
142+
id("io.typst.spigradle") version "3.3.0"
141143
}
142144

143145
repositories {
144146
mavenCentral()
145147
spigotmc()
148+
papermc()
146149
}
147150

148151
dependencies {
149152
implementation(kotlin("stdlib"))
150-
compileOnly(spigot("1.21.8"))
153+
compileOnly(paper("1.21.8"))
151154
}
152155

153156
spigot {
@@ -178,7 +181,7 @@ buildscript {
178181
gradlePluginPortal()
179182
}
180183
dependencies {
181-
classpath 'io.typst:spigradle:3.2.2'
184+
classpath 'io.typst:spigradle:3.3.0'
182185
}
183186
}
184187
@@ -196,7 +199,7 @@ buildscript {
196199
gradlePluginPortal()
197200
}
198201
dependencies {
199-
classpath("io.typst:spigradle:3.2.2")
202+
classpath("io.typst:spigradle:3.3.0")
200203
}
201204
}
202205
@@ -223,7 +226,7 @@ Groovy DSL
223226
```groovy
224227
plugins {
225228
id 'java'
226-
id 'io.typst.spigradle.bungee' version '3.2.2'
229+
id 'io.typst.spigradle.bungee' version '3.3.0'
227230
}
228231
229232
repositories {
@@ -241,7 +244,7 @@ dependencies {
241244
```kotlin
242245
plugins {
243246
kotlin("jvm") version "2.1.20"
244-
id("io.typst.spigradle.bungee") version "3.2.2"
247+
id("io.typst.spigradle.bungee") version "3.3.0"
245248
}
246249

247250
repositories {
@@ -265,7 +268,7 @@ buildscript {
265268
gradlePluginPortal()
266269
}
267270
dependencies {
268-
classpath 'io.typst:spigradle:3.2.2'
271+
classpath 'io.typst:spigradle:3.3.0'
269272
}
270273
}
271274
@@ -283,7 +286,7 @@ buildscript {
283286
gradlePluginPortal()
284287
}
285288
dependencies {
286-
classpath("io.typst:spigradle:3.2.2")
289+
classpath("io.typst:spigradle:3.3.0")
287290
}
288291
}
289292
@@ -310,7 +313,7 @@ Groovy DSL
310313
```groovy
311314
plugins {
312315
id 'java'
313-
id 'io.typst.spigradle.nukkit' version '3.2.2'
316+
id 'io.typst.spigradle.nukkit' version '3.3.0'
314317
}
315318
316319
repositories {
@@ -328,7 +331,7 @@ dependencies {
328331
```kotlin
329332
plugins {
330333
kotlin("jvm") version "2.1.20"
331-
id("io.typst.spigradle.nukkit") version "3.2.2"
334+
id("io.typst.spigradle.nukkit") version "3.3.0"
332335
}
333336

334337
repositories {
@@ -352,7 +355,7 @@ buildscript {
352355
gradlePluginPortal()
353356
}
354357
dependencies {
355-
classpath 'io.typst:spigradle:3.2.2'
358+
classpath 'io.typst:spigradle:3.3.0'
356359
}
357360
}
358361
@@ -370,7 +373,7 @@ buildscript {
370373
gradlePluginPortal()
371374
}
372375
dependencies {
373-
classpath("io.typst:spigradle:3.2.2")
376+
classpath("io.typst:spigradle:3.3.0")
374377
}
375378
}
376379
@@ -445,7 +448,7 @@ repositories {
445448
| bukkit() | org.bukkit:bukkit:$version | 1.21.8-R0.1-SNAPSHOT | mavenLocal(), BuildTools |
446449
| craftbukkit() | org.bukkit:craftbukkit:$version | 1.21.8-R0.1-SNAPSHOT | mavenLocal(), BuildTools |
447450
| lombok() | org.projectlombok:lombok:$version | 1.18.38 | mavenCentral() |
448-
| spigradle() | io.typst:spigradle:$version | 3.2.2 | mavenCentral() |
451+
| spigradle() | io.typst:spigradle:$version | 3.3.0 | mavenCentral() |
449452
| protocolLib() | com.comphenix.protocol:ProtocolLib:$version | 5.3.0 | protocolLib() |
450453
| vault() | com.github.MilkBowl:VaultAPI:$version | 1.7 | jitpack() |
451454
| vaultAll() | com.github.MilkBowl:Vault:$version | 1.7.3 | jitpack() |

docs/bungeecord_plugin.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ Groovy DSL
4848

4949
```groovy
5050
plugins {
51-
id 'io.typst.spigradle.bungee' version '3.2.2'
51+
id 'io.typst.spigradle.bungee' version '3.3.0'
5252
}
5353
```
5454
Kotlin DSL
5555

5656
```kotlin
5757
plugins {
58-
id("io.typst.spigradle.bungee") version "3.2.2"
58+
id("io.typst.spigradle.bungee") version "3.3.0"
5959
}
6060
```
6161

@@ -68,7 +68,7 @@ buildscript {
6868
gradlePluginPortal()
6969
}
7070
dependencies {
71-
classpath 'io.typst:spigradle:3.2.2'
71+
classpath 'io.typst:spigradle:3.3.0'
7272
}
7373
}
7474
@@ -86,7 +86,7 @@ buildscript {
8686
gradlePluginPortal()
8787
}
8888
dependencies {
89-
classpath("io.typst:spigradle:3.2.2")
89+
classpath("io.typst:spigradle:3.3.0")
9090
}
9191
}
9292
@@ -122,7 +122,7 @@ public class SamplePlugin extends Plugin { }
122122

123123
[comment]: <> (!! Do not edit this file but 'docs/templates' or 'docs/root-templates', See [CONTRIBUTING.md] !!)
124124

125-
### bungee - [BungeeExtension](https://docs.typst.io/spigradle/3.2.2/spigradle/io.typst.spigradle.bungee/-bungee-extension/index.html)
125+
### bungee - [BungeeExtension](https://docs.typst.io/spigradle/3.3.0/spigradle/io.typst.spigradle.bungee/-bungee-extension/index.html)
126126

127127
[comment]: <> (!! Do not edit this file but 'docs/templates' or 'docs/root-templates', See [CONTRIBUTING.md] !!)
128128

@@ -216,13 +216,13 @@ tasks {
216216

217217
</details>
218218

219-
### detectBungeeMain - [SubclassDetection](https://docs.typst.io/spigradle/3.2.2/spigradle/io.typst.spigradle/-subclass-detection/index.html)
219+
### detectBungeeMain - [SubclassDetection](https://docs.typst.io/spigradle/3.3.0/spigradle/io.typst.spigradle/-subclass-detection/index.html)
220220

221221
[comment]: <> (!! Do not edit this file but 'docs/templates' or 'docs/root-templates', See [CONTRIBUTING.md] !!)
222222

223223
Finds the main class extends [net.md_5.bungee.api.plugin.Plugin](https://ci.md-5.net/job/BungeeCord/ws/api/target/apidocs/net/md_5/bungee/api/plugin/Plugin.html).
224224

225-
### generateBungeeDescription - [YamlGenerate](https://docs.typst.io/spigradle/3.2.2/spigradle/io.typst.spigradle/-yaml-generate/index.html)
225+
### generateBungeeDescription - [YamlGenerate](https://docs.typst.io/spigradle/3.3.0/spigradle/io.typst.spigradle/-yaml-generate/index.html)
226226

227227
[comment]: <> (!! Do not edit this file but 'docs/templates' or 'docs/root-templates', See [CONTRIBUTING.md] !!)
228228

docs/nukkit_plugin.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ Groovy DSL
4848

4949
```groovy
5050
plugins {
51-
id 'io.typst.spigradle.nukkit' version '3.2.2'
51+
id 'io.typst.spigradle.nukkit' version '3.3.0'
5252
}
5353
```
5454
Kotlin DSL
5555

5656
```kotlin
5757
plugins {
58-
id("io.typst.spigradle.nukkit") version "3.2.2"
58+
id("io.typst.spigradle.nukkit") version "3.3.0"
5959
}
6060
```
6161

@@ -68,7 +68,7 @@ buildscript {
6868
gradlePluginPortal()
6969
}
7070
dependencies {
71-
classpath 'io.typst:spigradle:3.2.2'
71+
classpath 'io.typst:spigradle:3.3.0'
7272
}
7373
}
7474
@@ -86,7 +86,7 @@ buildscript {
8686
gradlePluginPortal()
8787
}
8888
dependencies {
89-
classpath("io.typst:spigradle:3.2.2")
89+
classpath("io.typst:spigradle:3.3.0")
9090
}
9191
}
9292
@@ -122,7 +122,7 @@ public class SamplePlugin extends PluginBase { }
122122

123123
[comment]: <> (!! Do not edit this file but 'docs/templates' or 'docs/root-templates', See [CONTRIBUTING.md] !!)
124124

125-
### nukkit - [NukkitExtension](https://docs.typst.io/spigradle/3.2.2/spigradle/io.typst.spigradle.nukkit/-nukkit-extension/index.html)
125+
### nukkit - [NukkitExtension](https://docs.typst.io/spigradle/3.3.0/spigradle/io.typst.spigradle.nukkit/-nukkit-extension/index.html)
126126

127127
[comment]: <> (!! Do not edit this file but 'docs/templates' or 'docs/root-templates', See [CONTRIBUTING.md] !!)
128128

@@ -257,13 +257,13 @@ tasks {
257257

258258
</details>
259259

260-
### detectNukkitMain - [SubclassDetection](https://docs.typst.io/spigradle/3.2.2/spigradle/io.typst.spigradle/-subclass-detection/index.html)
260+
### detectNukkitMain - [SubclassDetection](https://docs.typst.io/spigradle/3.3.0/spigradle/io.typst.spigradle/-subclass-detection/index.html)
261261

262262
[comment]: <> (!! Do not edit this file but 'docs/templates' or 'docs/root-templates', See [CONTRIBUTING.md] !!)
263263

264264
Finds the main class extends [cn.nukkit.plugin.PluginBase](https://ci.nukkitx.com/job/NukkitX/job/Nukkit/job/master/javadoc/index.html?overview-summary.html).
265265

266-
### generateNukkitDescription - [YamlGenerate](https://docs.typst.io/spigradle/3.2.2/spigradle/io.typst.spigradle/-yaml-generate/index.html)
266+
### generateNukkitDescription - [YamlGenerate](https://docs.typst.io/spigradle/3.3.0/spigradle/io.typst.spigradle/-yaml-generate/index.html)
267267

268268
[comment]: <> (!! Do not edit this file but 'docs/templates' or 'docs/root-templates', See [CONTRIBUTING.md] !!)
269269

docs/root-templates/template_README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ version '1.0.0'
3131
repositories {
3232
mavenCentral()
3333
spigotmc()
34+
papermc()
3435
}
3536
3637
dependencies {
37-
compileOnly spigot('1.21.8')
38+
compileOnly paper('1.21.8') // or spigot('1.21.8')
3839
}
3940
4041
spigot {
@@ -95,10 +96,11 @@ plugins {
9596
repositories {
9697
mavenCentral()
9798
spigotmc()
99+
papermc()
98100
}
99101
100102
dependencies {
101-
compileOnly spigot('1.21.8')
103+
compileOnly paper('1.21.8') // or spigot('1.21.8')
102104
}
103105
104106
spigot {
@@ -131,11 +133,12 @@ plugins {
131133
repositories {
132134
mavenCentral()
133135
spigotmc()
136+
papermc()
134137
}
135138

136139
dependencies {
137140
implementation(kotlin("stdlib"))
138-
compileOnly(spigot("1.21.8"))
141+
compileOnly(paper("1.21.8"))
139142
}
140143

141144
spigot {

docs/spigot_plugin.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ Groovy DSL
5656

5757
```groovy
5858
plugins {
59-
id 'io.typst.spigradle' version '3.2.2'
59+
id 'io.typst.spigradle' version '3.3.0'
6060
}
6161
```
6262
Kotlin DSL
6363

6464
```kotlin
6565
plugins {
66-
id("io.typst.spigradle") version "3.2.2"
66+
id("io.typst.spigradle") version "3.3.0"
6767
}
6868
```
6969

@@ -76,7 +76,7 @@ buildscript {
7676
gradlePluginPortal()
7777
}
7878
dependencies {
79-
classpath 'io.typst:spigradle:3.2.2'
79+
classpath 'io.typst:spigradle:3.3.0'
8080
}
8181
}
8282
@@ -94,7 +94,7 @@ buildscript {
9494
gradlePluginPortal()
9595
}
9696
dependencies {
97-
classpath("io.typst:spigradle:3.2.2")
97+
classpath("io.typst:spigradle:3.3.0")
9898
}
9999
}
100100
@@ -135,7 +135,7 @@ class SamplePlugin : JavaPlugin()
135135

136136
[comment]: <> (!! Do not edit this file but 'docs/templates' or 'docs/root-templates', See [CONTRIBUTING.md] !!)
137137

138-
### spigot - [SpigotExtension](https://docs.typst.io/spigradle/3.2.2/spigradle/io.typst.spigradle.spigot/-spigot-extension/index.html)
138+
### spigot - [SpigotExtension](https://docs.typst.io/spigradle/3.3.0/spigradle/io.typst.spigradle.spigot/-spigot-extension/index.html)
139139

140140
[comment]: <> (!! Do not edit this file but 'docs/templates' or 'docs/root-templates', See [CONTRIBUTING.md] !!)
141141

@@ -224,7 +224,7 @@ configure<SpigotExtension> {
224224

225225
</details>
226226

227-
### debugSpigot - [DebugExtension](https://docs.typst.io/spigradle/3.2.2/spigradle/io.typst.spigradle.debug/-debug-extension/index.html)
227+
### debugSpigot - [DebugExtension](https://docs.typst.io/spigradle/3.3.0/spigradle/io.typst.spigradle.debug/-debug-extension/index.html)
228228

229229
[comment]: <> (!! Do not edit this file but 'docs/templates' or 'docs/root-templates', See [CONTRIBUTING.md] !!)
230230

@@ -243,13 +243,13 @@ debugSpigot {
243243

244244
All tasks supports [UP-TO-DATE check](https://docs.gradle.org/current/userguide/more_about_tasks.html#sec:up_to_date_checks).
245245

246-
### detectSpigotMain - [SubclassDetection](https://docs.typst.io/spigradle/3.2.2/spigradle/io.typst.spigradle/-subclass-detection/index.html)
246+
### detectSpigotMain - [SubclassDetection](https://docs.typst.io/spigradle/3.3.0/spigradle/io.typst.spigradle/-subclass-detection/index.html)
247247

248248
[comment]: <> (!! Do not edit this file but 'docs/templates' or 'docs/root-templates', See [CONTRIBUTING.md] !!)
249249

250250
Finds the main class extends [org.bukkit.plugin.java.JavaPlugin](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/plugin/java/JavaPlugin.html).
251251

252-
### generateSpigotDescription - [YamlGenerate](https://docs.typst.io/spigradle/3.2.2/spigradle/io.typst.spigradle/-yaml-generate/index.html)
252+
### generateSpigotDescription - [YamlGenerate](https://docs.typst.io/spigradle/3.3.0/spigradle/io.typst.spigradle/-yaml-generate/index.html)
253253

254254
[comment]: <> (!! Do not edit this file but 'docs/templates' or 'docs/root-templates', See [CONTRIBUTING.md] !!)
255255

0 commit comments

Comments
 (0)