Skip to content

Commit 53bd00b

Browse files
authored
Suppress usages of conventionMapping (#1739)
1 parent c2cd2ce commit 53bd00b

File tree

2 files changed

+1
-44
lines changed

2 files changed

+1
-44
lines changed

gradle/lint-baseline.xml

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -78,50 +78,6 @@
7878
column="14"/>
7979
</issue>
8080

81-
<issue
82-
id="InternalGradleApiUsage"
83-
message="Avoid using internal Gradle APIs (method map from org.gradle.api.internal.ConventionMapping)"
84-
errorLine1=" task.conventionMapping.map(&quot;applicationName&quot;, ::getApplicationName)"
85-
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
86-
<location
87-
file="src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowApplicationPlugin.kt"
88-
line="72"
89-
column="9"/>
90-
</issue>
91-
92-
<issue
93-
id="InternalGradleApiUsage"
94-
message="Avoid using internal Gradle APIs (method map from org.gradle.api.internal.ConventionMapping)"
95-
errorLine1=" task.conventionMapping.map(&quot;outputDir&quot;) { layout.buildDirectory.dir(&quot;scriptsShadow&quot;).get().asFile }"
96-
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
97-
<location
98-
file="src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowApplicationPlugin.kt"
99-
line="73"
100-
column="9"/>
101-
</issue>
102-
103-
<issue
104-
id="InternalGradleApiUsage"
105-
message="Avoid using internal Gradle APIs (method map from org.gradle.api.internal.ConventionMapping)"
106-
errorLine1=" task.conventionMapping.map(&quot;executableDir&quot;, ::getExecutableDir)"
107-
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
108-
<location
109-
file="src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowApplicationPlugin.kt"
110-
line="74"
111-
column="9"/>
112-
</issue>
113-
114-
<issue
115-
id="InternalGradleApiUsage"
116-
message="Avoid using internal Gradle APIs (method map from org.gradle.api.internal.ConventionMapping)"
117-
errorLine1=" task.conventionMapping.map(&quot;defaultJvmOpts&quot;, ::getApplicationDefaultJvmArgs)"
118-
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
119-
<location
120-
file="src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowApplicationPlugin.kt"
121-
line="75"
122-
column="9"/>
123-
</issue>
124-
12581
<issue
12682
id="InternalGradleApiUsage"
12783
message="Avoid using internal Gradle APIs"

src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowApplicationPlugin.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public abstract class ShadowApplicationPlugin : Plugin<Project> {
5858

5959
task.classpath = files(tasks.shadowJar)
6060

61+
@Suppress("InternalGradleApiUsage") // Usages of conventionMapping.
6162
with(applicationExtension) {
6263
task.mainModule.convention(mainModule)
6364
task.mainClass.convention(mainClass)

0 commit comments

Comments
 (0)