Package dev.nokee.commons.names
Class JvmNames
java.lang.Object
dev.nokee.commons.names.JvmNames
Task and configuration names for java, java-library, groovy, and Kotlin plugins.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcompileGroovyTaskName(SourceSet sourceSet) Returns thecompileQualifyingNameGroovytask name.static StringcompileKotlinTaskName(SourceSet sourceSet) Returns thecompileQualifyingNameKotlintask name.static StringcompileOnlyApiConfigurationName(SourceSet sourceSet) Returns thequalifyingNameCompileOnlyApiconfiguration name.static StringgroovydocElementsConfigurationName(SourceSet sourceSet) Returns thequalifyingNameGroovydocElementsconfiguration name.static StringgroovydocJarTaskName(SourceSet sourceSet) Returns thequalifyingNameGroovydocJartask name.static StringgroovydocTaskName(SourceSet sourceSet) Returns thequalifyingNameGroovydoctask name.static StringReturns thepluginUnderTestMetadatatask name.
-
Constructor Details
-
JvmNames
public JvmNames()
-
-
Method Details
-
compileOnlyApiConfigurationName
Returns thequalifyingNameCompileOnlyApiconfiguration name. For example:- compileOnlyApi
Note 1: only exists for java-library project.
Note 2: From Gradle 6.7 and later, use
SourceSet#getCompileOnlyApiConfigurationName().- Parameters:
sourceSet- the source set object that qualify the configuration name, must not be null- Returns:
- a configuration name
-
groovydocJarTaskName
Returns thequalifyingNameGroovydocJartask name. For example:- groovydocJar
- testGroovydocJar
Note: does not exist on groovy project, for convenience only.
- Parameters:
sourceSet- the source set object that qualify the task name, must not be null- Returns:
- a task name
-
groovydocTaskName
Returns thequalifyingNameGroovydoctask name. For example:- groovydoc
- testGroovydoc
Note: exists only on groovy project.
- Parameters:
sourceSet- the source set object that qualify the task name, must not be null- Returns:
- a task name
-
groovydocElementsConfigurationName
Returns thequalifyingNameGroovydocElementsconfiguration name. For example:- groovydocElements
- testGroovydocElements
Note: does not exist on groovy project, for convenience only and symmetry with
SourceSet.getJavadocElementsConfigurationName()- Parameters:
sourceSet- the source set object that qualify the configuration name, must not be null- Returns:
- a configuration name
-
pluginUnderTestMetadataTaskName
Returns thepluginUnderTestMetadatatask name.Note: exist only for java-gradle-plugin project.
- Returns:
- a task name
-
compileKotlinTaskName
Returns thecompileQualifyingNameKotlintask name. For example:- compileKotlin
- compileTestKotlin
Note: exist only for Kotlin project, for convenience only.
- Returns:
- a task name
-
compileGroovyTaskName
Returns thecompileQualifyingNameGroovytask name. For example:- compileGroovy
- compileTestGroovy
Note: exist only for groovy project, for convenience only.
- Returns:
- a task name
-