Skip to content

Commit 65b57e3

Browse files
authored
Add release workflow with https://github.com/sbt/sbt-ci-release (#63)
* add release workflow * fix version * Revert "fix version" This reverts commit 9ac9b6b. * bump 1.11.4 * fix build.sbt * comment out cross * update scala to newer version * remove sonatype * clean up * clean up * remove pull request trigger
1 parent 545e92d commit 65b57e3

File tree

7 files changed

+47
-64
lines changed

7 files changed

+47
-64
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: [master, main]
5+
tags: ["**"]
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
- uses: actions/setup-java@v4
14+
with:
15+
distribution: temurin
16+
java-version: 8
17+
cache: sbt
18+
- uses: sbt/setup-sbt@v1
19+
- run: sbt ci-release
20+
env:
21+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
22+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
23+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
24+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A Sbt plugin to support the OpenAPI generator project.
99
Add to your `project/plugins.sbt`:
1010

1111
```sbt
12-
addSbtPlugin("org.openapitools" % "sbt-openapi-generator" % "7.13.0")
12+
addSbtPlugin("org.openapitools" % "sbt-openapi-generator" % "7.14.0")
1313
```
1414

1515
# Configuration

build.sbt

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,27 @@ specifications as part of your build. Other tasks are available as command line
99

1010
lazy val `sbt-openapi-generator` = (project in file("."))
1111
.settings(
12-
scalaVersion := "2.12.15",
13-
crossScalaVersions := Seq(scalaVersion.value, "2.11.12"),
12+
scalaVersion := "2.12.20",
13+
//crossScalaVersions := Seq(scalaVersion.value, "2.11.12"),
1414
crossSbtVersions := List("0.13.17", "1.3.10"),
1515
sbtPlugin := true,
1616

17-
publishMavenStyle := true,
17+
inThisBuild(List(
18+
homepage := Some(url("https://openapi-generator.tech")),
19+
20+
organization := "org.openapitools",
21+
organizationName := "OpenAPI-Generator Contributors",
22+
organizationHomepage := Some(url("https://github.com/OpenAPITools")),
23+
24+
licenses += ("The Apache Software License, Version 2.0", url("https://www.apache.org/licenses/LICENSE-2.0.txt")),
25+
26+
developers += Developer(
27+
id = "openapitools",
28+
name = "OpenAPI-Generator Contributors",
29+
email = "team@openapitools.org",
30+
url = url("https://github.com/OpenAPITools")
31+
)
32+
)),
1833

1934
scriptedLaunchOpts := {
2035
scriptedLaunchOpts.value ++ Seq("-Xmx1024M", "-server", "-Dplugin.version=" + version.value)
@@ -24,25 +39,10 @@ lazy val `sbt-openapi-generator` = (project in file("."))
2439

2540
resolvers ++= Seq(
2641
Resolver.sbtPluginRepo("snapshots"),
27-
Resolver.sonatypeRepo("snapshots")
2842
),
2943

30-
version := "7.13.0",
31-
32-
homepage := Some(url("https://openapi-generator.tech")),
44+
//version := "7.14.0",
3345

34-
organization := "org.openapitools",
35-
organizationName := "OpenAPI-Generator Contributors",
36-
organizationHomepage := Some(url("https://github.com/OpenAPITools")),
37-
38-
licenses += ("The Apache Software License, Version 2.0", url("https://www.apache.org/licenses/LICENSE-2.0.txt")),
39-
40-
developers += Developer(
41-
id = "openapitools",
42-
name = "OpenAPI-Generator Contributors",
43-
email = "team@openapitools.org",
44-
url = url("https://github.com/OpenAPITools")
45-
),
4646

4747
scmInfo := Some(
4848
ScmInfo(
@@ -51,5 +51,5 @@ lazy val `sbt-openapi-generator` = (project in file("."))
5151
devConnection = "scm:git:ssh://git@github.com:OpenAPITools/openapi-generator.git")
5252
),
5353

54-
libraryDependencies += "org.openapitools" % "openapi-generator" % "7.13.0"
54+
libraryDependencies += "org.openapitools" % "openapi-generator" % "7.14.0"
5555
).enablePlugins(SbtPlugin)

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.6.2
1+
sbt.version=1.11.4

project/plugin.sbt

Lines changed: 0 additions & 6 deletions
This file was deleted.

project/plugins.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.2")

publish.sbt

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)