Commits

shemnon committed ddfeb7c

trim jar size, fix samples (again)

  • Participants
  • Parent commits b6ffcd8

Comments (0)

Files changed (1)

File build.gradle

     classpath = project.sourceSets.main.compileClasspath + configurations.jdk
 }
 
+jar {
+    exclude '**/*.ico'
+    exclude '**/*.icns'
+    exclude '**/32/*'
+    exclude '**/64/*'
+    exclude '**/128/*'
+}
+
 task jarSamples (type: Jar) {
     classifier='samples'
     from sourceSets.samples.output
 ['HelloDialog', 'HelloGridView', 'HelloRangeSlider', 'HelloRating', 'HelloSegmentedButton', 'HelloToggleSwitch', 'SVGTest'].each { name ->
     task "$name" (type: JavaExec) {
         main = "org.controlsfx.samples.$name"
-        classpath = sourceSets.samples.runtimeClasspath
+        classpath = sourceSets.samples.runtimeClasspath + sourceSets.main.runtimeClasspath + configurations.jdk
     }
 }