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

Add publish info #157

Merged
merged 1 commit into from
Nov 2, 2023
Merged

Conversation

mdedetrich
Copy link
Collaborator

Likely causing the issues with not publishing correctly.

@@ -37,6 +37,11 @@ inThisBuild(Seq[Setting[_]](
)
))

ThisBuild / publishMavenStyle := true
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This had to be done this way because of

Reference to undefined setting: 

  ThisBuild / sonatypePublishToBundle from ThisBuild / publishTo (/Users/mdedetrich/github/jardiff/build.sbt:3)
     Did you mean core / sonatypePublishToBundle ?

At some point it may be better to just use ThisBuild / for everything but thats more a nicety

@SethTisue SethTisue merged commit 003c430 into lightbend-labs:main Nov 2, 2023
8 checks passed
@@ -37,6 +37,11 @@ inThisBuild(Seq[Setting[_]](
)
))

ThisBuild / publishMavenStyle := true
ThisBuild / publishTo := sonatypePublishToBundle.value
ThisBuild / test / publishArtifact := false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should have asked before merging, but shouldn't this be Test, not test?

Copy link
Contributor

@SethTisue SethTisue Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and/or, is it even necessary? isn't false the default?

@SethTisue
Copy link
Contributor

SethTisue commented Nov 2, 2023

I just noticed that the sbt-ci-release readme says:

Make sure build.sbt does not define any of the following settings

  • version: handled by sbt-dynver
  • publishTo: handled by sbt-ci-release
  • publishMavenStyle: handled by sbt-ci-release
  • credentials: handled by sbt-sonatype

@mdedetrich This PR seems to contradict that advice?

@mdedetrich mdedetrich deleted the add-publish-info branch November 3, 2023 07:18
@mdedetrich
Copy link
Collaborator Author

@SethTisue That may be the issue, however I just realized that the issue with publishing is apparently due to wrong credentials (see sbt/sbt-pgp#182)

@SethTisue
Copy link
Contributor

I've submitted #162 which reverts these changes.

@SethTisue
Copy link
Contributor

Likely causing the issues with not publishing correctly

At the time you submitted this PR, I hadn't added the secrets yet.

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

Successfully merging this pull request may close these issues.

None yet

2 participants