Dependencies Configurations

This chapter describes all the dependency configurations added to your project by the MicroEJ Gradle plugins.

Note

The MicroEJ Gradle plugins extend the Gradle Java and Java Library plugins. For more information about the configurations inherited from those plugins, refer to the official documentation :

The following graph describes the dependency configurations. Use this legend to interpret the colors:

  • Green background : Dependencies can be declared against this configuration

  • Gray background : This configuration is for consumption by tasks only

  • Blue background : A task

digraph mygraph {
    rankdir="BT";
    bgcolor="transparent"
    fontname="Helvetica,Arial,sans-serif"
    node [
        shape = box
        width = 1.5
        color = "#7dc5dc"
        style = filled
        fontname="Helvetica,Arial,sans-serif"
    ]
    edge [fontname="Helvetica,Arial,sans-serif"]
    "microejVee" [fillcolor = "#41f753"]
    "microejApplication" [fillcolor = "#41f753"]
    "microejTool" [fillcolor = "#41f753"]
    "microejRuntimeEnvironment" [fillcolor = "#41f753"]
    "microejApplicationClasspath" [fillcolor = "#b0d6d3"]
    "microejVeeClasspath" [fillcolor = "#b0d6d3"]
    "microejKernelExecutableClasspath" [fillcolor = "#b0d6d3"]
    "virtualDeviceToolClasspath" [fillcolor = "#b0d6d3"]
    "microejRuntimeEnvironmentCompileClasspath" [fillcolor = "#b0d6d3"]
    "microejRuntimeEnvironmentRuntimeClasspath" [fillcolor = "#b0d6d3"]

    "loadVee" -> "microejVeeClasspath" [ label="uses" ]
    "microejVeeClasspath" -> "microejVee"
    "loadKernelExecutable" -> "microejKernelExecutableClasspath" [ label="uses" ]
    "microejKernelExecutableClasspath" -> "microejVee"
    "buildVirtualDevice" -> "microejApplicationClasspath" [ label="uses" ]
    "buildVirtualDevice" -> "virtualDeviceToolClasspath" [ label="uses" ]
    "microejApplicationClasspath" -> "microejApplication"
    "virtualDeviceToolClasspath" -> "microejTool"
    "microejRuntimeEnvironmentCompileClasspath" -> "microejRuntimeEnvironment"
    "microejRuntimeEnvironmentRuntimeClasspath" -> "microejRuntimeEnvironment"
    "compileJava" -> "microejRuntimeEnvironmentCompileClasspath" [ label="uses" ]
    "compileTestJava" -> "microejRuntimeEnvironmentCompileClasspath" [ label="uses" ]
    "javadoc" -> "microejRuntimeEnvironmentCompileClasspath" [ label="uses" ]
    "buildVirtualDevice" -> "microejRuntimeEnvironmentRuntimeClasspath" [ label="uses" ]
    "buildApplicationObjectFile" -> "microejRuntimeEnvironmentRuntimeClasspath" [ label="uses" ]
    "buildExecutable" -> "microejRuntimeEnvironmentRuntimeClasspath" [ label="uses" ]
}

The MicroEJ Gradle plugins also define dependency configurations for internal use:

Publication Variants

The Application plugin defines a list of variants that are used during the publication of an Application.

microejWPK

This variant is used to publish the WPK of an Application, that can be fetched by declaring a dependency with the microejApplication configuration. The LibraryElement attribute of the variant is set to microej-wpk.

microejExecutable

This variant is used to publish the Executable of an Application, that can be fetched by declaring a dependency with the microejVee configuration. The LibraryElement attribute of the variant is set to microej-executable.

microejExecutableBuildFiles

This variant is used to publish the files generated when building the Executable of an Application. The LibraryElement attribute of the variant is set to microej-build-files.

microejVirtualDevice

This variant is used to publish the Virtual Device of an Application, that can be fetched by declaring a dependency with the microejVee configuration. The LibraryElement attribute of the variant is set to microej-vee-port.

microejMockRip

This variant is used to publish a Mock. The LibraryElement attribute of the variant is set to microej-rip.

runtimeEnvironment

This variant is used to publish a Runtime Environment, that can be fetched by declaring a dependency with the microejRuntimeEnvironment configuration. The LibraryElement attribute of the variant is set to microej-runtime-environment.