Class JooqCodegen
- All Implemented Interfaces:
Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.Named,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
org.gradle.api.Named.Namer -
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.file.ConfigurableFileCollectionThe classpath for executing the jOOQ code generator.abstract org.gradle.api.file.RegularFilePropertyThe jOOQ code generation configuration file.abstract org.gradle.api.provider.Property<String> The encoding of the generated files.protected abstract org.gradle.api.file.FileSystemOperationsabstract org.gradle.api.provider.Property<org.gradle.jvm.toolchain.JavaLauncher> Configures the java executable to be used to run the jOOQ code generator.abstract org.gradle.api.file.DirectoryPropertyThe directory where jOOQ will generate the code.abstract org.gradle.api.provider.Property<String> The password to use to connect to the database.abstract org.gradle.api.provider.Property<String> getUrl()The jdbc url to use to connect to the database.abstract org.gradle.api.provider.Property<String> getUser()The user to use to connect to the database.protected abstract org.gradle.workers.WorkerExecutorMethods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.Task
doNotTrackState, notCompatibleWithConfigurationCache
-
Constructor Details
-
JooqCodegen
public JooqCodegen()
-
-
Method Details
-
getWorkerExecutor
@Inject protected abstract org.gradle.workers.WorkerExecutor getWorkerExecutor() -
getFileSystemOperations
@Inject protected abstract org.gradle.api.file.FileSystemOperations getFileSystemOperations() -
getClasspath
@Classpath public abstract org.gradle.api.file.ConfigurableFileCollection getClasspath()The classpath for executing the jOOQ code generator.Defaults to the
jooqCodegenClasspathconfiguration, itself extending thejooqCodegenconfiguration. -
getUrl
The jdbc url to use to connect to the database.This will override any
jdbc.urlset in the configuration file. -
getUser
The user to use to connect to the database.This will override any
jdbc.userset in the configuration file. -
getPassword
The password to use to connect to the database.This will override any
jdbc.passwordset in the configuration file. -
getEncoding
The encoding of the generated files.This will override any
generator.target.encodingset in the configuration file.When the
javaplugin is applied, it defaults to thecompileJavatask'soptions.encoding.When the
kotlin("jvm")plugin is applied, it defaults to UTF-8.If not configured, it will default to jOOQ's default encoding, which is UTF-8.
-
getConfigurationFile
@InputFile @PathSensitive(NONE) public abstract org.gradle.api.file.RegularFileProperty getConfigurationFile()The jOOQ code generation configuration file.When the
javaplugin is applied, it defaults tosrc/jooq-codegen.xml. -
getOutputDirectory
@OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getOutputDirectory()The directory where jOOQ will generate the code.This will override any
generator.target.directoryset in the configuration file.When the
javaplugin is applied, it defaults tosrc/main/jooq. -
getJavaLauncher
@Optional public abstract org.gradle.api.provider.Property<org.gradle.jvm.toolchain.JavaLauncher> getJavaLauncher()Configures the java executable to be used to run the jOOQ code generator.If it is the same as the one used to run Gradle, then the jOOQ code generator will run in-process.
When the
java-baseplugin is applied, it defaults to using the toolchainconfigured at the project level.
-