ApplicationModelWorkerImpl

mill.javalib.quarkus.ApplicationModelWorkerImpl

The ApplicationModelWorker is mill's integration against Quarkus bootstrapping.

At the moment there are 2 stages supported:

  1. Create a single module's Application Model and serialize it
  2. Feed the deserialised model from step 1 to QuarkusBootstrap and execute the Quarkus build with an AugmentAction

In addition, a helper method supports picking in the library or module dependencies to detect which have deployment dependencies.

For more information on that see https://quarkus.io/guides/conditional-extension-dependencies

Attributes

Source
ApplicationModelWorkerImpl.scala
Graph
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def artifactSources(moduleData: ModuleData): ArtifactSources
override def close(): Unit

Attributes

Definition Classes
AutoCloseable
Source
ApplicationModelWorkerImpl.scala
def quarkusBootstrapApplication(applicationModelFile: Path, destRunJar: Path, jar: Path, buildProperties: Path): QuarkusApp

Bootstraps a Quarkus Application with the application model provided (usually created by quarkusGenerateApplicationModel). Needs a target directory and a compiled artifact (jar)

Bootstraps a Quarkus Application with the application model provided (usually created by quarkusGenerateApplicationModel). Needs a target directory and a compiled artifact (jar)

Value parameters

applicationModelFile

The path of the serialized application model file

destRunJar

The directory to store the resulting quarkus-run.jar

jar

The jar created by the Mill JavaModule (outside of Quarkus)

Attributes

Returns

The path of the resulting quarkus-run.jar

Source
ApplicationModelWorkerImpl.scala
override def quarkusCodeGen(appModel: AppModel, generatedSourcesDir: Path, sourcesDir: Seq[Path], buildDir: Path, buildProperties: Path, launchMode: LaunchMode, isTest: Boolean): Path

Uses Quarkus CodeGenContext to generate code for the given application model. Quarkus does not rely on Javac annotation processors but has its own bespoke process that is fully managed. Adaptation from io.quarkus.gradle.tasks.worker.CodeGenWorker

Uses Quarkus CodeGenContext to generate code for the given application model. Quarkus does not rely on Javac annotation processors but has its own bespoke process that is fully managed. Adaptation from io.quarkus.gradle.tasks.worker.CodeGenWorker

Attributes

Definition Classes
Source
ApplicationModelWorkerImpl.scala
override def quarkusDeploymentDependencies(runtimeDeps: Seq[Dependency]): Seq[Dependency]

A helper method for any Mill QuarkusModule that detects which dependencies are runtime extension artifacts and thus have a deployment equivalent as specified in https://quarkus.io/guides/conditional-extension-dependencies

A helper method for any Mill QuarkusModule that detects which dependencies are runtime extension artifacts and thus have a deployment equivalent as specified in https://quarkus.io/guides/conditional-extension-dependencies

Value parameters

runtimeDeps

The already resolved runtime dependencies

Attributes

Returns

The sublist of the runtimeDeps, which are extension runtime deps.

Definition Classes
Source
ApplicationModelWorkerImpl.scala
override def quarkusGenerateApplicationModel(appModel: AppModel, destination: Path): Path

Value parameters

appModel

The AppModel domain object

destination

The directory to store the serialized application model file (*.dat)

Attributes

Returns

The path of the file with the serialized Quarkus Application Model

Definition Classes
Source
ApplicationModelWorkerImpl.scala