Skip to content

Commit 904d230

Browse files
committed
Revert "transition release"
This reverts commit a3c41f9.
1 parent c57cdfb commit 904d230

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/dev-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
id: upload-maven
3737
run: |
3838
./gradlew publish \
39-
-PmavenType=snapshots \
39+
-PmavenType=dev \
4040
-PbuildNumber=${{ github.run_number }} \
4141
-PmavenUsername=${{ secrets.MAVEN_USER }} \
4242
-PmavenPassword=${{ secrets.MAVEN_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Publish stable release to Maven
3636
id: upload-maven
37-
run: ./gradlew publish -PmavenType=releases -PmavenUsername=${{ secrets.MAVEN_USER }} -PmavenPassword=${{ secrets.MAVEN_TOKEN }}
37+
run: ./gradlew publish -PmavenType=stable -PmavenUsername=${{ secrets.MAVEN_USER }} -PmavenPassword=${{ secrets.MAVEN_TOKEN }}
3838

3939
- name: Create release
4040
uses: softprops/action-gh-release@v2.0.8

build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ plugins {
1919
id("maven-publish")
2020
}
2121

22-
val mavenType = project.findProperty("mavenType")?.toString() ?: "dev"
23-
val isDevBuild = mavenType == "dev" || mavenType == "snapshots"
22+
val isDevBuild = project.hasProperty("mavenType") && project.property("mavenType") == "dev"
2423
val buildNum = if (project.hasProperty("buildNumber")) project.property("buildNumber") as String else null
2524

2625
version = if (isDevBuild && buildNum != null) {

0 commit comments

Comments
 (0)