-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/init #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Feature/init #2
Changes from 14 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
46e6e2b
project init
SirCotare eb6bf25
add initial version
SirCotare 6188b1d
add missing mvnw
SirCotare f92b598
fix pom
SirCotare 19dc1c3
fix tagging
SirCotare 57517be
update workflow to use renamed action
SirCotare c1affa7
update readme
SirCotare d4df49f
update for better usage
SirCotare 1d9e45d
update checkstyle
SirCotare c3ca1c5
update action name
SirCotare f1ac2ec
replace liquibase with a custom migrator
SirCotare 4008c11
use an explicitly typed object for attachment references
SirCotare 96ac531
remove final from parameters
SirCotare 82d5ca7
add tests
SirCotare 1f8300b
remove reference field from email
SirCotare 583e546
rename field
SirCotare 291be30
rename a few things
SirCotare 3756b94
improve sed command
SirCotare 6caa15a
rename and formatting
SirCotare c54fc3b
refactor attachment storage logic
SirCotare ba9e577
remove unnecessary check
SirCotare 6f49809
add tests and improve errror handling
SirCotare c430bcc
use entity graph and rework attachment file reference
SirCotare File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,17 @@ | ||
| root = true | ||
|
|
||
| [*] | ||
| charset = utf-8 | ||
| end_of_line = lf | ||
| indent_size = 4 | ||
| indent_style = space | ||
| insert_final_newline = true | ||
| max_line_length = 120 | ||
| tab_width = 4 | ||
| ij_continuation_indent_size = 8 | ||
|
|
||
| [*.yml] | ||
| indent_size = 2 | ||
|
|
||
| [*.md] | ||
| max_line_length = off |
This file contains hidden or 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 @@ | ||
| * text=auto eol=lf encoding=utf-8 |
This file contains hidden or 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,43 @@ | ||
| name: Publish package to GitHub Packages | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: "Version name to publish (eg: x.x.x)" | ||
| type: string | ||
| required: true | ||
|
|
||
| jobs: | ||
| publish: | ||
| timeout-minutes: 15 | ||
| runs-on: ubuntu-22.04 | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
|
|
||
| - uses: aboutbits/github-actions-java/setup-and-install@v1 | ||
|
|
||
| - name: Set Version | ||
| run: sed -i 's/<version>BUILD-SNAPSHOT<\/version>/<version>${{ github.event.inputs.version }}<\/version>/g' pom.xml | ||
|
|
||
| - name: Publish package | ||
| run: mvn --batch-mode deploy | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| tag: | ||
| timeout-minutes: 5 | ||
| runs-on: ubuntu-22.04 | ||
| needs: publish | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
|
|
||
| - name: Tag Deployment | ||
| uses: aboutbits/github-actions-base/git-create-or-update-tag@v1 | ||
| with: | ||
| tag-name: ${{ github.event.inputs.version }} | ||
| user-name: 'AboutBits' | ||
| user-email: 'info@aboutbits.it' | ||
This file contains hidden or 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,39 @@ | ||
| 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/ | ||
|
|
||
| ### Mac ### | ||
| .DS_Store | ||
|
|
||
| ### Local Development ### | ||
| application-local.yml |
Binary file not shown.
This file contains hidden or 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,2 @@ | ||
| distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.3/apache-maven-3.9.3-bin.zip | ||
| wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar |
This file contains hidden or 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,12 @@ | ||
| <?xml version="1.0"?> | ||
|
|
||
| <!DOCTYPE suppressions PUBLIC | ||
| "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" | ||
| "https://checkstyle.org/dtds/suppressions_1_2.dtd"> | ||
|
|
||
| <suppressions> | ||
| <suppress checks="Javadoc" files="."/> | ||
| <suppress checks="MethodName" files=".*[\\/]src[\\/](test|it)[\\/]"/> | ||
| <suppress checks="VisibilityModifier" files=".*[\\/]src[\\/](test|it)[\\/]"/> | ||
| <suppress checks="FileTabCharacter" files=".*[\\/]src[\\/](test|it)[\\/]"/> | ||
| </suppressions> |
This file contains hidden or 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,207 @@ | ||
| <?xml version="1.0"?> | ||
| <!DOCTYPE module PUBLIC | ||
| "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" | ||
| "https://checkstyle.org/dtds/configuration_1_3.dtd"> | ||
|
|
||
| <!-- | ||
|
|
||
| Checkstyle configuration that checks the sun coding conventions from: | ||
|
|
||
| - the Java Language Specification at | ||
| https://docs.oracle.com/javase/specs/jls/se11/html/index.html | ||
|
|
||
| - the Sun Code Conventions at https://www.oracle.com/java/technologies/javase/codeconventions-contents.html | ||
|
|
||
| - the Javadoc guidelines at | ||
| https://www.oracle.com/technical-resources/articles/java/javadoc-tool.html | ||
|
|
||
| - the JDK Api documentation https://docs.oracle.com/en/java/javase/11/ | ||
|
|
||
| - some best practices | ||
|
|
||
| Checkstyle is very configurable. Be sure to read the documentation at | ||
| https://checkstyle.org (or in your downloaded distribution). | ||
|
|
||
| Most Checks are configurable, be sure to consult the documentation. | ||
|
|
||
| To completely disable a check, just comment it out or delete it from the file. | ||
| To suppress certain violations please review suppression filters. | ||
|
|
||
| Finally, it is worth reading the documentation. | ||
|
|
||
| --> | ||
|
|
||
| <module name="Checker"> | ||
| <!-- | ||
| If you set the basedir property below, then all reported file | ||
| names will be relative to the specified directory. See | ||
| https://checkstyle.org/config.html#Checker | ||
|
|
||
| <property name="basedir" value="${basedir}"/> | ||
| --> | ||
| <property name="severity" value="error"/> | ||
|
|
||
| <property name="fileExtensions" value="java, properties, xml"/> | ||
|
|
||
| <module name="SuppressWarningsFilter"/> | ||
|
|
||
| <!-- Excludes all 'module-info.java' files --> | ||
| <!-- See https://checkstyle.org/config_filefilters.html --> | ||
| <module name="BeforeExecutionExclusionFileFilter"> | ||
| <property name="fileNamePattern" value="module\-info\.java$"/> | ||
| </module> | ||
|
|
||
| <!-- https://checkstyle.org/config_filters.html#SuppressionFilter --> | ||
| <module name="SuppressionFilter"> | ||
| <property name="file" value="${org.checkstyle.sun.suppressionfilter.config}" | ||
| default="checkstyle-suppressions.xml"/> | ||
| <property name="optional" value="true"/> | ||
| </module> | ||
|
|
||
| <!-- Checks that a package-info.java file exists for each package. --> | ||
| <!-- See https://checkstyle.org/config_javadoc.html#JavadocPackage --> | ||
| <!--<module name="JavadocPackage"/>--> | ||
|
|
||
| <!-- Checks whether files end with a new line. --> | ||
| <!-- See https://checkstyle.org/config_misc.html#NewlineAtEndOfFile --> | ||
| <module name="NewlineAtEndOfFile"/> | ||
|
|
||
| <!-- Checks that property files contain the same keys. --> | ||
| <!-- See https://checkstyle.org/config_misc.html#Translation --> | ||
| <module name="Translation"/> | ||
|
|
||
| <!-- Checks for Size Violations. --> | ||
| <!-- See https://checkstyle.org/config_sizes.html --> | ||
| <module name="FileLength"/> | ||
| <!--<module name="LineLength"> | ||
| <property name="fileExtensions" value="java"/> | ||
| </module>--> | ||
|
|
||
| <!-- Checks for whitespace --> | ||
| <!-- See https://checkstyle.org/config_whitespace.html --> | ||
| <module name="FileTabCharacter"/> | ||
|
|
||
| <!-- Miscellaneous other checks. --> | ||
| <!-- See https://checkstyle.org/config_misc.html --> | ||
| <module name="RegexpSingleline"> | ||
| <property name="format" value="\s+$"/> | ||
| <property name="minimum" value="0"/> | ||
| <property name="maximum" value="0"/> | ||
| <property name="message" value="Line has trailing spaces."/> | ||
| </module> | ||
|
|
||
| <!-- Checks for Headers --> | ||
| <!-- See https://checkstyle.org/config_header.html --> | ||
| <!-- <module name="Header"> --> | ||
| <!-- <property name="headerFile" value="${checkstyle.header.file}"/> --> | ||
| <!-- <property name="fileExtensions" value="java"/> --> | ||
| <!-- </module> --> | ||
|
|
||
| <module name="TreeWalker"> | ||
|
|
||
| <!-- Support for the @SuppressWarnings java annotation --> | ||
| <module name="SuppressWarningsHolder"/> | ||
|
|
||
| <!-- Checks for Javadoc comments. --> | ||
| <!-- See https://checkstyle.org/config_javadoc.html --> | ||
| <module name="InvalidJavadocPosition"/> | ||
| <module name="JavadocMethod"/> | ||
| <module name="JavadocType"/> | ||
| <module name="JavadocVariable"/> | ||
| <module name="JavadocStyle"/> | ||
| <module name="MissingJavadocMethod"/> | ||
|
|
||
| <!-- Checks for Naming Conventions. --> | ||
| <!-- See https://checkstyle.org/config_naming.html --> | ||
| <module name="ConstantName"/> | ||
| <module name="LocalFinalVariableName"/> | ||
| <module name="LocalVariableName"/> | ||
| <module name="MemberName"> | ||
| <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/> | ||
| <message key="name.invalidPattern" | ||
| value="Member name ''{0}'' must match pattern ''{1}''."/> | ||
| </module> | ||
| <module name="MethodName"/> | ||
| <module name="PackageName"/> | ||
| <module name="ParameterName"/> | ||
| <module name="StaticVariableName"/> | ||
| <module name="TypeName"/> | ||
|
|
||
| <!-- Checks for imports --> | ||
| <!-- See https://checkstyle.org/config_imports.html --> | ||
| <module name="AvoidStarImport"/> | ||
| <module name="IllegalImport"/> <!-- defaults to sun.* packages --> | ||
| <module name="RedundantImport"/> | ||
| <module name="UnusedImports"> | ||
| <property name="processJavadoc" value="false"/> | ||
| </module> | ||
|
|
||
| <!-- Checks for Size Violations. --> | ||
| <!-- See https://checkstyle.org/config_sizes.html --> | ||
| <module name="MethodLength"/> | ||
| <module name="ParameterNumber"/> | ||
|
|
||
| <!-- Checks for whitespace --> | ||
| <!-- See https://checkstyle.org/config_whitespace.html --> | ||
| <module name="EmptyForIteratorPad"/> | ||
| <module name="GenericWhitespace"/> | ||
| <module name="MethodParamPad"/> | ||
| <module name="NoWhitespaceAfter"/> | ||
| <module name="NoWhitespaceBefore"/> | ||
| <module name="OperatorWrap"/> | ||
| <module name="ParenPad"/> | ||
| <module name="TypecastParenPad"/> | ||
| <module name="WhitespaceAfter"/> | ||
| <module name="WhitespaceAround"/> | ||
|
|
||
| <!-- Modifier Checks --> | ||
| <!-- See https://checkstyle.org/config_modifiers.html --> | ||
| <module name="ModifierOrder"/> | ||
| <module name="RedundantModifier"/> | ||
|
|
||
| <!-- Checks for blocks. You know, those {}'s --> | ||
| <!-- See https://checkstyle.org/config_blocks.html --> | ||
| <module name="AvoidNestedBlocks"/> | ||
| <module name="EmptyBlock"/> | ||
| <module name="LeftCurly"/> | ||
| <module name="NeedBraces"/> | ||
| <module name="RightCurly"/> | ||
|
|
||
| <!-- Checks for common coding problems --> | ||
| <!-- See https://checkstyle.org/config_coding.html --> | ||
| <module name="EmptyStatement"/> | ||
| <module name="EqualsHashCode"/> | ||
| <!--<module name="HiddenField"/>--> | ||
| <module name="IllegalInstantiation"/> | ||
| <module name="InnerAssignment"/> | ||
| <!--<module name="MagicNumber"/>--> | ||
| <module name="MissingSwitchDefault"/> | ||
| <module name="MultipleVariableDeclarations"/> | ||
| <module name="SimplifyBooleanExpression"/> | ||
| <module name="SimplifyBooleanReturn"/> | ||
|
|
||
| <!-- Checks for class design --> | ||
| <!-- See https://checkstyle.org/config_design.html --> | ||
| <!--<module name="DesignForExtension"/>--> | ||
| <module name="FinalClass"/> | ||
| <module name="HideUtilityClassConstructor"/> | ||
| <module name="InterfaceIsType"/> | ||
| <module name="VisibilityModifier"> | ||
| <property name="protectedAllowed" value="true"/> | ||
| </module> | ||
|
|
||
| <!-- Miscellaneous other checks. --> | ||
| <!-- See https://checkstyle.org/config_misc.html --> | ||
| <module name="ArrayTypeStyle"/> | ||
| <!--<module name="FinalParameters"/>--> | ||
| <module name="TodoComment"/> | ||
| <module name="UpperEll"/> | ||
|
|
||
| <!-- https://checkstyle.org/config_filters.html#SuppressionXpathFilter --> | ||
| <module name="SuppressionXpathFilter"> | ||
| <property name="file" value="${org.checkstyle.sun.suppressionxpathfilter.config}" | ||
| default="checkstyle-xpath-suppressions.xml"/> | ||
| <property name="optional" value="true"/> | ||
| </module> | ||
| </module> | ||
| </module> |
This file contains hidden or 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,7 @@ | ||
| Copyright About Bits GmbH | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.