changeset 11052:b3da7e2896ae

8210359: Do not publish Swing when it is not compiled. Reviewed-by: kcr
author jvos
date Tue, 04 Sep 2018 20:13:06 +0200
parents 4e93d92836d6
children 240c59f7a492
files build.gradle
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/build.gradle	Tue Sep 04 16:24:17 2018 +0200
+++ b/build.gradle	Tue Sep 04 20:13:06 2018 +0200
@@ -2437,7 +2437,9 @@
 
     compileJava.options.compilerArgs.addAll(qualExportsSwing)
 
-    addMavenPublication(project, [ 'graphics' ])
+    if (COMPILE_SWING) {
+        addMavenPublication(project, [ 'graphics' ])
+    }
 }
 
 project(":swt") {