diff --git a/lib/helpers/cmd_utils.dart b/lib/helpers/cmd_utils.dart index ed41ae6..1139377 100644 --- a/lib/helpers/cmd_utils.dart +++ b/lib/helpers/cmd_utils.dart @@ -44,14 +44,15 @@ class CmdUtils { /// Returns a ";" or ":" separated string of dependencies. static String generateClasspath(List entities, - {List exclude = const [''], + {List exclude = const [], Directory? classesDir, bool relative = true}) { - exclude.addAll([ + final List excludeList = [ + ...exclude, 'runtime-sources.jar', 'annotations-sources.jar', 'kotlin-stdlib-sources.jar', - ]); + ]; final jars = []; @@ -62,7 +63,7 @@ class CmdUtils { .whereType() .where((el) => p.extension(el.path) == '.jar' && - !exclude.contains(p.basename(el.path))) + !excludeList.contains(p.basename(el.path))) .forEach((el) { if (relative) { jars.add(p.relative(el.path));