Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for projectScope (0.06 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/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)
  9. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ExtensibleEnumProvider.java

         * that this provider wants to contribute.
         * <p>
         * The values returned by this method should be created using the appropriate factory methods
         * for the specific enum type, such as {@code language()}, {@code projectScope()}, or
         * {@code pathScope()}.
         *
         * @return a non-null collection of enum instances to register
         */
        @Nonnull
        Collection<T> provides();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Apr 03 13:33:59 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  10. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/PathScopeProvider.java

     * <pre>
     * public class CustomPathScopeProvider implements PathScopeProvider {
     *     public Collection&lt;PathScope&gt; provides() {
     *         return Collections.singleton(pathScope("integration-test",
     *                 ProjectScope.TEST, DependencyScope.TEST));
     *     }
     * }
     * </pre>
     *
     * @see org.apache.maven.api.PathScope
     * @see org.apache.maven.api.spi.ExtensibleEnumProvider
     * @since 4.0.0
     */
    @Experimental
    @Consumer
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Apr 03 13:33:59 GMT 2025
    - 2.1K bytes
    - Click Count (0)
Back to Top