Skip to content

Commit

Permalink
Merge branch 'main' into spring-boot-gh-34899
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Bryant authored Oct 13, 2023
2 parents 38f62e7 + 265e042 commit c1d8556
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 8 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/continuous-integration-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI Build

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
name: Build Main Branch
runs-on: ubuntu-latest

steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Build Initial with Maven
working-directory: ./initial
run: ./mvnw --batch-mode clean package

- name: Build Initial with Gradle
working-directory: ./initial
run: ./gradlew build

- name: Build Complete with Maven
working-directory: ./complete
run: ./mvnw --batch-mode clean package

- name: Build Complete with Gradle
working-directory: ./complete
run: ./gradlew build
8 changes: 4 additions & 4 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:spring_boot_version: 2.5.0
:spring_boot_version: 3.1.0
:spring-boot: https://github.com/spring-projects/spring-boot
:toc:
:icons: font
Expand All @@ -19,7 +19,7 @@ it.

== What You Need

:java_version: 1.8
:java_version: 17
include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/main/prereq_editor_jdk_buildtools.adoc[]

include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/main/how_to_complete_this_guide.adoc[]
Expand Down Expand Up @@ -54,7 +54,7 @@ them to your application context.
[[scratch]]
== Starting with Spring Initializr

You can use this https://start.spring.io/#!type=maven-project&language=java&platformVersion=2.5.5&packaging=jar&jvmVersion=11&groupId=com.example&artifactId=spring-boot&name=spring-boot&description=Demo%20project%20for%20Spring%20Boot&packageName=com.example.spring-boot&dependencies=web[pre-initialized project] and click Generate to download a ZIP file. This project is configured to fit the examples in this tutorial.
You can use this https://start.spring.io/#!type=maven-project&language=java&packaging=jar&jvmVersion=17&groupId=com.example&artifactId=spring-boot&name=spring-boot&description=Demo%20project%20for%20Spring%20Boot&packageName=com.example.spring-boot&dependencies=web[pre-initialized project] and click Generate to download a ZIP file. This project is configured to fit the examples in this tutorial.

To manually initialize the project:

Expand Down Expand Up @@ -245,7 +245,7 @@ configured automatically in the base URL for the `TestRestTemplate`.
If you are building a web site for your business, you probably need to add some management
services. Spring Boot provides several such services (such as health, audits, beans, and
more) with its
http://docs.spring.io/spring-boot/docs/{spring_boot_version}/reference/htmlsingle/#production-ready[actuator module].
http://docs.spring.io/spring-boot/docs/{spring_boot_version}/reference/htmlsingle/#actuator[actuator module].

If you use Gradle, add the following dependency to your `build.gradle` file:

Expand Down
2 changes: 1 addition & 1 deletion complete/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'org.springframework.boot' version '3.0.0'
id 'org.springframework.boot' version '3.1.0'
id 'io.spring.dependency-management' version '1.1.0'
id 'java'
}
Expand Down
2 changes: 1 addition & 1 deletion complete/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.0</version>
<version>3.1.0</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
Expand Down
2 changes: 1 addition & 1 deletion initial/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'org.springframework.boot' version '3.0.0'
id 'org.springframework.boot' version '3.1.0'
id 'io.spring.dependency-management' version '1.1.0'
id 'java'
}
Expand Down
2 changes: 1 addition & 1 deletion initial/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.0</version>
<version>3.1.0</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
Expand Down

0 comments on commit c1d8556

Please sign in to comment.