Skip to content

Commit

Permalink
Update groovy monorepo (#1901)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [org.apache.groovy:groovy](https://groovy-lang.org)
([source](https://togithub.com/apache/groovy)) | `4.0.18` -> `4.0.19` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/org.apache.groovy:groovy/4.0.19?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.apache.groovy:groovy/4.0.19?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.apache.groovy:groovy/4.0.18/4.0.19?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.apache.groovy:groovy/4.0.18/4.0.19?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [org.codehaus.groovy:groovy](https://groovy-lang.org)
([source](https://togithub.com/apache/groovy)) | `3.0.20` -> `3.0.21` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/org.codehaus.groovy:groovy/3.0.21?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.codehaus.groovy:groovy/3.0.21?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.codehaus.groovy:groovy/3.0.20/3.0.21?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.codehaus.groovy:groovy/3.0.20/3.0.21?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/spockframework/spock).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMjAuMiIsInVwZGF0ZWRJblZlciI6IjM3LjIyMC4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Leonard Brünings <[email protected]>
  • Loading branch information
renovate[bot] and leonard84 authored Mar 5, 2024
1 parent 60d6bfb commit 540710c
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[versions]
asciidoctorj = '2.5.11'
groovy2 = '2.5.23'
groovy3 = '3.0.20'
groovy4 = '4.0.18'
groovy3 = '3.0.21'
groovy4 = '4.0.19'
jacoco = '0.8.11'
junit = '5.10.2'
asm = '9.6'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@

package org.spockframework.smoke.ast

import org.codehaus.groovy.control.CompilePhase
import org.spockframework.EmbeddedSpecification
import org.spockframework.runtime.GroovyRuntimeUtil
import org.spockframework.specs.extension.SpockSnapshotter
import spock.lang.Snapshot
import org.spockframework.util.GroovyReleaseInfo
import org.spockframework.util.VersionNumber
import spock.lang.Requires
import spock.lang.Snapshot
import spock.util.Show

import org.codehaus.groovy.control.CompilePhase

class AstSpec extends EmbeddedSpecification {
@Snapshot(extension = 'groovy')
SpockSnapshotter snapshotter
Expand Down Expand Up @@ -134,6 +133,10 @@ class Foo {
}
def "enums"() {
given:
// groovy 4 renders differently
def snapshotId = GroovyRuntimeUtil.groovy4orNewer ? "groovy4" : ""
when:
def result = compiler.transpile('''
enum Alpha {
Expand All @@ -144,7 +147,7 @@ class Foo {
})
then:
snapshotter.assertThat(result.source).matchesSnapshot()
snapshotter.assertThat(result.source).matchesSnapshot(snapshotId)
}
def "full feature exercise"() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
public final class Alpha extends java.lang.Enum<Alpha> {

public static final Alpha A
public static final Alpha B
public static final Alpha C
public static final Alpha MIN_VALUE
public static final Alpha MAX_VALUE
private static final Alpha[] $VALUES

public static final Alpha[] values() {
return $VALUES.clone()
}

public Alpha next() {
java.lang.Integer ordinal = this.ordinal() + 1
if ( ordinal >= $VALUES.length) {
return MIN_VALUE
}
return $VALUES [ ordinal ]
}

public Alpha previous() {
java.lang.Integer ordinal = this.ordinal() - 1
if ( ordinal < 0) {
return MAX_VALUE
}
return $VALUES [ ordinal ]
}

public static Alpha valueOf(java.lang.String name) {
return java.lang.Enum.valueOf(Alpha, name)
}

public static final Alpha $INIT(java.lang.Object[] para) {
return this (* para )
}

static {
A = Alpha.$INIT('A', 0)
B = Alpha.$INIT('B', 1)
C = Alpha.$INIT('C', 2)
MIN_VALUE = A
MAX_VALUE = C
$VALUES = new Alpha[]{A, B, C}
}

}

0 comments on commit 540710c

Please sign in to comment.