- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for inferModulePath (0.24 sec)
-
platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/jpms/compile/JavaModuleCompileIntegrationTest.groovy
given: publishJavaModule('moda') consumingModuleInfo('requires moda') buildFile << """ java.modularity.inferModulePath = false """ when: fails ':compileJava' then: failure.assertHasErrorOutput 'module-info.java:1: error: module not found: moda' }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 6.7K bytes - Viewed (0) -
platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/jpms/execution/JavaModuleExecutionIntegrationTest.groovy
given: buildFile.text = buildFile.text.replace('java-library', 'application') buildFile << """ tasks.run.modularity.inferModulePath = false application { mainClass.set('consumer.MainModule') mainModule.set('consumer') } """ publishJavaModule('moda')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 8.6K bytes - Viewed (0) -
platforms/enterprise/enterprise/src/main/java/org/gradle/internal/enterprise/test/impl/DefaultTestTaskPropertiesService.java
forkOptions.getWorkingDir(), executable, detectJavaVersion(executable), javaModuleDetector.inferClasspath(testIsModule, task.getClasspath()), javaModuleDetector.inferModulePath(testIsModule, task.getClasspath()), forkOptions.getAllJvmArgs(), DefaultProcessForkOptions.getActualEnvironment(forkOptions) ); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 05:16:16 UTC 2024 - 8.3K bytes - Viewed (0) -
platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/jpms/test/JavaModuleBackboxTestExcutionIntegrationTest.groovy
} def "runs JUnit4 module test on classpath if module path inference is turned off"() { given: buildFile << """ tasks.test.modularity.inferModulePath = false dependencies { testImplementation 'junit:junit:4.13' } """ when: consumingModuleInfo('exports consumer') consumingModuleClass()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 5.8K bytes - Viewed (0) -
platforms/jvm/plugins-java-base/src/main/java/org/gradle/api/plugins/JavaBasePlugin.java
Provider<LibraryElements> libraryElements = compileJava.flatMap(x -> x.getModularity().getInferModulePath()) .map(inferModulePath -> { if (javaClasspathPackaging) { return LibraryElements.JAR; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 19 22:14:22 UTC 2023 - 28.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/process/internal/JavaExecHandleBuilder.java
if (javaModuleDetector == null) { throw new IllegalStateException("Running a Java module is not supported in this context."); } FileCollection rtModulePath = javaModuleDetector.inferModulePath(modularity.getInferModulePath().get(), classpath); FileCollection rtClasspath = javaModuleDetector.inferClasspath(modularity.getInferModulePath().get(), classpath);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Feb 27 09:47:37 UTC 2023 - 14K bytes - Viewed (0) -
platforms/jvm/language-java/src/main/java/org/gradle/api/tasks/compile/JavaCompile.java
spec.setTempDir(getTemporaryDir()); spec.setCompileClasspath(ImmutableList.copyOf(javaModuleDetector.inferClasspath(isModule, getClasspath()))); spec.setModulePath(ImmutableList.copyOf(javaModuleDetector.inferModulePath(isModule, getClasspath()))); if (isModule && !isSourcepathUserDefined) { compileOptions.setSourcepath(getProjectLayout().files(sourcesRoots)); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 15:33:35 UTC 2024 - 15.3K bytes - Viewed (0) -
platforms/jvm/language-java/src/main/java/org/gradle/api/tasks/javadoc/Javadoc.java
options.classpath(new ArrayList<>(javaModuleDetector.inferClasspath(isModule, getClasspath()).getFiles())); options.modulePath(new ArrayList<>(javaModuleDetector.inferModulePath(isModule, getClasspath()).getFiles())); if (options.getBootClasspath() != null && !options.getBootClasspath().isEmpty()) { // Added so JavaDoc has the same behavior as JavaCompile regarding the bootClasspath
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 13.6K bytes - Viewed (0) -
platforms/jvm/plugins-application/src/main/java/org/gradle/jvm/application/tasks/CreateStartScripts.java
generator.setClasspath(getRelativePath(javaModuleDetector.inferClasspath(mainModule.isPresent(), getClasspath()))); generator.setModulePath(getRelativePath(javaModuleDetector.inferModulePath(mainModule.isPresent(), getClasspath()))); if (StringUtils.isEmpty(getExecutableDir())) { generator.setScriptRelPath(getUnixScript().getName()); } else {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 28 23:38:57 UTC 2024 - 13.5K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/jvm/java_library_plugin.adoc
Gradle will automatically put a Jar of your dependencies on the module path, instead of the classpath, if these three things are true: * `java.modularity.inferModulePath` is *not* turned off * We are actually building a module (as opposed to a traditional library) which we expressed by adding the `module-info.java` file.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 13 19:52:38 UTC 2024 - 23.3K bytes - Viewed (0)