Skip to content

Conversation

@sormuras
Copy link
Member

@sormuras sormuras commented Nov 11, 2025

Overview

Please review this change to add an example for using Java's source launcher using the org.junit.start module in a compact source file.

|
| junit-source-launcher
|
| java init/DownloadRequiredModules.java
|
Downloading 1 module
org.junit.start <- https://central.sonatype.com/repos
Downloading 5 modules
org.jspecify <- https://repo.maven.apache.org/maven2/
org.apiguardian.api <- https://repo.maven.apache.org/
org.junit.platform.console <- https://central.sonatyp/
org.junit.jupiter <- https://central.sonatype.com/rep
org.junit.platform.launcher <- https://central.sonaty/
Downloading 6 modules
org.junit.jupiter.engine <- https://central.sonatype/.
org.junit.platform.engine <- https://central.sonatype/
org.junit.jupiter.params <- https://central.sonatype/.
org.junit.platform.commons <- https://central.sonatyp/
org.junit.jupiter.api <- https://central.sonatype.com/
org.junit.platform.reporting <- https://central.sonat/
Downloading 2 modules
org.opentest4j <- https://repo.maven.apache.org/maven
org.opentest4j.reporting.tooling.spi <- https://repo/.

List modules of lib directory
[email protected]
org.jspecify
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
    14 modules


|
| junit-source-launcher
|
| java --module-path lib --add-modules org.junit.start src/HelloTests.java
|
╷
└─ JUnit Jupiter ✔
   └─ HelloTests ✔
      └─ stringLength() ✔

Work Items

  • Add example with documentation
  • Include example in "Build All" program
  • Include example module version(s) Updater.java and StagingRepoInjector.java

I hereby agree to the terms of the JUnit Contributor License Agreement.

@sormuras sormuras self-assigned this Nov 11, 2025
@sormuras sormuras marked this pull request as draft November 11, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants