Skip to content

Commit 8b7c9f5

Browse files
committed
release 1.3.1
* kotlin update * automate maven central publish
1 parent b02ed64 commit 8b7c9f5

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
- name: Set up JDK 1.8
2020
uses: actions/setup-java@v3
2121
with:
22-
java-version: '8.0.332+9'
23-
distribution: 'adopt'
22+
java-version: '8'
23+
distribution: 'temurin'
2424
- name: Grant execute permission for gradlew
2525
run: chmod +x gradlew
2626
- name: Build with Gradle

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish package to the Maven Central Repository
2+
on:
3+
release:
4+
types: [ created ]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Set up JDK 1.8
11+
uses: actions/setup-java@v3
12+
with:
13+
java-version: '8'
14+
distribution: 'temurin'
15+
cache: gradle
16+
- name: Publish with Gradle
17+
env:
18+
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSSRH_PASSWORD }}
19+
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSSRH_USERNAME }}
20+
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
21+
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.OSSRH_GPG_SECRET_PASSPHRASE }}
22+
run: ./gradlew publishToSonatype --no-daemon

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ kotlin-openapi3-dsl is available on maven central
1212
### gradle
1313

1414
```groovy
15-
compile "cc.vileda:kotlin-openapi3-dsl:1.3.0"
15+
compile "cc.vileda:kotlin-openapi3-dsl:1.3.1"
1616
```
1717

1818
### maven
1919
```xml
2020
<dependency>
2121
<groupId>cc.vileda</groupId>
2222
<artifactId>kotlin-openapi3-dsl</artifactId>
23-
<version>1.3.0</version>
23+
<version>1.3.1</version>
2424
</dependency>
2525
```
2626

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ apply plugin: 'maven-publish'
1616
apply plugin: 'signing'
1717

1818
group 'cc.vileda'
19-
version '1.3.0'
19+
version '1.3.1'
2020

2121
repositories {
2222
mavenCentral()

0 commit comments

Comments
 (0)