Skip to content

Commit 1ecc030

Browse files
sdeleuzesnicoll
andcommitted
Start building against Spring Boot 2.7.0-RC1 snapshots
See spring-atticgh-1541 Co-authored-by: Stephane Nicoll <snicoll@vmware.com>
1 parent 9a7e7e3 commit 1ecc030

File tree

17 files changed

+37
-35
lines changed

17 files changed

+37
-35
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<asm.version>9.2</asm.version>
1515
<graalvm.version>22.0.0</graalvm.version>
1616
<docs.resources.version>0.2.1.RELEASE</docs.resources.version>
17-
<spring.boot.version>2.6.6</spring.boot.version>
17+
<spring.boot.version>2.7.0-SNAPSHOT</spring.boot.version>
1818
<spring.cloud.version>2021.0.1</spring.cloud.version>
1919
<spring.security.authorization-server.version>0.1.0</spring.security.authorization-server.version>
2020
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

samples/commandlinerunner-gradle/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'org.springframework.boot' version '2.6.6'
2+
id 'org.springframework.boot' version '2.7.0-SNAPSHOT'
33
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
44
id 'org.springframework.experimental.aot' version '0.12.0-SNAPSHOT'
55
id 'java'

samples/maven-parent/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.springframework.boot</groupId>
99
<artifactId>spring-boot-starter-parent</artifactId>
10-
<version>2.6.6</version>
10+
<version>2.7.0-SNAPSHOT</version>
1111
<relativePath/>
1212
</parent>
1313
<groupId>org.springframework.experimental</groupId>

samples/multi-modules/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
3-
id 'org.springframework.boot' version '2.6.6' apply false
3+
id 'org.springframework.boot' version '2.7.0-SNAPSHOT' apply false
44
id 'org.springframework.experimental.aot' version '0.12.0-SNAPSHOT' apply false
55
}
66

samples/multi-modules/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>2.6.6</version>
8+
<version>2.7.0-SNAPSHOT</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.example</groupId>

samples/security-kotlin/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22
import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
33

44
plugins {
5-
id("org.springframework.boot") version "2.6.6"
5+
id("org.springframework.boot") version "2.7.0-SNAPSHOT"
66
id("io.spring.dependency-management") version "1.0.10.RELEASE"
77
id("org.springframework.experimental.aot") version "0.12.0-SNAPSHOT"
88
kotlin("jvm") version "1.6.10"

samples/webmvc-kotlin/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22
import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
33

44
plugins {
5-
id("org.springframework.boot") version "2.6.6"
5+
id("org.springframework.boot") version "2.7.0-SNAPSHOT"
66
id("io.spring.dependency-management") version "1.0.10.RELEASE"
77
id("org.springframework.experimental.aot") version "0.12.0-SNAPSHOT"
88
kotlin("jvm") version "1.6.10"

spring-aot-maven-plugin/src/it/runner/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>2.6.6</version>
8+
<version>2.7.0-SNAPSHOT</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>io.spring.test</groupId>

spring-aot/src/main/java/org/springframework/validation/annotation/ValidatedNativeConfigurationProcessor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-native-configuration/src/main/java/org/h2/H2Hints.java

+12-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,16 +16,15 @@
1616

1717
package org.h2;
1818

19-
import org.h2.mvstore.db.MVTableEngine;
20-
import org.h2.store.fs.FilePathAsync;
21-
import org.h2.store.fs.FilePathDisk;
22-
import org.h2.store.fs.FilePathMem;
23-
import org.h2.store.fs.FilePathNio;
24-
import org.h2.store.fs.FilePathNioMapped;
25-
import org.h2.store.fs.FilePathNioMem;
26-
import org.h2.store.fs.FilePathRetryOnInterrupt;
27-
import org.h2.store.fs.FilePathSplit;
28-
import org.h2.store.fs.FilePathZip;
19+
import org.h2.store.fs.async.FilePathAsync;
20+
import org.h2.store.fs.disk.FilePathDisk;
21+
import org.h2.store.fs.mem.FilePathMem;
22+
import org.h2.store.fs.niomapped.FilePathNioMapped;
23+
import org.h2.store.fs.niomem.FilePathNioMem;
24+
import org.h2.store.fs.retry.FilePathRetryOnInterrupt;
25+
import org.h2.store.fs.split.FilePathSplit;
26+
import org.h2.store.fs.zip.FilePathZip;
27+
2928
import org.springframework.nativex.hint.InitializationHint;
3029
import org.springframework.nativex.hint.InitializationTime;
3130
import org.springframework.nativex.hint.NativeHint;
@@ -38,12 +37,11 @@
3837
FilePathMem.class,
3938
FilePathNioMem.class,
4039
FilePathSplit.class,
41-
FilePathNio.class,
40+
FilePathNioMem.class,
4241
FilePathNioMapped.class,
4342
FilePathAsync.class,
4443
FilePathZip.class,
45-
FilePathRetryOnInterrupt.class,
46-
MVTableEngine.class
44+
FilePathRetryOnInterrupt.class
4745
}, typeNames= { "org.h2.store.fs.FilePathMemLZF","org.h2.store.fs.FilePathNioMemLZF" }),
4846
initialization = @InitializationHint(types = org.h2.util.Bits.class, initTime = InitializationTime.BUILD)
4947
)

spring-native-configuration/src/main/java/org/mariadb/MariaDbHints.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,16 +16,16 @@
1616

1717
package org.mariadb;
1818

19+
import org.mariadb.jdbc.Configuration;
1920
import org.mariadb.jdbc.Driver;
20-
import org.mariadb.jdbc.util.Options;
2121
import org.springframework.nativex.hint.FieldHint;
2222
import org.springframework.nativex.hint.NativeHint;
2323
import org.springframework.nativex.hint.ResourceHint;
2424
import org.springframework.nativex.hint.TypeHint;
2525
import org.springframework.nativex.type.NativeConfiguration;
2626

2727
@NativeHint(trigger = Driver.class, types = {
28-
@TypeHint(types = Options.class, fields = {
28+
@TypeHint(types = Configuration.Builder.class, fields = {
2929
// Parameters and categories are explained here:
3030
// https://mariadb.com/kb/en/about-mariadb-connector-j/
3131

spring-native-configuration/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/EndpointAutoConfigurationHints.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
1717
package org.springframework.boot.actuate.autoconfigure.endpoint;
1818

1919
import org.springframework.boot.actuate.context.ShutdownEndpoint;
20+
import org.springframework.boot.actuate.endpoint.ApiVersion;
2021
import org.springframework.boot.actuate.endpoint.EndpointFilter;
2122
import org.springframework.boot.actuate.endpoint.annotation.DeleteOperation;
2223
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
@@ -25,7 +26,6 @@
2526
import org.springframework.boot.actuate.endpoint.annotation.Selector;
2627
import org.springframework.boot.actuate.endpoint.annotation.Selector.Match;
2728
import org.springframework.boot.actuate.endpoint.annotation.WriteOperation;
28-
import org.springframework.boot.actuate.endpoint.http.ApiVersion;
2929
import org.springframework.boot.actuate.endpoint.invoke.OperationInvokerAdvisor;
3030
import org.springframework.boot.actuate.endpoint.invoke.convert.ConversionServiceParameterValueMapper;
3131
import org.springframework.boot.actuate.endpoint.web.Link;

spring-native-configuration/src/main/java/org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchRepositoriesHints.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616

1717
package org.springframework.boot.autoconfigure.data.elasticsearch;
1818

19-
import org.elasticsearch.common.xcontent.XContentParser;
19+
import org.elasticsearch.xcontent.XContentParser;
2020

2121
import org.springframework.boot.autoconfigure.data.SpringDataReactiveHints;
2222
import org.springframework.data.elasticsearch.core.event.AfterConvertCallback;

spring-native-configuration/src/main/java/org/springframework/hateoas/config/HateoasHints.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,7 +24,6 @@
2424
import java.util.stream.Collectors;
2525
import java.util.stream.Stream;
2626

27-
import org.springframework.boot.autoconfigure.hateoas.HypermediaHttpMessageConverterConfiguration;
2827
import org.springframework.boot.autoconfigure.jackson.JacksonHints;
2928
import org.springframework.hateoas.Affordance;
3029
import org.springframework.hateoas.AffordanceModel;

spring-native-docs/src/main/asciidoc/attributes.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
:graalvm-native-buildtools: https://github.com/graalvm/native-build-tools
2727
:graalvm-native-buildtools-version: 0.9.11
2828

29-
:spring-boot-version: 2.6.6
29+
:spring-boot-version: 2.7.0-SNAPSHOT
3030
:spring-boot-docs: https://docs.spring.io/spring-boot/docs/{spring-boot-version}/reference
3131
:spring-boot-gradle-plugin-docs: https://docs.spring.io/spring-boot/docs/{spring-boot-version}/gradle-plugin/reference/htmlsingle/
3232
:spring-boot-maven-plugin-docs: https://docs.spring.io/spring-boot/docs/{spring-boot-version}/maven-plugin/reference/htmlsingle/

spring-native/src/main/java/org/springframework/aop/framework/ProxyGenerator.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 the original author or authors.
2+
* Copyright 2019-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -355,7 +355,7 @@ private static class AuxiliaryTypeNamingStrategy implements AuxiliaryType.Naming
355355
public AuxiliaryTypeNamingStrategy() {}
356356

357357
@Override
358-
public String name(TypeDescription instrumentedType) {
358+
public String name(TypeDescription instrumentedType, AuxiliaryType auxiliaryType) {
359359
return instrumentedType.getName()+"$aux$"+Integer.toHexString(counter++);
360360
}
361361
}

spring-native/src/main/java/org/springframework/aot/test/boot/AotSpringBootConfigContextLoader.java

+5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.springframework.context.ApplicationContextInitializer;
3434
import org.springframework.context.ConfigurableApplicationContext;
3535
import org.springframework.core.env.ConfigurableEnvironment;
36+
import org.springframework.core.env.StandardEnvironment;
3637
import org.springframework.test.context.MergedContextConfiguration;
3738
import org.springframework.test.context.SmartContextLoader;
3839
import org.springframework.test.context.support.TestPropertySourceUtils;
@@ -115,6 +116,10 @@ else if (this.webApplicationType == WebApplicationType.REACTIVE) {
115116
return context;
116117
}
117118

119+
protected ConfigurableEnvironment getEnvironment() {
120+
return new StandardEnvironment();
121+
}
122+
118123
private boolean isEmbeddedWebEnvironment() {
119124
return this.webEnvironment.isEmbedded();
120125
}

0 commit comments

Comments
 (0)