Skip to content

Commit a30ff29

Browse files
committed
Revert "Update dependency com.sun.xml.bind:jaxb-impl to v2.3.8 (#12858)"
This reverts commit 3a1d6d1.
1 parent 3a1d6d1 commit a30ff29

20 files changed

+20
-378
lines changed

.github/workflows/gradle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
strategy:
2626
matrix:
27-
java: ['11', '14']
27+
java: ['8', '11', '14']
2828
env:
2929
WORKSPACE: ${{ github.workspace }}
3030
GRADLE_OPTS: -Xmx1500m -Dfile.encoding=UTF-8

.github/workflows/groovy-joint-workflow.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ jobs:
4848
run: env
4949

5050
# Select correct Groovy branch for this build:
51-
- name: Checkout Groovy 3_0_X (Grails 5 and later)
51+
- name: Checkout Groovy 3_0_X (Grails 5)
5252
run: cd .. && git clone --depth 1 https://github.com/apache/groovy.git -b GROOVY_3_0_X --single-branch
53-
if: github.ref == 'refs/heads/6.0.x' || github.base_ref == '6.0.x' || github.ref == 'refs/heads/5.3.x' || github.base_ref == '5.3.x' || github.ref == 'refs/heads/5.2.x' || github.base_ref == '5.2.x' || github.ref == 'refs/heads/5.1.x' || github.base_ref == '5.1.x' || github.ref == 'refs/heads/5.0.x' || github.base_ref == '5.0.x' || github.ref == 'refs/heads/master' || github.base_ref == 'master'
54-
- name: Checkout Groovy 2_5_X (Grails 4.0.x)
53+
if: github.ref == 'refs/heads/5.3.x' || github.base_ref == '5.3.x' || github.ref == 'refs/heads/5.2.x' || github.base_ref == '5.2.x' || github.ref == 'refs/heads/5.1.x' || github.base_ref == '5.1.x' || github.ref == 'refs/heads/5.0.x' || github.base_ref == '5.0.x' || github.ref == 'refs/heads/master' || github.base_ref == 'master'
54+
- name: Checkout Groovy 2_5_X (Grails 4)
5555
run: cd .. && git clone --depth 1 https://github.com/grails/grails-core.git -b GROOVY_2_5_X --single-branch
5656
if: github.ref == 'refs/heads/4.1.x' || github.base_ref == '4.1.x' || github.ref == 'refs/heads/4.0.x' || github.base_ref == '4.0.x'
5757
- name: Set CI_GROOVY_VERSION for Grails

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
java: ['11']
15+
java: ['8']
1616
env:
1717
GIT_USER_NAME: puneetbehl
1818
GIT_USER_EMAIL: [email protected]

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@ subprojects { project ->
417417
if(project.name == 'grails-dependencies') return
418418
if(project.name == 'grails-bom') return
419419

420-
sourceCompatibility = "1.11"
421-
targetCompatibility = "1.11"
420+
sourceCompatibility = "1.8"
421+
targetCompatibility = "1.8"
422422

423423
if(project.name =~ /^(grails-web|grails-plugin-|grails-test-suite|grails-test)/) {
424424
dependencies {

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
projectVersion=6.0.0-SNAPSHOT
1+
projectVersion=5.3.3-SNAPSHOT
22
antVersion=1.10.13
33
aspectjVersion=1.9.19
44
asyncVersion=4.0.0
@@ -20,7 +20,7 @@ jakartaAnnotationApiVersion=2.0.0
2020
jansiVersion=1.18
2121
javaParserCoreVersion=3.15.14
2222
javaxAnnotationApiVersion=1.3.2
23-
jaxbVersion=2.3.8
23+
jaxbVersion=2.3.1
2424
jlineVersion=2.14.6
2525
jnaVersion=5.13.0
2626
junitVersion=4.13.2

grails-bootstrap/src/main/groovy/org/grails/io/support/MainClassFinder.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class MainClassFinder {
170170
boolean found = false
171171

172172
MainMethodFinder() {
173-
super(Opcodes.ASM7)
173+
super(Opcodes.ASM4)
174174
}
175175

176176
@Override

grails-core/src/main/groovy/org/grails/compiler/injection/GrailsAwareInjectionOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private static void initializeState() {
120120
final ClassReader classReader = new ClassReader(inputStream);
121121
final String astTransformerClassName = AstTransformer.class.getSimpleName();
122122
final ClassLoader finalClassLoader = classLoader;
123-
classReader.accept(new ClassVisitor(Opcodes.ASM7) {
123+
classReader.accept(new ClassVisitor(Opcodes.ASM4) {
124124
@Override
125125
public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
126126
try {

grails-core/src/main/groovy/org/grails/core/cfg/CustomSafeConstructor.groovy

Lines changed: 0 additions & 48 deletions
This file was deleted.

grails-core/src/main/groovy/org/grails/core/cfg/MicronautGroovyPropertySourceLoader.groovy

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
package org.grails.core.cfg
22

3-
import grails.plugins.GrailsPlugin
43
import grails.util.BuildSettings
54
import grails.util.Environment
65
import grails.util.Metadata
76
import groovy.transform.CompileStatic
87
import io.micronaut.context.env.AbstractPropertySourceLoader
9-
import io.micronaut.context.env.MapPropertySource
108
import io.micronaut.context.exceptions.ConfigurationException
119
import io.micronaut.core.io.ResourceLoader
1210
import org.grails.config.NavigableMap
@@ -24,7 +22,7 @@ class MicronautGroovyPropertySourceLoader extends AbstractPropertySourceLoader {
2422

2523
@Override
2624
int getOrder() {
27-
return DEFAULT_POSITION + 1
25+
return DEFAULT_POSITION
2826
}
2927

3028
@Override
@@ -39,10 +37,9 @@ class MicronautGroovyPropertySourceLoader extends AbstractPropertySourceLoader {
3937
appVersion: Metadata.getCurrent().getApplicationVersion())
4038
try {
4139
def configObject = configSlurper.parse(input.getText("UTF-8"))
42-
final Map<String, Object> propertySource = new NavigableMap()
40+
def propertySource = new NavigableMap()
4341
propertySource.merge(configObject.flatten(), false)
4442
finalMap.putAll(propertySource)
45-
processEnvironmentSpecificProperties(finalMap, propertySource)
4643
} catch (Throwable e) {
4744
throw new ConfigurationException("Exception occurred reading configuration [" + name + "]: " + e.getMessage(), e)
4845
}
@@ -71,19 +68,4 @@ class MicronautGroovyPropertySourceLoader extends AbstractPropertySourceLoader {
7168
return Collections.singleton("groovy")
7269
}
7370

74-
@Override
75-
protected MapPropertySource createPropertySource(String name, Map<String, Object> map, int order) {
76-
return super.createPropertySource("grails.$name", map, order)
77-
}
78-
79-
void processEnvironmentSpecificProperties(finalMap, Map<String, Object> propertySource) {
80-
final String environmentName = Environment.current.name
81-
if (environmentName != null) {
82-
final String environmentPrefix = GrailsPlugin.ENVIRONMENTS + '.' + environmentName + '.'
83-
propertySource.keySet().stream()
84-
.filter(k -> k.startsWith(environmentPrefix))
85-
.forEach(propertyName -> { finalMap[propertyName.substring(environmentPrefix.length())] = propertySource.get(propertyName) })
86-
}
87-
}
88-
8971
}

grails-core/src/main/groovy/org/grails/core/cfg/MicronautYamlPropertySourceLoader.groovy

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)