From a258a5f7853f892cbf838761233ef256ace65a4d Mon Sep 17 00:00:00 2001 From: KKlochko Date: Sun, 15 Oct 2023 12:59:04 +0300 Subject: [PATCH] Update the build configuration to make the JAR file. --- build.gradle | 12 +++++++++++- pom.xml | 37 ++++++++++++++++++++++++++----------- 2 files changed, 37 insertions(+), 12 deletions(-) diff --git a/build.gradle b/build.gradle index a35f9b3..c302b7d 100644 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,21 @@ plugins { id('groovy') + id('application') + id 'com.github.johnrengelman.shadow' version '7.1.2' } version = "1.0" description = "simple-jbdd is a simple BDD testing framework for Java." -// Spock works with Java 1.8 and above +application { + mainClassName = 'space.kklochko.simple_jbdd.Main' +} + +shadowJar { + mergeServiceFiles() + minimize() +} + java { toolchain { languageVersion.set(JavaLanguageVersion.of(17)) diff --git a/pom.xml b/pom.xml index b6b0e19..4264f9a 100644 --- a/pom.xml +++ b/pom.xml @@ -18,6 +18,32 @@ + + org.apache.maven.plugins + maven-jar-plugin + 3.2.2 + + + + space.kklochko.simple_jbdd.Main + true + + + + + + org.apache.maven.plugins + maven-shade-plugin + 3.4.1 + + + package + + shade + + + + - - com.h2database - h2 - 2.2.222 - - - org.apache.groovy - groovy-sql - ${groovy.version} -