Verwendung von Apielements und Laufzeitkonfigurationen mit Gradle Java-Bibliotheks-PluginJava

Java-Forum
Guest
 Verwendung von Apielements und Laufzeitkonfigurationen mit Gradle Java-Bibliotheks-Plugin

Post by Guest »

Der Gradle Java-Library Plugin listet verschiedene Konfigurationen auf, mit denen Abhängigkeiten deklariert werden können.

Code: Select all

Table 2. Java Library plugin — configurations used by consumers
+--------------------+------------------------------------+-------------+-------------+------------------------------------------------------------------------------------------------------------------------------+
| Configuration name |                Role                | Consumable? | Resolvable? |                                                         Description                                                          |
+--------------------+------------------------------------+-------------+-------------+------------------------------------------------------------------------------------------------------------------------------+
| apiElements        | For compiling against this library | yes         | no          | This configuration is meant to be used by consumers, to retrieve all the elements necessary to compile against this library. |
| runtimeElements    | For executing this library         | yes         | no          | This configuration is meant to be used by consumers, to retrieve all the elements necessary to run against this library.     |
+--------------------+------------------------------------+-------------+-------------+------------------------------------------------------------------------------------------------------------------------------+
< /code>
Die einzige Referenz, die ich bezüglich der Verwendung dieser Konfigurationen finden konnte, ist eine Frage im Gradle -Forum, die beim Bestehen eine knappe Antwort erhielt. < /p>

apiElements
und RunTimeElements sind für Endbenutzer nicht wichtig. Sie sind hauptsächlich für Plugin-Autoren vorhanden, um benutzerdefinierte Konfigurationen zu verdrahten.>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post