Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 15 for projectScope (0.07 seconds)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/ProjectScope.java

     * @since 4.0.0
     */
    @Experimental
    @Immutable
    @SuppressWarnings("checkstyle:InterfaceIsType")
    public interface ProjectScope extends ExtensibleEnum {
    
        /**
         * Main scope.
         */
        ProjectScope MAIN = projectScope("main");
    
        /**
         * Test scope.
         */
        ProjectScope TEST = projectScope("test");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Feb 05 09:42:51 GMT 2024
    - 1.8K bytes
    - Click Count (0)
  2. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ProjectScopeProvider.java

     * beyond the standard {@link ProjectScope#MAIN} and {@link ProjectScope#TEST} scopes.
     * Implementations of this interface will be discovered through the Java ServiceLoader mechanism
     * and their provided project scopes will be available throughout the Maven build process.
     * <p>
     * Example usage:
     * <pre>
     * public class CustomProjectScopeProvider implements ProjectScopeProvider {
     *     public Collection&lt;ProjectScope&gt; provides() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Apr 03 13:33:59 GMT 2025
    - 2K bytes
    - Click Count (0)
  3. build-logic-settings/architecture-docs/src/main/kotlin/gradlebuild/GradleArchitecture.kt

     */
    fun Settings.packaging(moduleConfiguration: ProjectScope.() -> Unit) =
        ProjectScope("packaging", this).moduleConfiguration()
    
    /**
     * Defines the testing module, for project helping test Gradle.
     */
    fun Settings.testing(moduleConfiguration: ProjectScope.() -> Unit) =
        ProjectScope("testing", this).moduleConfiguration()
    
    /**
     * Defines a bucket of unassigned projects.
     */
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jan 30 15:37:56 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  4. build-logic-settings/architecture-docs/src/main/kotlin/gradlebuild/Builders.kt

    }
    
    class ArchitectureModuleBuilder(
        name: String,
        settings: Settings,
        private val projectScope: ProjectScope = ProjectScope("platforms/$name", settings),
    ) : ArchitectureElementBuilder(name) {
    
        fun subproject(projectName: String) {
            projectScope.subproject(projectName)
        }
    
        override fun build(): ArchitectureModule {
            return ArchitectureModule(name, id)
        }
    }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jan 30 15:37:56 GMT 2026
    - 3K bytes
    - Click Count (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/ExtensibleEnums.java

         * @param projectScope the project scope associated with this path scope
         * @param dependencyScopes the dependency scopes associated with this path scope
         * @return a new PathScope instance
         */
        static PathScope pathScope(String id, ProjectScope projectScope, DependencyScope... dependencyScopes) {
            return new DefaultPathScope(id, projectScope, dependencyScopes);
        }
    
        /**
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectScopeRegistry.java

     * under the License.
     */
    package org.apache.maven.api.services;
    
    import org.apache.maven.api.ProjectScope;
    import org.apache.maven.api.annotations.Experimental;
    
    /**
     * Manager for {@link ProjectScope}.
     *
     * @since 4.0.0
     */
    @Experimental
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Feb 28 23:54:53 GMT 2024
    - 1.1K bytes
    - Click Count (0)
  7. api/maven-api-core/src/test/java/org/apache/maven/api/SourceRootTest.java

    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.when;
    
    public class SourceRootTest implements SourceRoot {
        private ProjectScope scope;
    
        private Language language;
    
        private String moduleName;
    
        @Override
        public ProjectScope scope() {
            return (scope != null) ? scope : SourceRoot.super.scope();
        }
    
        @Override
        public Language language() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sun Oct 26 17:22:14 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java

         * {@return in which context the source files will be used}
         * Not to be confused with dependency scope.
         * The default value is {@code "main"}.
         *
         * @see ProjectScope#MAIN
         */
        default ProjectScope scope() {
            return ProjectScope.MAIN;
        }
    
        /**
         * {@return the language of the source files}
         * The default value is {@code "java"}.
         *
         * @see Language#JAVA_FAMILY
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Nov 07 13:11:07 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/PathScope.java

    @Immutable
    public interface PathScope extends ExtensibleEnum {
    
        // TODO: what if I simply want all dependencies ?
        @Nonnull
        ProjectScope projectScope();
    
        @Nonnull
        Set<DependencyScope> dependencyScopes();
    
        PathScope MAIN_COMPILE = pathScope(
                "main-compile",
                ProjectScope.MAIN,
                DependencyScope.COMPILE_ONLY,
                DependencyScope.COMPILE,
                DependencyScope.PROVIDED);
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 10 20:52:34 GMT 2024
    - 2.9K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java

    import java.util.stream.Stream;
    
    import org.apache.maven.RepositoryUtils;
    import org.apache.maven.api.Language;
    import org.apache.maven.api.ProducedArtifact;
    import org.apache.maven.api.Project;
    import org.apache.maven.api.ProjectScope;
    import org.apache.maven.api.RemoteRepository;
    import org.apache.maven.api.Service;
    import org.apache.maven.api.SourceRoot;
    import org.apache.maven.api.annotations.Nonnull;
    import org.apache.maven.api.di.SessionScoped;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Dec 17 16:17:01 GMT 2025
    - 10.9K bytes
    - Click Count (0)
Back to Top