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

sbt-sonatype no longer supports Java 8 #530

Closed
armanbilge opened this issue Oct 10, 2024 · 6 comments · Fixed by #531
Closed

sbt-sonatype no longer supports Java 8 #530

armanbilge opened this issue Oct 10, 2024 · 6 comments · Fixed by #531

Comments

@armanbilge
Copy link
Contributor

armanbilge commented Oct 10, 2024

due to the Airframe update

@armanbilge armanbilge changed the title Can no longer publish on Java 8 sbt-sonatype no longer supports Java 8 Oct 11, 2024
@xerial
Copy link
Owner

xerial commented Oct 11, 2024

Thanks for identify the cause. As sbt-sonatype doesn't require logback-core, it should be excluded from the transitive dependencies

@xerial
Copy link
Owner

xerial commented Oct 11, 2024

@xuwei-k
Copy link
Contributor

xuwei-k commented Oct 11, 2024

does not work 3.12.1

java.lang.NoClassDefFoundError: ch/qos/logback/core/Context
	at wvlet.airframe.http.internal.LogRotationHttpLogger.<init>(LogRotationHttpLogger.scala:39)
	at wvlet.airframe.http.Compat$.$anonfun$defaultHttpClientLoggerFactory$1(Compat.scala:58)
	at wvlet.airframe.http.client.HttpClientConfig.newHttpLogger(HttpClientConfig.scala:178)
	at wvlet.airframe.http.client.SyncClient.$init$(SyncClient.scala:30)
	at wvlet.airframe.http.client.SyncClientImpl.<init>(SyncClient.scala:155)
	at wvlet.airframe.http.client.HttpClientBackend.newSyncClient(HttpClientBackend.scala:28)
	at wvlet.airframe.http.client.HttpClientBackend.newSyncClient$(HttpClientBackend.scala:27)
	at wvlet.airframe.http.client.URLConnectionClientBackend$.newSyncClient(URLConnectionClientBackend.scala:20)
	at wvlet.airframe.http.client.HttpClientConfig.newSyncClient(HttpClientConfig.scala:62)
	at xerial.sbt.sonatype.SonatypeClient.<init>(SonatypeClient.scala:67)
	at xerial.sbt.Sonatype$.withSonatypeService(Sonatype.scala:519)
	at xerial.sbt.Sonatype$.$anonfun$sonatypeBundleRelease$1(Sonatype.scala:241)

@xerial
Copy link
Owner

xerial commented Oct 11, 2024

I forgot about the logger usage for http clients. Logging might need to be disabled only in Java8

@xerial
Copy link
Owner

xerial commented Oct 11, 2024

@xerial
Copy link
Owner

xerial commented Oct 11, 2024

Note: Java 8 is no longer supported as preparing local build environment for Java 8 is becoming difficult. Consider using Java 17 (LTS) or later

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 a pull request may close this issue.

3 participants