Skip to content

Commit 2fe59c1

Browse files
authored
Merge branch 'master' into renovate/major-commitlint-monorepo
2 parents 6b6c856 + e8c9843 commit 2fe59c1

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn commitlint --edit $1

apps/generator-cli/src/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,26 @@ Further it is also possible to configure generators, for example:
158158
If `openapi-generator-cli generate` is called without further arguments, then the configuration
159159
is automatically used to generate your code. 🎉
160160

161+
### Using custom / private maven registry
162+
163+
If you're using a private maven registry you can configure the `downloadUrl` and `queryUrl` like this:
164+
165+
```json
166+
{
167+
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
168+
"spaces": 2,
169+
"generator-cli": {
170+
"version": "5.3.0",
171+
"repository": {
172+
"queryUrl": "https://private.maven.intern/solrsearch/select?q=g:${group.id}+AND+a:${artifact.id}&core=gav&start=0&rows=200",
173+
"downloadUrl": "https://private.maven.intern/maven2/${groupId}/${artifactId}/${versionName}/${artifactId}-${versionName}.jar"
174+
}
175+
}
176+
}
177+
```
178+
179+
If the `version` property param is set it is not necessary to configure the `queryUrl`.
180+
161181

162182
##### Available placeholders
163183

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@
2929
"publishConfig": {
3030
"registry": "https://registry.npmjs.org"
3131
},
32-
"husky": {
33-
"hooks": {
34-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
35-
}
36-
},
3732
"keywords": [
3833
"rest-api",
3934
"rest-client",

0 commit comments

Comments
 (0)