Package io.quarkus.gradle.extension
Class QuarkusPluginExtension
java.lang.Object
io.quarkus.gradle.tasks.AbstractQuarkusExtension
io.quarkus.gradle.extension.QuarkusPluginExtension
-
Field Summary
FieldsFields inherited from class io.quarkus.gradle.tasks.AbstractQuarkusExtension
buildForkOptions, cachingRelevantProperties, codeGenForkOptions, finalName, project, projectDir, QUARKUS_PROFILE, quarkusBuildProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildForkOptions(org.gradle.api.Action<? super org.gradle.process.JavaForkOptions> action) Adds an action to configure theJavaForkOptionsto build a Quarkus application.voidcodeGenForkOptions(org.gradle.api.Action<? super org.gradle.process.JavaForkOptions> action) Adds an action to configure theJavaForkOptionsto generate Quarkus code.static org.gradle.api.file.FileCollectioncombinedOutputSourceDirs(org.gradle.api.Project project) io.quarkus.bootstrap.model.ApplicationModelio.quarkus.bootstrap.model.ApplicationModelgetApplicationModel(io.quarkus.runtime.LaunchMode mode) io.quarkus.bootstrap.resolver.AppModelResolverio.quarkus.bootstrap.resolver.AppModelResolvergetAppModelResolver(io.quarkus.runtime.LaunchMode mode) org.gradle.api.provider.Property<Boolean> Whether large build artifacts, like uber-jar and native runners, are cached.org.gradle.api.provider.ListProperty<String> org.gradle.api.provider.Property<Boolean> Whether the build output, build/*-runner[.jar] and build/quarkus-app, for other package types than the currently configured one are removed, default is 'true'.org.gradle.api.provider.ListProperty<String> The directories of code generation inputs, only needed if using a customer extension that provides its own code generator.org.gradle.api.provider.ListProperty<String> The identifiers of the code generation providers, only needed if using a customer extension that provides its own code generator.org.gradle.api.provider.Property<String> static FilegetLastFile(org.gradle.api.file.FileCollection fileCollection) Returns the last file from the specifiedFileCollection.voidvoidvoidvoidsetCacheLargeArtifacts(boolean cacheLargeArtifacts) voidsetCleanupBuildOutput(boolean cleanupBuildOutput) voidsetCodeGenerationInputs(List<String> codeGenerationInputs) voidsetCodeGenerationProviders(List<String> codeGenerationProviders) voidsetFinalName(String finalName) voidsourceSets(org.gradle.api.Action<? super SourceSetExtension> action) Methods inherited from class io.quarkus.gradle.tasks.AbstractQuarkusExtension
baseConfig, cachingRelevantProperties, classpath, forcedPropertiesProperty, getAttributes, ignoredEntriesProperty, manifest, nativeConfig, packageConfig, toManifestAttributeKey, toManifestSectionAttributeKey
-
Field Details
-
CODE_GENERATION_PROVIDER
-
CODE_GENERATION_INPUT
-
-
Constructor Details
-
QuarkusPluginExtension
public QuarkusPluginExtension(org.gradle.api.Project project)
-
-
Method Details
-
getManifest
-
manifest
-
getFinalName
-
getCleanupBuildOutput
Whether the build output, build/*-runner[.jar] and build/quarkus-app, for other package types than the currently configured one are removed, default is 'true'. -
setCleanupBuildOutput
public void setCleanupBuildOutput(boolean cleanupBuildOutput) -
getCacheLargeArtifacts
Whether large build artifacts, like uber-jar and native runners, are cached. Defaults to 'false' if the 'CI' environment variable is set, otherwise defaults to 'true'. -
setCacheLargeArtifacts
public void setCacheLargeArtifacts(boolean cacheLargeArtifacts) -
setCodeGenerationInputs
-
getCodeGenerationInputs
The directories of code generation inputs, only needed if using a customer extension that provides its own code generator. -
setCodeGenerationProviders
-
getCodeGenerationProviders
The identifiers of the code generation providers, only needed if using a customer extension that provides its own code generator. -
finalName
-
setFinalName
-
sourceSets
-
sourceSetExtension
-
resourcesDir
-
combinedOutputSourceDirs
public static org.gradle.api.file.FileCollection combinedOutputSourceDirs(org.gradle.api.Project project) -
combinedOutputSourceDirs
-
getAppModelResolver
public io.quarkus.bootstrap.resolver.AppModelResolver getAppModelResolver() -
getAppModelResolver
public io.quarkus.bootstrap.resolver.AppModelResolver getAppModelResolver(io.quarkus.runtime.LaunchMode mode) -
getApplicationModel
public io.quarkus.bootstrap.model.ApplicationModel getApplicationModel() -
getApplicationModel
public io.quarkus.bootstrap.model.ApplicationModel getApplicationModel(io.quarkus.runtime.LaunchMode mode) -
buildForkOptions
public void buildForkOptions(org.gradle.api.Action<? super org.gradle.process.JavaForkOptions> action) Adds an action to configure theJavaForkOptionsto build a Quarkus application.- Parameters:
action- configuration action
-
codeGenForkOptions
public void codeGenForkOptions(org.gradle.api.Action<? super org.gradle.process.JavaForkOptions> action) Adds an action to configure theJavaForkOptionsto generate Quarkus code.- Parameters:
action- configuration action
-
getLastFile
Returns the last file from the specifiedFileCollection.- Parameters:
fileCollection- the collection of files present in the directory- Returns:
- result returns the last file
-
appJarOrClasses
-
getQuarkusBuildProperties
-
getCachingRelevantProperties
-
set
-
set
-