Skip to content

Commit 91b95c4

Browse files
authored
Add Snapshot link sample to Readme (#2252)
1 parent c30d2ab commit 91b95c4

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

README.adoc

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,24 @@ Java 12+).
3939
Releases are available from
4040
https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.spockframework%22[Maven
4141
Central]. Development snapshots are available from
42-
https://oss.sonatype.org/content/repositories/snapshots/org/spockframework/[Sonatype
43-
OSS].
42+
https://central.sonatype.com/repository/maven-snapshots/org/spockframework/spock-core/maven-metadata.xml[Sonatype
43+
Snapshot].
44+
45+
==== Snapshot Releases
46+
47+
Snapshots can be used by adding the Sonatype Snapshot repository:
48+
49+
[source,groovy,subs="attributes"]
50+
----
51+
repositories {
52+
// ...
53+
maven { url 'https://central.sonatype.com/repository/maven-snapshots/' }
54+
}
55+
56+
dependencies {
57+
testImplementation 'org.spockframework:spock-core:{spock-snapshot-version}-groovy-4.0-SNAPSHOT'
58+
}
59+
----
4460

4561
==== Ad-Hoc Intermediate Releases
4662

0 commit comments

Comments
 (0)