From 7670a6d3330e7a954dfe464be6a3da29c45e46e4 Mon Sep 17 00:00:00 2001 From: Balbino Aylagas Date: Tue, 26 Apr 2022 17:32:03 -0600 Subject: [PATCH] rethink fat jar with compile dsl --- src/cfml/system/util/CompileDSL.cfc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/cfml/system/util/CompileDSL.cfc b/src/cfml/system/util/CompileDSL.cfc index 11f757a4..890d09e7 100644 --- a/src/cfml/system/util/CompileDSL.cfc +++ b/src/cfml/system/util/CompileDSL.cfc @@ -635,6 +635,18 @@ component accessors=true { } function buildFatJar() { + /* + is a self-sufficient archive which contains both classes and + dependencies needed to run an application + to make a fat jar + we need: + - Main-Class attribute in the manifest file + - include dependency jars + - it contains classes from all the libraries, on which your project depends + and of course the classes of the current project + - it has to do the same as + configurations.compile.collect{ it.isDirectory() ? it : zipTree( it ) } + */ j = "run fat jar "; shell.printString( " " & j & " " ); //command( j ).run();