Skip to content

Commit

Permalink
fix: update java registry in cli too (#3242)
Browse files Browse the repository at this point in the history
  • Loading branch information
armandobelardo authored Mar 21, 2024
1 parent 69f8167 commit 73c1094
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,14 @@ async function convertOutputMode({
token: generator.output.token ?? ""
})
);
case "maven":
case "maven": {
const hasSignature = generator.output.signature != null;
return FernFiddle.OutputMode.publishV2(
FernFiddle.remoteGen.PublishOutputModeV2.mavenOverride({
registryUrl: generator.output.url ?? "https://s01.oss.sonatype.org/content/repositories/releases/",
registryUrl:
generator.output.url ?? hasSignature
? "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
: "https://s01.oss.sonatype.org/content/repositories/releases/",
username: generator.output.username ?? "",
password: generator.output.password ?? "",
coordinate: generator.output.coordinate,
Expand All @@ -243,6 +247,7 @@ async function convertOutputMode({
: undefined
})
);
}
case "postman":
return FernFiddle.OutputMode.publishV2(
FernFiddle.remoteGen.PublishOutputModeV2.postman({
Expand Down

0 comments on commit 73c1094

Please sign in to comment.