Skip to content

Commit eac5991

Browse files
committed
already handled by the workflow
1 parent 1ce2ec2 commit eac5991

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
PUBLISH_USER: ${{ secrets.PUBLISH_USER }}
107107
PUBLISH_KEY: ${{ secrets.PUBLISH_KEY }}
108108
run: |
109-
./gradlew publishToMavenCentral -Psnapshot=true --stacktrace
109+
./gradlew publishToMavenCentral --stacktrace
110110
111111
sonar:
112112
needs: [test]

build.gradle.kts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,3 @@ publishingCentral {
2222
deploymentDir = layout.buildDirectory.dir("deployment")
2323
deploymentName = "parser"
2424
}
25-
26-
afterEvaluate {
27-
if (hasProperty("snapshot")) {
28-
val publish = tasks.findByName("publishAllReleasesToMavenCentral")
29-
publish?.enabled = version.toString().endsWith("SNAPSHOT")
30-
if (publish?.enabled == false) {
31-
logger.warn("skipping publishing because version is not a snapshot.")
32-
}
33-
}
34-
}

0 commit comments

Comments
 (0)