Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be fine with Mill-generated manifests #2107

Merged

Conversation

alexarchambault
Copy link
Member

Mill doesn't add Implementation-Vendor-Id and Specification-Title in the
manifests it generates, which the main class detection code uses to pick
a main class.

These changes default to the main class from the first JAR in the class
path (which has been determistic for some time now, and corresponds to the
JAR of the first specified dependency), no matter its
Implementation-Vendor-Id and Specification-Title attributes.

Mill doesn't add Implementation-Vendor-Id and Specification-Title in the
manifests it generates, which the main class detection code uses to pick
a main class.

These changes default to the main class from the first JAR in the class
path (which has been determistic for some time now, and corresponds to the
JAR of the first specified dependency), no matter its
Implementation-Vendor-Id and Specification-Title attributes.
So that former cs launcher can run newer versions too.
@alexarchambault alexarchambault merged commit ddc6d9c into coursier:master Jul 8, 2021
@alexarchambault alexarchambault deleted the better-main-class-detection branch July 8, 2021 08:48
@jorhett
Copy link

jorhett commented Feb 3, 2022

I'm seeing this still on 20.04, on the current release downloaded from the launchers repo:

$ /tmp/coursier_installerbw_3tcf1/cs setup --yes
Checking if a JVM is installed
Found a JVM installed under /usr/lib/jvm/java-11-openjdk-arm64.

Checking if ~/.local/share/coursier/bin is in PATH
Should we add ~/.local/share/coursier/bin to your PATH via ~/.profile, ~/.bash_profile? [Y/n] Y

Checking if the standard Scala applications are installed
  Found ammonite
  Found cs
  Found coursier
  Found scala
  Found scalac
  Found sbt
No main class found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants