Skip to content

Commit

Permalink
Update initialization from the website of spring
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiser-Yang committed Jul 22, 2024
1 parent a19494b commit 5c5a1c6
Show file tree
Hide file tree
Showing 20 changed files with 191 additions and 232 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/java-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Google Java Style Format

on:
pull_request:
branches: [ master, develop ]

jobs:
java-formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Check for Java files
id: check_java_files
run: |
if [ -n "$(find . -name '*.java' -print -quit)" ]; then
echo "java_files_exist=true" >> $GITHUB_OUTPUT
else
echo "java_files_exist=false" >> $GITHUB_OUTPUT
fi
- name: Google Java Style Format
if: steps.check_java_files.outputs.java_files_exist == 'true'
uses: axel-op/googlejavaformat-action@v3
with:
# --aosp: 4-space indentation
args: "--replace --aosp"
# Can not auto commit, we'll commit manually
skip-commit: true

- name: Commit Changes
if: steps.check_java_files.outputs.java_files_exist == 'true'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Apply Google Java Style Format"
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
# maven target
target

HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/

# Compiled class file
*.class

Expand All @@ -22,3 +59,6 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*

# root directory for the file explorer
.root/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "3rdparty/docker-script"]
path = 3rdparty/docker-script
url = https://github.com/CMIPT/docker-script.git
1 change: 1 addition & 0 deletions 3rdparty/docker-script
Submodule docker-script added at 934e23
57 changes: 0 additions & 57 deletions gcs-back-end/.classpath

This file was deleted.

4 changes: 0 additions & 4 deletions gcs-back-end/.factorypath

This file was deleted.

34 changes: 0 additions & 34 deletions gcs-back-end/.project

This file was deleted.

4 changes: 0 additions & 4 deletions gcs-back-end/.settings/org.eclipse.core.resources.prefs

This file was deleted.

4 changes: 0 additions & 4 deletions gcs-back-end/.settings/org.eclipse.jdt.apt.core.prefs

This file was deleted.

9 changes: 0 additions & 9 deletions gcs-back-end/.settings/org.eclipse.jdt.core.prefs

This file was deleted.

4 changes: 0 additions & 4 deletions gcs-back-end/.settings/org.eclipse.m2e.core.prefs

This file was deleted.

94 changes: 0 additions & 94 deletions gcs-back-end/pom.xml

This file was deleted.

8 changes: 0 additions & 8 deletions gcs-back-end/src/main/java/com/cmipt/App.java

This file was deleted.

14 changes: 0 additions & 14 deletions gcs-back-end/src/test/java/com/cmipt/AppTest.java

This file was deleted.

Loading

0 comments on commit 5c5a1c6

Please sign in to comment.