mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
as named instead of get by name
also multi line test a
This commit is contained in:
parent
e71a81468d
commit
e5efdf0c5a
1 changed files with 1 additions and 1 deletions
|
|
@ -369,7 +369,7 @@ hangarPublish {
|
||||||
register(Platforms.PAPER) {
|
register(Platforms.PAPER) {
|
||||||
// Set the JAR file to upload
|
// Set the JAR file to upload
|
||||||
var task = if(isOnline) tasks.shadowJar
|
var task = if(isOnline) tasks.shadowJar
|
||||||
else tasks.getByName("offlineJar") as TaskProvider<ShadowJar>
|
else tasks.named("offlineJar") as TaskProvider<ShadowJar>
|
||||||
|
|
||||||
jar.set(task.flatMap { it.archiveFile })
|
jar.set(task.flatMap { it.archiveFile })
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue