diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..c111044 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +@jakipatryk diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 3d32179..2026251 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -33,7 +33,7 @@ jobs: uses: actions/checkout@v4 - uses: coursier/cache-action@v6 - name: Setup Scala - uses: olafurpg/setup-scala@v11 + uses: olafurpg/setup-scala@v14 with: java-version: "adopt@1.8" - name: Build and run tests diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3170eff --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,36 @@ +# +# Copyright 2023 ABSA Group Limited +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +name: Release +on: + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: olafurpg/setup-scala@v14 + with: + java-version: "adopt@1.8" + - run: sbt ci-release + env: + PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} + PGP_SECRET: ${{ secrets.PGP_SECRET }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} diff --git a/publish.sbt b/publish.sbt new file mode 100644 index 0000000..daded8f --- /dev/null +++ b/publish.sbt @@ -0,0 +1,39 @@ +/* + * Copyright 2023 ABSA Group Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +ThisBuild / organizationHomepage := Some(url("https://www.absa.africa")) +ThisBuild / scmInfo := Some( + ScmInfo( + browseUrl = url("https://github.com/AbsaOSS/springdoc-openapi-scala/tree/main"), + connection = "scm:git:git://github.com/AbsaOSS/springdoc-openapi-scala.git", + devConnection = "scm:git:ssh://github.com/AbsaOSS/springdoc-openapi-scala.git" + ) +) + +ThisBuild / developers := List( + Developer( + id = "jakipatryk", + name = "Bartlomiej Baj", + email = "bartlomiej.baj@absa.africa", + url = url("https://github.com/jakipatryk") + ) +) + +ThisBuild / homepage := Some(url("https://github.com/AbsaOSS/springdoc-openapi-scala")) +ThisBuild / description := "Enhancement of springdoc-openapi for Scala" +ThisBuild / organizationName := "ABSA Group Limited" +ThisBuild / startYear := Some(2023) +ThisBuild / licenses += "Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.txt")