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

feat: add in a sonatypeHost setting and Pom checks #28

Merged
merged 2 commits into from
Nov 2, 2022
Merged

Conversation

ckipp01
Copy link
Owner

@ckipp01 ckipp01 commented Nov 1, 2022

The intended use for this would be that all new people using the so1
hostname don't need to do this:

override def sonatypeUri = "https://s01.oss.sonatype.org/service/local"
override def sonatypeSnapshotUri =
  "https://s01.oss.sonatype.org/content/repositories/snapshots"

And they can instead just do:

override def sonatypeHost = SonatypeHost.s01

And it will set the correct sonatypeUri and sonatypeSnapshotUri. I
wanted to make s01 default, but this would break for people that have it
set up already using legacy host, and I see some that are using it with
that.

It looks like if you don't have a license set and at least one developer
listed in your PomSettings then when you try to publish Sonatype will
just silently fail. This adds in a check for both of those situations.

The intended use for this would be that all new people using the so1
hostname don't need to do this:

```
override def sonatypeUri = "https://s01.oss.sonatype.org/service/local"
override def sonatypeSnapshotUri =
  "https://s01.oss.sonatype.org/content/repositories/snapshots"
```

And they can instead just do:

```
override def sonatypeHost = SonatypeHost.s01
```

And it will set the correct `sonatypeUri` and `sonatypeSnapshotUri`. I
wanted to make s01 default, but this would break for people that have it
set up already using legacy host, and I see some that are using it with
that.
It looks like if you don't have a license set and at least one developer
listed in your `PomSettings` then when you try to publish Sonatype will
just silently fail. This adds in a check for both of those situations.
@ckipp01 ckipp01 changed the title feat: add in a sonatypeHost setting feat: add in a sonatypeHost setting and Pom checks Nov 2, 2022
@ckipp01 ckipp01 merged commit c1cf0b5 into main Nov 2, 2022
@ckipp01 ckipp01 deleted the sonatypeHost branch November 2, 2022 07:58
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.

1 participant