From 4b6f00e40ebf07462e8d0c3e1eeae5053b4e4472 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 11 Apr 2022 12:12:19 +0200 Subject: [PATCH] Set mainClass name in application section --- sop-java-picocli/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sop-java-picocli/build.gradle b/sop-java-picocli/build.gradle index f224a76..27f9daf 100644 --- a/sop-java-picocli/build.gradle +++ b/sop-java-picocli/build.gradle @@ -23,6 +23,10 @@ dependencies { mainClassName = 'sop.cli.picocli.SopCLI' +application { + mainClass = mainClassName +} + jar { manifest { attributes 'Main-Class': "$mainClassName"