From 05a47fd1c5eace9c55417ea7fa3b3b633259c290 Mon Sep 17 00:00:00 2001 From: William Date: Mon, 8 May 2023 20:56:49 +0100 Subject: [PATCH] Add Automatic-Module-Name --- build.gradle | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 11f5a65..3e86fde 100644 --- a/build.gradle +++ b/build.gradle @@ -25,16 +25,23 @@ dependencies { testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.3' } -compileJava.options.encoding = 'UTF-8' - -tasks.withType(JavaCompile).configureEach { - options.encoding = 'UTF-8' -} - logger.lifecycle("Building PagineDown ${version} by William278") version rootProject.version archivesBaseName = "${rootProject.name}" +tasks { + compileJava { + options.encoding = 'UTF-8' + options.release.set(11) + } + jar { + manifest { + attributes('Automatic-Module-Name': 'net.william278.paginedown') + } + } +} + + license { header = rootProject.file('HEADER') include '**/*.java'