Updated Kotlin toolchain and seems that publishing...
# kotlin-toolchain
p
Updated Kotlin toolchain and seems that publishing to mavenCentral stopped working. When I type “./koltin publish mavenCentral` it complains about ‘mavenCentral’ because it’s not marked as publishable. However I have configured:
Copy code
settings:
  publishing:
    enabled: true
    group: org.roboquant
    version: 3.3.0
    publishSources: true
    signArtifacts: true
    mavenCentral:
      publishingMode: auto
      enabled: true
...
a
hi, Peter! thanks for the report, would it help if you declare it explicitly?
Copy code
repositories: 
  - id: mavenCentral
    url: <https://repo.maven.apache.org/maven2>
    publish: true
p
I then get this error:
Copy code
Internal error: java.lang.IllegalStateException: Task 'TaskId(value=:roboquant:publishToMavenCentral)' already exists

Please check the build logs for the full stacktrace, and if possible file a bug report at <https://youtrack.jetbrains.com/newIssue?project=AMPER>
However if I set the other one to false, there is more progress (builds and tries to publish), but still an error:
Copy code
ERROR: Task ':roboquant-questdb:publishToMavenCentral' failed: Couldn't publish artifacts of module 'roboquant-questdb' to repository 'mavenCentral': org.eclipse.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact org.roboquant:roboquant-questdb:jar:3.3.0 from/to mavenCentral (<https://repo.maven.apache.org/maven2>): status code: 405, reason phrase: Method Not Allowed (405)
BTW publishing a snapshot to Maven (central.sonatype.com/repository/maven-snapshots) works fine.
j
Hi Peter! Thanks a lot for the report. This does seem like a critical bug indeed.
However if I set the other one to false, there is more progress (builds and tries to publish), but still an error
I believe this is because Maven Central requires a special way to publish, so we can't define it as a regular repo and publish with the regular Maven mechanism
👍 1
I opened this and will fix ASAP: KTC-5799 Cannot publish to repository 'mavenCentral' because it's not marked as publishable
🎉 1