From 4cbe5bf3f8adf24730aa9c4e2d039ffe095006cd Mon Sep 17 00:00:00 2001 From: Mark Raynsford Date: Thu, 8 Feb 2018 13:04:49 +0000 Subject: [PATCH] Add Automatic-Module-Name This adds an Automatic-Module-Name entry to the produced jar for the project. The chosen module name is "org.anarres.jcpp". Fix #35 --- build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle b/build.gradle index a9dd186..97be156 100644 --- a/build.gradle +++ b/build.gradle @@ -54,3 +54,9 @@ testClasses.dependsOn(processTestVersionResources) apply plugin: 'application' mainClassName = "org.anarres.cpp.Main" + +jar { + manifest { + attributes 'Automatic-Module-Name': 'org.anarres.jcpp' + } +}