t

mill.scalalib

NativeImageModule

trait NativeImageModule extends BaseClass with WithZincWorker

Provides a task to build a native executable using Graal VM.

It is recommended to specify a custom JDK that includes the native-image Tool.

trait AppModule extends NativeImageModule {
  def zincWorker = ModuleRef(ZincWorkerGraalvm)

  object ZincWorkerGraalvm extends ZincWorkerModule {
    def jvmId = "graalvm-community:23.0.1"
  }
}
Annotations
@experimental()
Source
NativeImageModule.scala
Linear Supertypes
WithZincWorker, define.Module, BaseClass, Cacher, Cacher, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NativeImageModule
  2. WithZincWorker
  3. Module
  4. BaseClass
  5. Cacher
  6. Cacher
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def finalMainClass: T[String]
  2. abstract def runClasspath: T[Seq[PathRef]]

Concrete Value Members

  1. object millInternal extends Internal

    Miscellaneous machinery around traversing & querying the build hierarchy, that should not be needed by normal users of Mill

    Miscellaneous machinery around traversing & querying the build hierarchy, that should not be needed by normal users of Mill

    Definition Classes
    Module
    Annotations
    @internal()
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##: Int
    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def cachedTarget[T](t: => T)(implicit c: Enclosing): T
    Attributes
    protected[this]
    Definition Classes
    Cacher → Cacher
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. implicit def millModuleBasePath: BasePath
    Definition Classes
    Module
  14. def millModuleDirectChildren: Seq[define.Module]
    Definition Classes
    Module
  15. implicit def millModuleExternal: External
    Definition Classes
    Module
  16. implicit def millModuleSegments: Segments
    Definition Classes
    Module
  17. implicit def millModuleShared: Foreign
    Definition Classes
    Module
  18. def millOuterCtx: Ctx
    Definition Classes
    BaseClass
  19. def millSourcePath: Path
    Definition Classes
    Module
  20. def nativeImage: T[PathRef]

    Builds a native executable for this module with finalMainClass as the application entry point.

  21. def nativeImageClasspath: T[Seq[PathRef]]

    The classpath to use to generate the native image.

    The classpath to use to generate the native image. Defaults to runClasspath.

  22. def nativeImageOptions: T[Seq[String]]

    Additional options for the native-image Tool.

    Additional options for the native-image Tool.

    Note

    It is recommended to restrict this list to options that can be shared across targets.

  23. def nativeImageTool: T[PathRef]

    Path to the native-image Tool.

    Path to the native-image Tool. Defaults to a path relative to

    Note

    The task fails if the native-image Tool is not found.

  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    Module → AnyRef → Any
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. def zincWorker: ModuleRef[ZincWorkerModule]
    Definition Classes
    WithZincWorker

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from WithZincWorker

Inherited from define.Module

Inherited from BaseClass

Inherited from Cacher

Inherited from Cacher

Inherited from AnyRef

Inherited from Any

Ungrouped