Skip to content

Commit 17486c0

Browse files
authored
Prevent pom from containing JavaFX dependencies (#1155)
1 parent 1077cf0 commit 17486c0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

richtextfx/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66

77
plugins {
88
id 'java-library'
9-
id 'org.openjfx.javafxplugin' version '0.0.10'
9+
id 'org.openjfx.javafxplugin' version '0.0.13'
1010
id 'org.unbroken-dome.test-sets' version '4.0.0'
1111
id 'biz.aQute.bnd.builder' version "5.3.0"
1212
id 'maven-publish'
@@ -16,6 +16,11 @@ plugins {
1616
javafx {
1717
version = '11'
1818
modules = [ 'javafx.controls', 'javafx.fxml']
19+
def taskNames = gradle.getStartParameter().getTaskNames()
20+
// Prevent pom & module.json from containing JavaFX runtime dependencies
21+
if ( taskNames.stream().anyMatch( t -> t.startsWith('pub') ) ) {
22+
configuration = 'compileOnly'
23+
}
1924
}
2025

2126
// OSGi bundle is configured through the bnd.bnd file

0 commit comments

Comments
 (0)