Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/@unreleased/pr-1668.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: improvement
improvement:
description: Internal `ImmutablesStyle` annotations are now excluded from Intellij auto-imports and completion.
links:
- https://github.com/palantir/gradle-baseline/pull/1668
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class BaselineIdea extends AbstractBaselinePlugin {
addInspectionProjectProfile(node)
addJavacSettings(node)
addGitHubIssueNavigation(node)
ignoreCommonShadedPackages(node)
addExcludedAutoImports(node)
}
configureProjectForIntellijImport(rootProject)

Expand Down Expand Up @@ -430,7 +430,7 @@ class BaselineIdea extends AbstractBaselinePlugin {
}
}

private static void ignoreCommonShadedPackages(Node node) {
private static void addExcludedAutoImports(Node node) {
// language=xml
node.append(new XmlParser().parseText('''
<component name="JavaProjectCodeInsightSettings">
Expand All @@ -440,6 +440,9 @@ class BaselineIdea extends AbstractBaselinePlugin {
<name>autovalue.shaded</name>
<name>org.inferred.freebuilder.shaded</name>
<name>org.immutables.value.internal</name>
<name>com.palantir.conjure.java.client.config.ImmutablesStyle</name>
<name>com.palantir.sls.versionsImmutablesStyle</name>
<name>com.palantir.tokens.auth.ImmutablesStyle</name>
</excluded-names>
</component>
'''.stripIndent()))
Expand Down