From 036fcf142151236df02049c6d0dc9b01d24aa69a Mon Sep 17 00:00:00 2001 From: Caleb Fenton Date: Mon, 17 Feb 2020 13:01:10 -0800 Subject: [PATCH] Fix simplify fatjar task Fixes https://github.com/CalebFenton/simplify/issues/137 --- simplify/build.gradle | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/simplify/build.gradle b/simplify/build.gradle index 6e9245cea..19ef6220a 100644 --- a/simplify/build.gradle +++ b/simplify/build.gradle @@ -34,12 +34,11 @@ dependencies { test.dependsOn project(':smalivm').tasks.getByName('testClasses') task fatJar(type: Jar, dependsOn: ':smalivm:fatJar') { - from sourceSets.main.output - from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } - manifest { attributes('Main-Class': mainClassName) } + from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } + with jar doLast { if (!System.getProperty('os.name').toLowerCase().contains('windows')) {