-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
189 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
# update git's index (bc they get messy with the pre-commit hook) according to | ||
# https://prettier.io/docs/en/precommit.html | ||
# see also https://github.com/prettier/prettier/issues/2978 | ||
git update-index -g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,45 @@ | ||
# Heavily influenced by https://www.toptal.com/developers/gitignore?templates=java,jetbrains,macos | ||
|
||
### Additional inclusions and exclusions specific to this project ### | ||
|
||
### Java ### | ||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
replay_pid* | ||
|
||
### Maven ### | ||
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 | ||
# flatten-maven-plugin | ||
.flattened-pom.xml | ||
|
||
### JetBrains ### | ||
.idea/* | ||
!.idea/codeStyles | ||
!.idea/runConfigurations | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
build/ | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
out/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
.vscode/ | ||
|
||
### macOS ### | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
<servers> | ||
<server> | ||
<id>github</id> | ||
<username>${env.GITHUB_ACTOR}</username> | ||
<password>${env.GITHUB_TOKEN}</password> | ||
</server> | ||
</servers> | ||
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="SpringBootExcelApplication (Default)" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot"> | ||
<option name="FRAME_DEACTIVATION_UPDATE_POLICY" value="UpdateClassesAndResources" /> | ||
<module name="excel-spring-boot" /> | ||
<option name="SPRING_BOOT_MAIN_CLASS" value="dev.pcalouche.springboot.excel.SpringBootExcelApplication" /> | ||
<option name="UPDATE_ACTION_UPDATE_POLICY" value="UpdateClassesAndResources" /> | ||
<extension name="net.ashald.envfile"> | ||
<option name="IS_ENABLED" value="false" /> | ||
<option name="IS_SUBST" value="false" /> | ||
<option name="IS_PATH_MACRO_SUPPORTED" value="false" /> | ||
<option name="IS_IGNORE_MISSING_FILES" value="false" /> | ||
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" /> | ||
<ENTRIES> | ||
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" /> | ||
</ENTRIES> | ||
</extension> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,47 @@ | ||
# format the code | ||
# Format the code | ||
.PHONY: format | ||
format: | ||
mvn spotless:apply spring-javaformat:apply | ||
|
||
# Run tests and verify | ||
.PHONY: mvn-verify | ||
mvn-verify: format | ||
mvn clean verify | ||
|
||
# Skip tests and verify | ||
.PHONY: mvn-verify-skip-tests | ||
mvn-verify-skip-tests: format | ||
mvn clean verify -DskipTests | ||
|
||
# Run tests and install locally | ||
.PHONY: mvn-install | ||
mvn-install: format | ||
mvn clean install | ||
mvn clean install | ||
|
||
# Skip tests and install locally | ||
.PHONY: mvn-install-skip-tests | ||
mvn-install-skip-tests: format | ||
mvn clean install -DskipTests | ||
|
||
# Check if version is a SNAPSHOT | ||
.PHONY: check-if-snapshot-version | ||
check-if-snapshot-version: | ||
version="$(shell mvn help:evaluate -Dexpression=spring-enzymes.version -q -DforceStdout)" ; \ | ||
echo "version is $$version" ; \ | ||
if [[ $$version == *-SNAPSHOT ]]; then \ | ||
echo "Release version is a SNAPSHOT, so manual deploy can proceed." ; \ | ||
else \ | ||
echo "Release version is NOT a SNAPSHOT. Use a SNAPSHOT version to deploy or deploy with GitHub Actions CD." ; \ | ||
exit 1 ; \ | ||
fi | ||
|
||
# Run tests and deploy SNAPSHOT version | ||
.PHONY: mvn-deploy-snapshot | ||
mvn-deploy-snapshot: check-if-snapshot-version format | ||
mvn clean deploy | ||
|
||
# Skip tests and deploy SNAPSHOT version | ||
.PHONY: mvn-deploy-snapshot-skip-tests | ||
mvn-deploy-snapshot-skip-tests: check-if-snapshot-version format | ||
mvn clean deploy -DskipTests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...pringboot/ExcelSpringBootApplication.java → ...oot/excel/SpringBootExcelApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package com.pcalouche.excelspringboot; | ||
package dev.pcalouche.springboot.excel; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
public class ExcelSpringBootApplication { | ||
public class SpringBootExcelApplication { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(ExcelSpringBootApplication.class, args); | ||
SpringApplication.run(SpringBootExcelApplication.class, args); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.