diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index 1719a27..0000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM mcr.microsoft.com/vscode/devcontainers/java:0-8 - -ARG MAVEN_VERSION="" -RUN \ - su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install maven \"${MAVEN_VERSION}\"" - -RUN \ - apt-get update && \ - export DEBIAN_FRONTEND=noninteractive && \ - apt-get -y install --no-install-recommends gnupg2 && \ - apt-get clean && \ - apt-get autoremove --purge && \ - rm -rf /var/lib/apt/lists/* diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3caadf2..abc2558 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,43 +1,21 @@ { - "name":"Magnetic Track Parser", - "build":{ - "dockerfile":"Dockerfile", - "args":{ - "INSTALL_MAVEN":"true", - "INSTALL_GRADLE":"true", - "NODE_VERSION":"none" - } - }, - "settings":{ - "java.home":"/docker-java-home", - "java.import.gradle.java.home":"/usr/local/sdkman/candidates/java/current", - "java.configuration.runtimes":[ - { - "default":true, - "name":"JavaSE-1.8", - "path":"/usr/local/sdkman/candidates/java/current" - } - ], - "files.exclude":{ - "workspace":true + "name": "magnetictrackparser", + "features": { + "ghcr.io/devcontainers/features/java:1": { + "version": "21", + "installMaven": "true" }, - "java.configuration.updateBuildConfiguration":"automatic", - "java.format.settings.profile":"GoogleStyle", - "java.format.settings.url":"https://gist.github.com/sualeh/470c0954b597f1c717baa1ae64a80013", - "editor.tabSize":2, - "editor.foldingImportsByDefault": true, - "files.trimTrailingWhitespace":true, - "git.enableCommitSigning":true + "ghcr.io/devcontainers/features/github-cli:1": {} + }, + "customizations": { + "vscode": { + "settings": { + }, + "extensions": [ + "vscjava.vscode-java-pack", + "editorconfig.editorconfig" + ] + } }, - "extensions":[ - "vscjava.vscode-java-pack", - "shengchen.vscode-checkstyle", - "editorconfig.editorconfig", - "pivotal.vscode-boot-dev-pack", - "pivotal.vscode-spring-boot", - "redhat.vscode-xml", - "jebbs.markdown-extended", - "davidanson.vscode-markdownlint" - ], - "remoteUser":"vscode" + "postCreateCommand": "mvn dependency:resolve" } diff --git a/.gitignore b/.gitignore index 2e87a20..6b1cc5c 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ build/ out/ target/ **/launch.json +pom.xml.versionsBackup diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..a69ba16 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "vscjava.vscode-java-debug" + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..33abc77 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,10 @@ +{ + "scm.showInputActionButton": false, + "git.showActionButton": { + "commit": false, + "publish": false, + "sync": false + }, + "git.postCommitCommand": "sync", + "java.configuration.updateBuildConfiguration": "automatic" +} \ No newline at end of file diff --git a/.vscode/workspace.code-workspace b/.vscode/workspace.code-workspace index 4949532..8580c79 100644 --- a/.vscode/workspace.code-workspace +++ b/.vscode/workspace.code-workspace @@ -5,20 +5,15 @@ } ], "settings":{ - "workbench.startupEditor": "none", "files.exclude":{ "workspace":true }, "java.configuration.updateBuildConfiguration":"automatic", "java.format.settings.profile":"GoogleStyle", "java.format.settings.url":"https://gist.github.com/sualeh/470c0954b597f1c717baa1ae64a80013", - "editor.tabSize": 2, + "editor.tabSize":2, "editor.foldingImportsByDefault": true, - "files.trimTrailingWhitespace": true, - "git.enableCommitSigning": true, - "git.autofetch": true, - "workbench.editorAssociations": { - "*.md": "vscode.markdown.preview.editor" - }, + "files.trimTrailingWhitespace":true, + "git.enableCommitSigning":true } } diff --git a/pom.xml b/pom.xml index 6b90fde..ae19624 100644 --- a/pom.xml +++ b/pom.xml @@ -1,12 +1,16 @@ - + 4.0.0 us.fatehi - magnetictrackparser + creditcardnumber 4.0.4 jar Magnetic Track Parser - Magnetic Track Parser is a library that can parse magnetic tracks from a bank issued card. All classes are immutable and thread-safe. The standard `toString()` function formats data in a readable form. + Magnetic Track Parser is a library that can parse magnetic tracks from a + bank issued credit card. All classes are immutable and thread-safe. + The standard `toString()` function formats data in a readable form. https://github.com/sualeh/magnetictrackparser @@ -177,9 +181,7 @@ 8 8 - - -Werror - + UTF-8