Class ModuleRepository

  • All Implemented Interfaces:
    org.gradle.api.Named

    public abstract class ModuleRepository
    extends java.lang.Object
    implements org.gradle.api.Named
    Base class for implementing module repositories (targets for publishing to).
    Since:
    2.1
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.gradle.api.Named

        org.gradle.api.Named.Namer
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ModuleRepository​(java.lang.String name, org.gradle.api.Project tempProjectReference)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.ysb33r.grolifant5.api.core.ConfigCacheSafeOperations getCcso()  
      protected abstract org.ysb33r.gradle.iac.base.tf.modules.ModuleSourceSetBase getModuleSourceSet​(java.lang.String moduleName)  
      java.lang.String getName()
      Repository name
      protected org.gradle.api.model.ObjectFactory getObjectFactory()  
      org.gradle.api.provider.Provider<java.lang.Boolean> getPrefixVersionWithV()
      Indicates whether the version string is prefixed with a v
      abstract org.gradle.api.provider.Provider<java.lang.Boolean> getPublishTests()
      Whether to publish test files.
      abstract org.gradle.api.provider.Provider<java.lang.Boolean> getRequiresLicense()
      Indicates whether a repository requires a license file.
      abstract org.gradle.api.provider.Provider<java.lang.Boolean> getRequiresRollupAdditionalSourceFiles()
      Indicated whether source files other than (outputs|variables).(tf|tofu) must be rolled up into main.(tf|tofu) when publishing.
      protected org.gradle.api.tasks.TaskContainer getTaskContainer()  
      void setPrefixVersionWithV​(boolean flag)
      Whether version string should be prefixed with a v.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ModuleRepository

        protected ModuleRepository​(java.lang.String name,
                                   org.gradle.api.Project tempProjectReference)
    • Method Detail

      • getName

        public final java.lang.String getName()
        Repository name
        Specified by:
        getName in interface org.gradle.api.Named
        Returns:
        Name
      • getRequiresLicense

        public abstract org.gradle.api.provider.Provider<java.lang.Boolean> getRequiresLicense()
        Indicates whether a repository requires a license file.
        Returns:
        true if license is required.
      • getRequiresRollupAdditionalSourceFiles

        public abstract org.gradle.api.provider.Provider<java.lang.Boolean> getRequiresRollupAdditionalSourceFiles()
        Indicated whether source files other than (outputs|variables).(tf|tofu) must be rolled up into main.(tf|tofu) when publishing.
        Returns:
        true if source files must be rolled up.
      • getPublishTests

        public abstract org.gradle.api.provider.Provider<java.lang.Boolean> getPublishTests()
        Whether to publish test files.
        Returns:
        true if test files need to be published.
      • setPrefixVersionWithV

        public void setPrefixVersionWithV​(boolean flag)
        Whether version string should be prefixed with a v.
        Parameters:
        flag - true will set it to be prefixed.
      • getPrefixVersionWithV

        public org.gradle.api.provider.Provider<java.lang.Boolean> getPrefixVersionWithV()
        Indicates whether the version string is prefixed with a v
        Returns:
        true if prefix will be there.
      • getModuleSourceSet

        protected abstract org.ysb33r.gradle.iac.base.tf.modules.ModuleSourceSetBase getModuleSourceSet​(java.lang.String moduleName)
      • getCcso

        protected org.ysb33r.grolifant5.api.core.ConfigCacheSafeOperations getCcso()
      • getObjectFactory

        protected org.gradle.api.model.ObjectFactory getObjectFactory()
      • getTaskContainer

        protected org.gradle.api.tasks.TaskContainer getTaskContainer()