Skip to content

Commit 1e405bd

Browse files
MeherSruMeher Srujana Matcha
andauthored
Add setting for Maven project name template (#4557)
* Add setting for Maven project name template (#4552) * Mention same groupId/artifactId use case in description --------- Co-authored-by: Meher Srujana Matcha <mehersrujana.matcha@ibm.com>
1 parent e81c5d4 commit 1e405bd

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ The following settings are supported:
239239
* `java.compile.nullAnalysis.nullable`: Specify the Nullable annotation types to be used for null analysis. If more than one annotation is specified, then the topmost annotation will be used first if it exists in your project dependencies. This setting will be ignored if `java.compile.nullAnalysis.mode` is set to `disabled`.
240240
* `java.compile.nullAnalysis.nonnullbydefault`: Specify the NonNullByDefault annotation types to be used for null analysis. If more than one annotation is specified, then the topmost annotation will be used first if it exists in your project dependencies. This setting will be ignored if `java.compile.nullAnalysis.mode` is set to `disabled`.
241241
* `java.import.maven.offline.enabled`: Enable/disable the Maven offline mode. Defaults to `false`.
242+
* `java.import.maven.projectNameTemplate`: Specifies the template used to name imported Maven projects, e.g. `[groupId]-[artifactId]-[version]`. This is helpful when importing projects with the same groupId and artifactId but a different version. Supported variables are `[groupId]`, `[artifactId]`, `[version]` and `[name]`. Already imported projects keep their name until the workspace is cleaned.
242243
* `java.codeAction.sortMembers.avoidVolatileChanges`: Reordering of fields, enum constants, and initializers can result in semantic and runtime changes due to different initialization and persistence order. This setting prevents this from occurring. Defaults to `true`.
243244
* `java.jdt.ls.protobufSupport.enabled`: Specify whether to automatically add Protobuf output source directories to the classpath. **Note:** Only works for Gradle `com.google.protobuf` plugin `0.8.4` or higher. Defaults to `true`.
244245
* `java.jdt.ls.aspectjSupport.enabled`: Specify whether to enable `io.freefair.aspectj` plugin in Gradle projects. Defaults to `false`.

‎package.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,13 @@
700700
"scope": "window",
701701
"order": 20
702702
},
703+
"java.import.maven.projectNameTemplate": {
704+
"type": "string",
705+
"default": null,
706+
"markdownDescription": "Specifies the template used to name imported Maven projects, e.g. `[groupId]-[artifactId]-[version]`. This is helpful when importing projects with the same groupId and artifactId but a different version. Supported variables are `[groupId]`, `[artifactId]`, `[version]` and `[name]`. Already imported projects keep their name until the workspace is cleaned.",
707+
"scope": "window",
708+
"order": 25
709+
},
703710
"java.import.maven.disableTestClasspathFlag": {
704711
"type": "boolean",
705712
"default": false,

0 commit comments

Comments
 (0)