Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for inferModulePath (0.69 sec)

  1. subprojects/core/src/test/groovy/org/gradle/internal/jvm/JavaModuleDetectorTest.groovy

            expect:
            inferClasspath(path) == ['lib.jar', 'classes']
            inferModulePath(path) == ['module.jar', 'classes-module', 'automaticModule.jar', 'mrjarModule.jar']
        }
    
        def "filters out directories that do not exist"() {
            def path = path('resources1', 'nothing')
    
            expect:
            inferClasspath(path) == []
            inferModulePath(path) == []
        }
    
        def "caches results of module detection"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 07 13:50:48 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/internal/jvm/JavaModuleDetector.java

            return classpath.filter(classpathFilter);
        }
    
        public FileCollection inferModulePath(boolean inferModulePath, Collection<File> classpath) {
            return inferModulePath(inferModulePath, fileCollectionFactory.fixed(classpath));
        }
    
        public FileCollection inferModulePath(boolean inferModulePath, FileCollection classpath) {
            if (classpath == null) {
                return FileCollectionFactory.empty();
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/java-library/module-disabled/kotlin/build.gradle.kts

    plugins {
        `java-library`
    }
    
    repositories {
        mavenCentral()
    }
    
    // tag::disableModulePath[]
    java {
        modularity.inferModulePath = false
    }
    
    tasks.compileJava {
        modularity.inferModulePath = false
    }
    // end::disableModulePath[]
    
    dependencies {
        implementation("com.google.code.gson:gson:2.8.9")
        implementation("org.apache.commons:commons-lang3:3.10")
        implementation("commons-cli:commons-cli:1.4")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 417 bytes
    - Viewed (0)
  4. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/internal/resolver/IdeDependencySet.java

        private final boolean inferModulePath;
        private final GradleApiSourcesResolver gradleApiSourcesResolver;
        private final Collection<Configuration> testConfigurations;
    
        public IdeDependencySet(DependencyHandler dependencyHandler, JavaModuleDetector javaModuleDetector, Collection<Configuration> plusConfigurations, Collection<Configuration> minusConfigurations, boolean inferModulePath, GradleApiSourcesResolver gradleApiSourcesResolver) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 14.9K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-application/src/test/groovy/org/gradle/api/plugins/ApplicationPluginTest.groovy

            then:
            project.tasks.getByName("compileJava").modularity.inferModulePath.get()
            project.tasks.getByName("compileTestJava").modularity.inferModulePath.get()
            project.tasks.getByName("test").modularity.inferModulePath.get()
            project.tasks.getByName("run").modularity.inferModulePath.get()
            project.tasks.getByName("startScripts").modularity.inferModulePath.get()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/internal/jvm/DefaultModularitySpec.java

        private final Property<Boolean> inferModulePath;
    
        @Inject
        public DefaultModularitySpec(ObjectFactory objects) {
            inferModulePath = objects.property(Boolean.class).convention(true);
        }
    
        @Override
        public Property<Boolean> getInferModulePath() {
            return inferModulePath;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 05 11:38:02 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/java-library/module-disabled/groovy/build.gradle

    plugins {
        id 'java-library'
    }
    
    repositories {
        mavenCentral()
    }
    
    // tag::disableModulePath[]
    java {
        modularity.inferModulePath = false
    }
    
    tasks.named('compileJava') {
        modularity.inferModulePath = false
    }
    // end::disableModulePath[]
    
    dependencies {
        implementation 'com.google.code.gson:gson:2.8.9'
        implementation 'org.apache.commons:commons-lang3:3.10'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 426 bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/incremental/CrossTaskIncrementalJavaCompilationIntegrationTest.groovy

        def "incremental compilation works with modules #description"() {
            file("impl/build.gradle") << """
                def layout = project.layout
                tasks.compileJava {
                    modularity.inferModulePath = $inferModulePath
                    options.compilerArgs.addAll($compileArgs)
                    doFirst {
                        $doFirst
                    }
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/process/internal/JavaExecHandleBuilderTest.groovy

            builder.mainClass.set("mainClass")
            builder.classpath(new File("file1.jar").canonicalFile)
    
            when:
            // turn off module support:
            builder.modularity.inferModulePath.set(false)
    
            then:
            !builder.getAllArguments().contains('--module')
        }
    
        def "throws reasonable error if module support is turned on without module detector service"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 15 17:11:21 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  10. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/internal/ClasspathFactory.java

            this.classpath = classpath;
            this.dependenciesCreator = new EclipseDependenciesCreator(classpath, ideArtifactRegistry, gradleApiSourcesResolver, inferModulePath);
        }
    
        public List<ClasspathEntry> createEntries() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top