Package org.gradle.api.plugins
Klasse JavaPluginConvention
java.lang.Object
org.gradle.api.plugins.JavaPluginConvention
Veraltet.
Is mixed into the project when applying the
JavaBasePlugin.-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract voidVeraltet.If this method is called, Gradle will not automatically try to fetch dependencies which have a JVM version compatible with this module.abstract booleanVeraltet.Tells if automatic JVM targeting is enabled.abstract FileVeraltet.Returns a file pointing to the root directory supposed to be used for all docs.abstract StringVeraltet.The name of the docs directory.abstract org.gradle.api.internal.project.ProjectInternalVeraltet.abstract JavaVersionVeraltet.Returns the source compatibility used for compiling Java sources.abstract SourceSetContainerVeraltet.The source sets container.abstract JavaVersionVeraltet.Returns the target compatibility used for compiling Java sources.abstract FileVeraltet.Returns a file pointing to the root directory to be used for reports.abstract StringVeraltet.The name of the test reports directory.abstract FileVeraltet.Returns a file pointing to the root directory of the test results.abstract StringVeraltet.The name of the test results directory.abstract Manifestmanifest()Veraltet.Creates a new instance of aManifest.abstract ManifestVeraltet.Creates and configures a new instance of aManifest.abstract ManifestVeraltet.Creates and configures a new instance of aManifest.abstract voidsetDocsDirName(String docsDirName) Veraltet.abstract voidsetSourceCompatibility(Object value) Veraltet.Sets the source compatibility used for compiling Java sources.abstract voidVeraltet.Sets the source compatibility used for compiling Java sources.abstract voidsetTargetCompatibility(Object value) Veraltet.Sets the target compatibility used for compiling Java sources.abstract voidVeraltet.Sets the target compatibility used for compiling Java sources.abstract voidsetTestReportDirName(String testReportDirName) Veraltet.abstract voidsetTestResultsDirName(String testResultsDirName) Veraltet.abstract ObjectsourceSets(Closure closure) Veraltet.Configures the source sets of this project.
-
Konstruktordetails
-
JavaPluginConvention
public JavaPluginConvention()Veraltet.
-
-
Methodendetails
-
sourceSets
Veraltet.Configures the source sets of this project.The given closure is executed to configure the
SourceSetContainer. TheSourceSetContaineris passed to the closure as its delegate.See the example below how
SourceSet'main' is accessed and how theSourceDirectorySet'java' is configured to exclude some package from compilation.plugins { id 'java' } sourceSets { main { java { exclude 'some/unwanted/package/**' } } }- Parameter:
closure- The closure to execute.- Gibt zurück:
- NamedDomainObjectContainer<org.gradle.api.tasks.SourceSet>
-
getDocsDir
Veraltet.Returns a file pointing to the root directory supposed to be used for all docs. -
getTestResultsDir
Veraltet.Returns a file pointing to the root directory of the test results. -
getTestReportDir
Veraltet.Returns a file pointing to the root directory to be used for reports. -
getSourceCompatibility
Veraltet.Returns the source compatibility used for compiling Java sources. -
setSourceCompatibility
Veraltet.Sets the source compatibility used for compiling Java sources.- Parameter:
value- The value for the source compatibility as defined byJavaVersion.toVersion(Object)
-
setSourceCompatibility
Veraltet.Sets the source compatibility used for compiling Java sources.- Parameter:
value- The value for the source compatibility
-
getTargetCompatibility
Veraltet.Returns the target compatibility used for compiling Java sources. -
setTargetCompatibility
Veraltet.Sets the target compatibility used for compiling Java sources.- Parameter:
value- The value for the target compatibility as defined byJavaVersion.toVersion(Object)
-
setTargetCompatibility
Veraltet.Sets the target compatibility used for compiling Java sources.- Parameter:
value- The value for the target compatibility
-
manifest
Veraltet.Creates a new instance of aManifest. -
manifest
Veraltet.Creates and configures a new instance of aManifest. The given closure configures the new manifest instance before it is returned.- Parameter:
closure- The closure to use to configure the manifest.
-
manifest
Veraltet.Creates and configures a new instance of aManifest.- Parameter:
action- The action to use to configure the manifest.- Seit:
- 3.5
-
getDocsDirName
Veraltet.The name of the docs directory. Can be a name or a path relative to the build dir. -
setDocsDirName
Veraltet. -
getTestResultsDirName
Veraltet.The name of the test results directory. Can be a name or a path relative to the build dir. -
setTestResultsDirName
Veraltet. -
getTestReportDirName
Veraltet.The name of the test reports directory. Can be a name or a path relative toReportingExtension.getBaseDir(). -
setTestReportDirName
Veraltet. -
getSourceSets
Veraltet.The source sets container. -
getProject
public abstract org.gradle.api.internal.project.ProjectInternal getProject()Veraltet. -
disableAutoTargetJvm
public abstract void disableAutoTargetJvm()Veraltet.If this method is called, Gradle will not automatically try to fetch dependencies which have a JVM version compatible with this module. This should be used whenever the default behavior is not applicable, in particular when for some reason it's not possible to split a module and that this module only has some classes which require dependencies on higher versions.- Seit:
- 5.3
-
getAutoTargetJvmDisabled
public abstract boolean getAutoTargetJvmDisabled()Veraltet.Tells if automatic JVM targeting is enabled. When disabled, Gradle will not automatically try to get dependencies corresponding to the same (or compatible) level as the target compatibility of this module.- Seit:
- 5.3
-
JavaPluginExtension. This class is scheduled for removal in Gradle 9.0.