Skip to content

Commit 268b0d8

Browse files
Merge pull request #2 from spring-projects/main
update from upstream
2 parents 4e1f874 + 3f84684 commit 268b0d8

File tree

85 files changed

+9987
-991
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+9987
-991
lines changed

.devcontainer/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ARG VARIANT=17-bullseye
2+
FROM mcr.microsoft.com/vscode/devcontainers/java:0-${VARIANT}
3+
4+
ARG NODE_VERSION="none"
5+
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

.devcontainer/devcontainer.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "Petclinic",
3+
"dockerFile": "Dockerfile",
4+
"runArgs": [
5+
"--cap-add=SYS_PTRACE",
6+
"--security-opt",
7+
"seccomp=unconfined",
8+
"--mount",
9+
"type=bind,source=${env:HOME}/.m2,target=/home/vscode/.m2",
10+
"--mount",
11+
"type=bind,source=${env:HOME}/.gradle,target=/home/vscode/.gradle"
12+
],
13+
"initializeCommand": "mkdir -p ${env:HOME}/.m2 ${env:HOME}/.gradle",
14+
"onCreateCommand": "sudo chown vscode:vscode /home/vscode/.m2 /home/vscode/.gradle",
15+
"remoteUser": "vscode",
16+
"features": {
17+
"docker-in-docker": "latest"
18+
},
19+
"extensions": [
20+
"vscjava.vscode-java-pack",
21+
"redhat.vscode-xml",
22+
"pivotal.vscode-boot-dev-pack"
23+
],
24+
"forwardPorts": [8080],
25+
"settings": {
26+
"java.import.gradle.enabled": false
27+
}
28+
}

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@ indent_style = space
1010
[*.{java,xml}]
1111
indent_size = 4
1212
trim_trailing_whitespace = true
13+
indent_style = tab
14+
tab_width = 4
15+
16+
[{pom,wro}.xml]
17+
indent_size = 2
18+
indent_style = space
19+
20+
[*.{html,sql,less}]
21+
indent_size = 2

.github/workflows/maven-build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Java CI with Maven
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v2
21+
with:
22+
java-version: '11'
23+
distribution: 'adopt'
24+
cache: maven
25+
- name: Build with Maven Wrapper
26+
run: ./mvnw -B package

.gitignore

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
target/*
2+
bin/*
3+
build/*
4+
.gradle/*
25
.settings/*
36
.classpath
47
.project
@@ -8,9 +11,7 @@ target/*
811
*.iml
912
/target
1013
.sts4-cache/
11-
.vscode/*
12-
!.vscode/settings.json
13-
!.vscode/tasks.json
14-
!.vscode/launch.json
15-
!.vscode/extensions.json
14+
.vscode
1615
_site/
16+
*.css
17+
!petclinic.css

.gitpod.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
image:
2+
file: ./.devcontainer/Dockerfile
3+
tasks:
4+
- before: sudo usermod -a -G sdkman gitpod && sudo usermod -a -G nvm gitpod && sudo chown -R gitpod /usr/local/sdkman /usr/local/share/nvm
5+
- init: ./mvnw install
6+
vscode:
7+
extensions:
8+
- vscjava.vscode-java-pack
9+
- redhat.vscode-xml

.mvn/wrapper/MavenWrapperDownloader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0'
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -20,7 +20,7 @@
2020

2121
public class MavenWrapperDownloader {
2222

23-
private static final String WRAPPER_VERSION = "0.5.5";
23+
private static final String WRAPPER_VERSION = "0.5.6";
2424
/**
2525
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
2626
*/

.mvn/wrapper/maven-wrapper.jar

0 Bytes
Binary file not shown.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.2/apache-maven-3.6.2-bin.zip
2-
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.2/apache-maven-3.8.2-bin.zip
2+
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
3+

.travis.yml

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

0 commit comments

Comments
 (0)