@@ -0,0 +1,1634 @@
+/*%0A * Bach - Java Shell Builder%0A * Copyright (C) 2020 Christian Stein%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     https://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage de.sormuras.bach.project.library;%0A%0Aimport de.sormuras.bach.project.Locator;%0Aimport java.util.Locale;%0A%0A/**%0A * OpenJFX is an open source, next generation client application platform.%0A *%0A * @see %3Ca href=%22https://openjfx.io%22%3Eopenjfx.io%3C/a%3E%0A */%0Apublic /*static*/ class JavaFXModules extends Locator.AbstractLocator %7B%0A%0A  public JavaFXModules() %7B%0A    putJavaFX(%2214.0.1%22, %22base%22, %22controls%22, %22fxml%22, %22graphics%22, %22media%22, %22swing%22, %22web%22);%0A  %7D%0A%0A  private void putJavaFX(String version, String... names) %7B%0A    var group = %22org.openjfx%22;%0A    var os = System.getProperty(%22os.name%22).toLowerCase(Locale.ENGLISH);%0A    var win = os.contains(%22win%22);%0A    var mac = os.contains(%22mac%22);%0A    var classifier = win ? %22win%22 : mac ? %22mac%22 : %22linux%22;%0A    for (var name : names) %7B%0A      var module = %22javafx.%22 + name;%0A      var artifact = %22javafx-%22 + name;%0A      var gav = String.join(%22:%22, group, artifact, version, classifier);%0A      var link = Maven.central(gav, module, 0, null);%0A      put(module, link);%0A    %7D%0A  %7D%0A%7D%0A

Add JavaFX modules locator