mirror of
https://codeberg.org/beerbrawl/beerbrawl.git
synced 2024-09-23 01:30:52 +02:00
backend: maven: replace prettier via npm using spotless
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
44faae9cb1
commit
ff13ce67ad
1
backend/.gitattributes
vendored
1
backend/.gitattributes
vendored
|
@ -1 +0,0 @@
|
||||||
package-lock.json binary
|
|
3
backend/.gitignore
vendored
3
backend/.gitignore
vendored
|
@ -27,9 +27,6 @@ buildNumber.properties
|
||||||
.mvn/timing.properties
|
.mvn/timing.properties
|
||||||
!maven-wrapper.jar
|
!maven-wrapper.jar
|
||||||
|
|
||||||
### npm ###
|
|
||||||
/node_modules
|
|
||||||
|
|
||||||
### STS ###
|
### STS ###
|
||||||
.apt_generated
|
.apt_generated
|
||||||
.classpath
|
.classpath
|
||||||
|
|
2
backend/.license-header
Normal file
2
backend/.license-header
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/* SPDX-License-Identifier: AGPL-3.0-or-later */
|
||||||
|
|
183
backend/package-lock.json
generated
183
backend/package-lock.json
generated
|
@ -1,183 +0,0 @@
|
||||||
{
|
|
||||||
"name": "backend-dummy",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"lockfileVersion": 3,
|
|
||||||
"requires": true,
|
|
||||||
"packages": {
|
|
||||||
"": {
|
|
||||||
"name": "backend-dummy",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"license": "AGPL-3.0-or-later",
|
|
||||||
"devDependencies": {
|
|
||||||
"@prettier/plugin-xml": "^3.4.1",
|
|
||||||
"prettier": "^3.3.2",
|
|
||||||
"prettier-plugin-java": "^2.6.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@chevrotain/cst-dts-gen": {
|
|
||||||
"version": "11.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@chevrotain/cst-dts-gen/-/cst-dts-gen-11.0.3.tgz",
|
|
||||||
"integrity": "sha512-BvIKpRLeS/8UbfxXxgC33xOumsacaeCKAjAeLyOn7Pcp95HiRbrpl14S+9vaZLolnbssPIUuiUd8IvgkRyt6NQ==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@chevrotain/gast": "11.0.3",
|
|
||||||
"@chevrotain/types": "11.0.3",
|
|
||||||
"lodash-es": "4.17.21"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@chevrotain/gast": {
|
|
||||||
"version": "11.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@chevrotain/gast/-/gast-11.0.3.tgz",
|
|
||||||
"integrity": "sha512-+qNfcoNk70PyS/uxmj3li5NiECO+2YKZZQMbmjTqRI3Qchu8Hig/Q9vgkHpI3alNjr7M+a2St5pw5w5F6NL5/Q==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@chevrotain/types": "11.0.3",
|
|
||||||
"lodash-es": "4.17.21"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@chevrotain/regexp-to-ast": {
|
|
||||||
"version": "11.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@chevrotain/regexp-to-ast/-/regexp-to-ast-11.0.3.tgz",
|
|
||||||
"integrity": "sha512-1fMHaBZxLFvWI067AVbGJav1eRY7N8DDvYCTwGBiE/ytKBgP8azTdgyrKyWZ9Mfh09eHWb5PgTSO8wi7U824RA==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/@chevrotain/types": {
|
|
||||||
"version": "11.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@chevrotain/types/-/types-11.0.3.tgz",
|
|
||||||
"integrity": "sha512-gsiM3G8b58kZC2HaWR50gu6Y1440cHiJ+i3JUvcp/35JchYejb2+5MVeJK0iKThYpAa/P2PYFV4hoi44HD+aHQ==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/@chevrotain/utils": {
|
|
||||||
"version": "11.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@chevrotain/utils/-/utils-11.0.3.tgz",
|
|
||||||
"integrity": "sha512-YslZMgtJUyuMbZ+aKvfF3x1f5liK4mWNxghFRv7jqRR9C3R3fAOGTTKvxXDa2Y1s9zSbcpuO0cAxDYsc9SrXoQ==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/@prettier/plugin-xml": {
|
|
||||||
"version": "3.4.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@prettier/plugin-xml/-/plugin-xml-3.4.1.tgz",
|
|
||||||
"integrity": "sha512-Uf/6/+9ez6z/IvZErgobZ2G9n1ybxF5BhCd7eMcKqfoWuOzzNUxBipNo3QAP8kRC1VD18TIo84no7LhqtyDcTg==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@xml-tools/parser": "^1.0.11"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"prettier": "^3.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@xml-tools/parser": {
|
|
||||||
"version": "1.0.11",
|
|
||||||
"resolved": "https://registry.npmjs.org/@xml-tools/parser/-/parser-1.0.11.tgz",
|
|
||||||
"integrity": "sha512-aKqQ077XnR+oQtHJlrAflaZaL7qZsulWc/i/ZEooar5JiWj1eLt0+Wg28cpa+XLney107wXqneC+oG1IZvxkTA==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"chevrotain": "7.1.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@xml-tools/parser/node_modules/chevrotain": {
|
|
||||||
"version": "7.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/chevrotain/-/chevrotain-7.1.1.tgz",
|
|
||||||
"integrity": "sha512-wy3mC1x4ye+O+QkEinVJkPf5u2vsrDIYW9G7ZuwFl6v/Yu0LwUuT2POsb+NUWApebyxfkQq6+yDfRExbnI5rcw==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"regexp-to-ast": "0.5.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/chevrotain": {
|
|
||||||
"version": "11.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/chevrotain/-/chevrotain-11.0.3.tgz",
|
|
||||||
"integrity": "sha512-ci2iJH6LeIkvP9eJW6gpueU8cnZhv85ELY8w8WiFtNjMHA5ad6pQLaJo9mEly/9qUyCpvqX8/POVUTf18/HFdw==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@chevrotain/cst-dts-gen": "11.0.3",
|
|
||||||
"@chevrotain/gast": "11.0.3",
|
|
||||||
"@chevrotain/regexp-to-ast": "11.0.3",
|
|
||||||
"@chevrotain/types": "11.0.3",
|
|
||||||
"@chevrotain/utils": "11.0.3",
|
|
||||||
"lodash-es": "4.17.21"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/chevrotain-allstar": {
|
|
||||||
"version": "0.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/chevrotain-allstar/-/chevrotain-allstar-0.3.1.tgz",
|
|
||||||
"integrity": "sha512-b7g+y9A0v4mxCW1qUhf3BSVPg+/NvGErk/dOkrDaHA0nQIQGAtrOjlX//9OQtRlSCy+x9rfB5N8yC71lH1nvMw==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"lodash-es": "^4.17.21"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"chevrotain": "^11.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/java-parser": {
|
|
||||||
"version": "2.3.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/java-parser/-/java-parser-2.3.0.tgz",
|
|
||||||
"integrity": "sha512-P6Ma4LU1w/e0Lr4SVM/0PtqCGoL2/i/KP9ZoiyLa824oBqhF0yGTgHDyZkLgp9GTzqR43wm5wabE56FF5X7cqg==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"chevrotain": "11.0.3",
|
|
||||||
"chevrotain-allstar": "0.3.1",
|
|
||||||
"lodash": "4.17.21"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/lodash": {
|
|
||||||
"version": "4.17.21",
|
|
||||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
|
||||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/lodash-es": {
|
|
||||||
"version": "4.17.21",
|
|
||||||
"resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz",
|
|
||||||
"integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/prettier": {
|
|
||||||
"version": "3.3.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.2.tgz",
|
|
||||||
"integrity": "sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==",
|
|
||||||
"dev": true,
|
|
||||||
"bin": {
|
|
||||||
"prettier": "bin/prettier.cjs"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=14"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/prettier/prettier?sponsor=1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/prettier-plugin-java": {
|
|
||||||
"version": "2.6.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/prettier-plugin-java/-/prettier-plugin-java-2.6.0.tgz",
|
|
||||||
"integrity": "sha512-mHZ3Ub3WAyYSUe1mMbiGH85xYV+NtzJgNsrfLNYDKvL7NfvoKBuJiEW4Xa2MFG668f9uRdj38WEuPKmRu+nv/g==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"java-parser": "2.3.0",
|
|
||||||
"lodash": "4.17.21",
|
|
||||||
"prettier": "3.2.5"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/prettier-plugin-java/node_modules/prettier": {
|
|
||||||
"version": "3.2.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz",
|
|
||||||
"integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==",
|
|
||||||
"dev": true,
|
|
||||||
"bin": {
|
|
||||||
"prettier": "bin/prettier.cjs"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=14"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/prettier/prettier?sponsor=1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/regexp-to-ast": {
|
|
||||||
"version": "0.5.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/regexp-to-ast/-/regexp-to-ast-0.5.0.tgz",
|
|
||||||
"integrity": "sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw==",
|
|
||||||
"dev": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
{
|
|
||||||
"name": "backend-dummy",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"private": true,
|
|
||||||
"description": "Dummy package for using prettier",
|
|
||||||
"license": "AGPL-3.0-or-later",
|
|
||||||
"scripts": {
|
|
||||||
"prettier:check": "prettier --check 'src/**/*.java' '*.json' '*.xml'",
|
|
||||||
"prettier:fix": "prettier --write 'src/**/*.java' '*.json' '*.xml'"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@prettier/plugin-xml": "^3.4.1",
|
|
||||||
"prettier": "^3.3.2",
|
|
||||||
"prettier-plugin-java": "^2.6.0"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -29,6 +29,9 @@
|
||||||
<jpamodelgen.version>6.5.2.Final</jpamodelgen.version>
|
<jpamodelgen.version>6.5.2.Final</jpamodelgen.version>
|
||||||
<lombok.version>1.18.34</lombok.version>
|
<lombok.version>1.18.34</lombok.version>
|
||||||
<mapstruct.version>1.5.5.Final</mapstruct.version>
|
<mapstruct.version>1.5.5.Final</mapstruct.version>
|
||||||
|
<spotless.version>2.43.0</spotless.version>
|
||||||
|
<spotless.prettier.version>3.3.2</spotless.prettier.version>
|
||||||
|
<spotless.prettier-plugin-java.version>2.6.0</spotless.prettier-plugin-java.version>
|
||||||
<spring.boot.version>3.3.1</spring.boot.version>
|
<spring.boot.version>3.3.1</spring.boot.version>
|
||||||
<spring.security.version>6.3.1</spring.security.version>
|
<spring.security.version>6.3.1</spring.security.version>
|
||||||
<springdoc-openapi-ui.version>2.5.0</springdoc-openapi-ui.version>
|
<springdoc-openapi-ui.version>2.5.0</springdoc-openapi-ui.version>
|
||||||
|
@ -274,6 +277,30 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.diffplug.spotless</groupId>
|
||||||
|
<artifactId>spotless-maven-plugin</artifactId>
|
||||||
|
<version>${spotless.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<java>
|
||||||
|
<prettier>
|
||||||
|
<devDependencies>
|
||||||
|
<prettier>${spotless.prettier.version}</prettier>
|
||||||
|
<prettier-plugin-java>${spotless.prettier-plugin-java.version}</prettier-plugin-java>
|
||||||
|
</devDependencies>
|
||||||
|
<config>
|
||||||
|
<tabWidth>4</tabWidth>
|
||||||
|
<printWidth>100</printWidth>
|
||||||
|
<parser>java</parser>
|
||||||
|
<plugins>prettier-plugin-java</plugins>
|
||||||
|
</config>
|
||||||
|
</prettier>
|
||||||
|
<licenseHeader>
|
||||||
|
<file>.license-header</file>
|
||||||
|
</licenseHeader>
|
||||||
|
</java>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<reporting>
|
<reporting>
|
||||||
|
|
Loading…
Reference in a new issue