Skip to content

Commit 8e562db

Browse files
committed
update publish settings
1 parent e1df3c5 commit 8e562db

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# (Experimental) Google APIs client code generator
22

33
![Maven Central Version](https://img.shields.io/maven-central/v/dev.rolang/gcp-codegen_3)
4-
[![Sonatype Snapshots](https://img.shields.io/nexus/s/https/oss.sonatype.org/dev.rolang/gcp-codegen_3.svg?label=Sonatype%20Snapshot)](https://oss.sonatype.org/content/repositories/snapshots/dev/rolang/gcp-codegen_3/)
54

65
⚠️ _This project is in an experimental stage (with a messy code base), use with care if you want to give it a try_.
76

@@ -25,8 +24,8 @@ The generator can be used with any tool that can perform system calls to a comma
2524
See example under [example/generate.scala](./example/generate.scala).
2625

2726
```scala
28-
//> using scala 3.6.3
29-
//> using dep dev.rolang::gcp-codegen::0.0.2
27+
//> using scala 3.7.0
28+
//> using dep dev.rolang::gcp-codegen::0.0.5
3029

3130
import gcp.codegen.*, java.nio.file.*, GeneratorConfig.*
3231

build.sbt

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ ThisBuild / description := "Google Cloud client code generator"
22
ThisBuild / organization := "dev.rolang"
33
ThisBuild / licenses := Seq(License.MIT)
44
ThisBuild / homepage := Some(url("https://github.com/rolang/google-rest-api-codegen"))
5-
ThisBuild / scalaVersion := "3.3.5"
5+
ThisBuild / scalaVersion := "3.3.6"
66
ThisBuild / version ~= { v => if (v.contains('+')) s"${v.replace('+', '-')}-SNAPSHOT" else v }
7+
ThisBuild / versionScheme := Some("early-semver")
78
ThisBuild / scmInfo := Some(
89
ScmInfo(
910
url("https://github.com/rolang/google-rest-api-codegen"),
@@ -25,15 +26,7 @@ lazy val testSettings = Seq(
2526
)
2627

2728
lazy val publishSettings = List(
28-
credentials += Credentials(
29-
"Sonatype Nexus Repository Manager",
30-
"oss.sonatype.org",
31-
sys.env.getOrElse("SONATYPE_USERNAME", ""),
32-
sys.env.getOrElse("SONATYPE_PASSWORD", "")
33-
),
34-
usePgpKeyHex("537C76F3EFF1B9BE6FD238B442BD95234C9636F3"),
35-
sonatypeCredentialHost := "oss.sonatype.org",
36-
sonatypeRepository := s"https://${sonatypeCredentialHost.value}/service/local",
29+
sonatypeCredentialHost := xerial.sbt.Sonatype.sonatypeCentralHost,
3730
publishTo := sonatypePublishToBundle.value
3831
)
3932

example/generate.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//> using scala 3.6.3
2-
//> using dep dev.rolang::gcp-codegen::0.0.2
1+
//> using scala 3.7.0
2+
//> using dep dev.rolang::gcp-codegen::0.0.5
33

44
import gcp.codegen.*, java.nio.file.*, GeneratorConfig.*
55

0 commit comments

Comments
 (0)