Commit 5039552
committed
Add flag to set publication artifact ID from base.archivesName
Apologies for forgetting how unbelievably inconsistent Gradle can be.
The project's `base.archivesName` is used as the base name for archives,
but that name isn't used for publications even though it's used for the
archives. It's deep in internals, but publication name is set by
`project.name`. When writing our buildscripts, I was under the
impression that `base.archivesName` was used for the artifact ID for
publications. Thankfully, most of our projects already use the project
name as the artifact ID, so there has been no impact.
I've added it in GradleUtils but it's disabled by default. You can use
it by setting this flag in your `gradle.properties`:
```properties
net.minecraftforge.gradleutils.publishing.use-base-archives-name=true
```1 parent bbad8b1 commit 5039552
File tree
1 file changed
+16
-0
lines changed- src/main/groovy/net/minecraftforge/gradleutils
1 file changed
+16
-0
lines changedLines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| 124 | + | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
127 | 131 | | |
128 | 132 | | |
| 133 | + | |
| 134 | + | |
129 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
130 | 146 | | |
131 | 147 | | |
132 | 148 | | |
| |||
0 commit comments