Skip to content

Commit

Permalink
Prevent pom from containing JavaFX dependencies (#1155)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jugen authored Nov 17, 2022
1 parent 1077cf0 commit 17486c0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion richtextfx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

plugins {
id 'java-library'
id 'org.openjfx.javafxplugin' version '0.0.10'
id 'org.openjfx.javafxplugin' version '0.0.13'
id 'org.unbroken-dome.test-sets' version '4.0.0'
id 'biz.aQute.bnd.builder' version "5.3.0"
id 'maven-publish'
Expand All @@ -16,6 +16,11 @@ plugins {
javafx {
version = '11'
modules = [ 'javafx.controls', 'javafx.fxml']
def taskNames = gradle.getStartParameter().getTaskNames()
// Prevent pom & module.json from containing JavaFX runtime dependencies
if ( taskNames.stream().anyMatch( t -> t.startsWith('pub') ) ) {
configuration = 'compileOnly'
}
}

// OSGi bundle is configured through the bnd.bnd file
Expand Down

0 comments on commit 17486c0

Please sign in to comment.