Skip to content

Commit 78f27ad

Browse files
fvarruiclaude
andcommitted
Update the snapshot how-to of the issue-update skill
Gradle plugins block with pluginManagement instead of buildscript and apply plugin, and links to the docs site. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 0fb875d commit 78f27ad

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

‎.claude/skills/issue-update/snapshot-howto.md‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
**How to test `{{VERSION}}`**
22

33
> [!IMPORTANT]
4-
> Since 2.0.0 the `groupId`, the Gradle plugin id and the Java packages are `io.github.javapackager` (see the [README in `devel`](https://github.com/javapackager/JavaPackager/blob/devel/README.md)). On macOS, `macStartup` defaults to `UNIVERSAL`.
4+
> Since 2.0.0 the `groupId`, the Gradle plugin id and the Java packages are `io.github.javapackager` (see [Upgrading to 2.0](https://javapackager.github.io/JavaPackager/getting-started/upgrading)).
55
6-
Maven, add the snapshots repository and use the new coordinates:
6+
Maven, add the snapshots repository and use the snapshot version:
77

88
```xml
99
<pluginRepositories>
@@ -23,23 +23,23 @@ Maven, add the snapshots repository and use the new coordinates:
2323
</plugin>
2424
```
2525

26-
Gradle:
26+
Gradle, add the snapshots repository in `settings.gradle`:
2727

2828
```groovy
29-
buildscript {
29+
pluginManagement {
3030
repositories {
3131
maven { url = 'https://central.sonatype.com/repository/maven-snapshots/' }
32-
mavenCentral()
3332
gradlePluginPortal()
3433
}
35-
dependencies {
36-
classpath 'io.github.javapackager:javapackager:{{VERSION}}'
37-
}
3834
}
35+
```
3936

40-
apply plugin: 'io.github.javapackager'
37+
and use the snapshot version in `build.gradle`:
4138

42-
task packageMyApp(type: io.github.javapackager.gradle.PackageTask, dependsOn: build) {
43-
[...]
39+
```groovy
40+
plugins {
41+
id 'io.github.javapackager' version '{{VERSION}}'
4442
}
4543
```
44+
45+
See [Snapshot versions](https://javapackager.github.io/JavaPackager/guides/snapshots) for more.

0 commit comments

Comments
 (0)