Commit a01f401
committed
Honor system property to suppress Gradle API
This applies a workaround to gradle/plugin-portal-requests#260 when the
Shadow plugin is applied where the local Gradle API is added to the
`compileOnly` configuration even if the
`org.gradle.unsafe.suppress-gradle-api` system property is used. Which,
we do.
This workaround is written in a way that even after this is fixed by the
Plugin Publish plugin, it won't break anything. It just helps remove
some clutter from the buildscript.1 parent 167c12d commit a01f401
File tree
1 file changed
+10
-0
lines changed- src/main/groovy/net/minecraftforge/gradleutils
1 file changed
+10
-0
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
145 | 155 | | |
146 | 156 | | |
147 | 157 | | |
| |||
0 commit comments