Renovate updates
<dependency>
<groupId>org.spockframework</groupId>
<artifactId>spock-core</artifactId>
<version>2.4-M1-groovy-4.0</version>
<scope>test</scope>
</dependency>
to
<dependency>
<groupId>org.spockframework</groupId>
<artifactId>spock-core</artifactId>
<version>2.4-groovy-4.0-SNAPSHOT</version>
<scope>test</scope>
</dependency>
which is not what we want. SNAPSHOT-versions should be skipped.
I played around with the solution from Exclude version pattern from renovate but couldn't get it to work.
Both of these do not work
"packageRules": [
{
"matchPackagePrefixes": ["org.spockframework"],
"allowedVersions": "!/\\-snapshot$/"
}
]
and
"packageRules": [
{
"matchPackageNames": ["org.spockframework:spock-core", "org.spockframework:spock-spring"],
"allowedVersions": "!/\\-snapshot$/"
}
]
Before trying further - what would be the right way of doing it?
Does the regex need to be a full match? Is it case-sensitive?