File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
src/main/groovy/net/minecraftforge/gradleutils Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -34,20 +34,18 @@ abstract class PromoteArtifact extends DefaultTask {
3434 @Inject
3535 abstract ProviderFactory getProviders ()
3636
37+ @Inject
3738 PromoteArtifact (MavenPublication publication ) {
3839 this . promotionType. convention Type . LATEST
3940
40- final webhookURL0 = GradleUtils . getEnvVar(' PROMOTE_ARTIFACT_WEBHOOK' , this . providers)
41- final username0 = GradleUtils . getEnvVar(' PROMOTE_ARTIFACT_USERNAME' , this . providers)
42- final password0 = GradleUtils . getEnvVar(' PROMOTE_ARTIFACT_PASSWORD' , this . providers)
43- this . onlyIf { webhookURL0. present && username0. present && password0. present }
44-
4541 this . artifactGroup. set this . providers. provider { publication. groupId }
4642 this . artifactName. set this . providers. provider { publication. artifactId }
4743 this . artifactVersion. set this . providers. provider { publication. version }
48- this . webhookURL. set webhookURL0
49- this . username. set username0
50- this . password. set password0
44+ this . webhookURL. set GradleUtils . getEnvVar(' PROMOTE_ARTIFACT_WEBHOOK' , this . providers)
45+ this . username. set GradleUtils . getEnvVar(' PROMOTE_ARTIFACT_USERNAME' , this . providers)
46+ this . password. set GradleUtils . getEnvVar(' PROMOTE_ARTIFACT_PASSWORD' , this . providers)
47+
48+ this . onlyIf { this . webhookURL. present && this . username. present && this . password. present }
5149 }
5250
5351 @Input
You can’t perform that action at this time.
0 commit comments