Skip to content

Commit

Permalink
Mark jar as multirelease
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt committed Aug 13, 2024
1 parent 404c0a6 commit ebbd64c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@ shadowJar {
mergeServiceFiles()
archiveClassifier = 'all'
archiveFile.set(project.file("$buildDir/libs/reactionable-all.jar"))
manifest {
attributes(['Multi-Release': true])
}
}
3 changes: 0 additions & 3 deletions src/main/java/net/neoforged/automation/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import net.neoforged.automation.webhook.impl.GitHubEvent;
import net.neoforged.automation.webhook.impl.WebhookHandler;
import org.kohsuke.github.GitHubBuilder;
import org.kohsuke.github.extras.HttpClientGitHubConnector;

import java.io.IOException;
import java.nio.file.Path;
Expand All @@ -31,7 +30,6 @@ public static void main(String[] args) throws IOException, NoSuchAlgorithmExcept
AuthUtil.parsePKCS8(startupConfig.get("gitHubAppKey", "")),
ghApp -> ghApp.getInstallationByOrganization(startupConfig.get("gitHubAppOrganization", ""))
))
.withConnector(new HttpClientGitHubConnector())
.build();

var location = Configuration.load(gitHub, startupConfig);
Expand All @@ -55,7 +53,6 @@ public static WebhookHandler setupWebhookHandlers(StartupConfiguration startupCo
AuthUtil.parsePKCS8(startupConfig.get("releasesGitHubAppKey", "")),
ghApp -> ghApp.getInstallationByOrganization(startupConfig.get("releasesGitHubAppOrganization", ""))
))
.withConnector(new HttpClientGitHubConnector())
.build()))
.registerFilteredHandler(GitHubEvent.ISSUES, new LabelLockHandler(), GHAction.LABELED, GHAction.UNLABELED)
.registerFilteredHandler(GitHubEvent.WORKFLOW_RUN, new PRActionRunnerHandler(), GHAction.COMPLETED)
Expand Down

0 comments on commit ebbd64c

Please sign in to comment.