public class GradleProjectProperties
extends java.lang.Object
implements com.google.cloud.tools.jib.plugins.common.ProjectProperties
Project that uses Jib.| Modifier and Type | Method and Description |
|---|---|
void |
configureEventHandlers(com.google.cloud.tools.jib.api.Containerizer containerizer) |
com.google.cloud.tools.jib.api.JibContainerBuilder |
createJibContainerBuilder(com.google.cloud.tools.jib.api.JavaContainerBuilder javaContainerBuilder,
com.google.cloud.tools.jib.plugins.common.ContainerizingMode containerizingMode) |
java.util.List<java.nio.file.Path> |
getClassFiles() |
java.nio.file.Path |
getDefaultCacheDirectory() |
java.util.List<java.nio.file.Path> |
getDependencies() |
static GradleProjectProperties |
getForProject(org.gradle.api.Project project,
org.gradle.api.logging.Logger logger,
com.google.cloud.tools.jib.filesystem.TempDirectoryProvider tempDirectoryProvider,
java.lang.String configurationName)
Generate an instance for a gradle project.
|
java.lang.String |
getJarPluginName() |
java.lang.String |
getMainClassFromJarPlugin() |
int |
getMajorJavaVersion() |
java.lang.String |
getName() |
java.lang.String |
getPluginName() |
java.lang.String |
getToolName() |
java.lang.String |
getToolVersion() |
java.lang.String |
getVersion() |
boolean |
isOffline() |
boolean |
isWarProject() |
void |
log(com.google.cloud.tools.jib.api.LogEvent logEvent) |
com.google.cloud.tools.jib.api.JibContainerBuilder |
runPluginExtensions(java.util.List<? extends com.google.cloud.tools.jib.plugins.common.RawConfiguration.ExtensionConfiguration> extensionConfigs,
com.google.cloud.tools.jib.api.JibContainerBuilder jibContainerBuilder) |
void |
waitForLoggingThread() |
public static GradleProjectProperties getForProject(org.gradle.api.Project project, org.gradle.api.logging.Logger logger, com.google.cloud.tools.jib.filesystem.TempDirectoryProvider tempDirectoryProvider, java.lang.String configurationName)
project - a gradle projectlogger - a gradle logging instance to use for logging during the buildtempDirectoryProvider - for scratch space during the buildconfigurationName - the configuration of which the dependencies should be packed into the
containerpublic com.google.cloud.tools.jib.api.JibContainerBuilder createJibContainerBuilder(com.google.cloud.tools.jib.api.JavaContainerBuilder javaContainerBuilder,
com.google.cloud.tools.jib.plugins.common.ContainerizingMode containerizingMode)
createJibContainerBuilder in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiespublic java.util.List<java.nio.file.Path> getClassFiles()
throws java.io.IOException
getClassFiles in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiesjava.io.IOExceptionpublic java.util.List<java.nio.file.Path> getDependencies()
getDependencies in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiespublic void waitForLoggingThread()
waitForLoggingThread in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiespublic void configureEventHandlers(com.google.cloud.tools.jib.api.Containerizer containerizer)
configureEventHandlers in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiespublic void log(com.google.cloud.tools.jib.api.LogEvent logEvent)
log in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiespublic java.lang.String getToolName()
getToolName in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiespublic java.lang.String getToolVersion()
getToolVersion in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiespublic java.lang.String getPluginName()
getPluginName in interface com.google.cloud.tools.jib.plugins.common.ProjectProperties@Nullable public java.lang.String getMainClassFromJarPlugin()
getMainClassFromJarPlugin in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiespublic java.nio.file.Path getDefaultCacheDirectory()
getDefaultCacheDirectory in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiespublic java.lang.String getJarPluginName()
getJarPluginName in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiespublic boolean isWarProject()
isWarProject in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiespublic java.lang.String getName()
getName in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiespublic java.lang.String getVersion()
getVersion in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiespublic int getMajorJavaVersion()
getMajorJavaVersion in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiespublic boolean isOffline()
isOffline in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiespublic com.google.cloud.tools.jib.api.JibContainerBuilder runPluginExtensions(java.util.List<? extends com.google.cloud.tools.jib.plugins.common.RawConfiguration.ExtensionConfiguration> extensionConfigs,
com.google.cloud.tools.jib.api.JibContainerBuilder jibContainerBuilder)
throws com.google.cloud.tools.jib.plugins.extension.JibPluginExtensionException
runPluginExtensions in interface com.google.cloud.tools.jib.plugins.common.ProjectPropertiescom.google.cloud.tools.jib.plugins.extension.JibPluginExtensionException