Skip to content

Commit 0701e1a

Browse files
committed
🔥 remove fileversioning plugin since our automation for managing this has been broken anyways. Simplifies the build and maintains our existing release process
1 parent adbb44d commit 0701e1a

File tree

6 files changed

+1
-36
lines changed

6 files changed

+1
-36
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,7 @@ jobs:
3838
- uses: gradle/gradle-build-action@v2
3939
with:
4040
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
41-
arguments: --quiet --no-configuration-cache setVersion -PnewVersion=${{ inputs.version }}
42-
43-
- uses: gradle/gradle-build-action@v2
44-
with:
45-
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
46-
arguments: --console=plain --quiet --no-configuration-cache build distZip publishNebulaPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository
41+
arguments: --console=plain --quiet --no-configuration-cache -Pversion=${{ inputs.version }} build distZip publishNebulaPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository
4742

4843
- name: Create GitHub Release
4944
id: create_release
@@ -65,26 +60,3 @@ jobs:
6560
asset_path: ./core-codemods/build/distributions/core-codemods-${{ inputs.version }}.zip
6661
asset_name: codemodder-java-codemods-${{ inputs.version }}.zip
6762
asset_content_type: application/zip
68-
69-
70-
# share version bump
71-
- run: |
72-
git checkout -b bot/update-version
73-
git add version.txt
74-
git config user.name "github-actions[bot]"
75-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
76-
git commit -m '🚀 release v${{ inputs.version }}'
77-
78-
# set version for next release
79-
- uses: gradle/gradle-build-action@v2
80-
with:
81-
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
82-
arguments: -q --no-configuration-cache bumpPatch applySnapshot
83-
84-
- run: |
85-
git add version.txt
86-
git config user.name "github-actions[bot]"
87-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
88-
git commit -m '🚧 prepare for next development iteration'
89-
git push origin bot/update-version
90-
gh pr create --title "🚧 prepare for next development iteration" --body "This PR was automatically created by the release workflow. Please review and merge it to update the version.txt file."

build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
plugins {
2-
alias(buildlibs.plugins.fileversioning)
32
alias(buildlibs.plugins.nexus.publish)
43
id("io.codemodder.base")
54
}

gradle/build-plugins/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ tasks.check {
2121
dependencies {
2222
implementation(libs.javaparser.core)
2323
implementation(libs.gson)
24-
implementation(buildlibs.fileversioning)
2524
implementation(buildlibs.spotless)
2625
implementation(buildlibs.nebula.publish.plugin)
2726
implementation(buildlibs.nebula.contacts.plugin)

gradle/build-plugins/src/main/kotlin/io.codemodder.maven-publish.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
plugins {
22
id("io.codemodder.spotless")
3-
id("de.epitschke.gradle-file-versioning")
43
`maven-publish`
54
signing
65
id("com.netflix.nebula.contacts")

gradle/buildlibs.versions.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
[versions]
2-
fileversioning = "1.3.0"
32
spotless = "6.20.0"
43

54
[libraries]
6-
fileversioning = { module = "gradle.plugin.de.epitschke.gradle:de.epitschke.gradle-file-versioning", version.ref = "fileversioning" }
75
nebula-contacts-plugin = { module = "com.netflix.nebula.contacts:com.netflix.nebula.contacts.gradle.plugin", version = "7.0.1"}
86
nebula-mavenscm-plugin = { module = "com.netflix.nebula.maven-scm:com.netflix.nebula.maven-scm.gradle.plugin", version = "20.3.0"}
97
nebula-publish-plugin = { module = "com.netflix.nebula.maven-publish:com.netflix.nebula.maven-publish.gradle.plugin", version = "20.3.0"}
108
spotless = { module = "com.diffplug.spotless:spotless-plugin-gradle", version.ref = "spotless" }
119

1210
[plugins]
13-
fileversioning = { id = "de.epitschke.gradle-file-versioning", version.ref = "fileversioning" }
1411
nexus-publish = { id = "io.github.gradle-nexus.publish-plugin", version = "1.3.0" }
1512
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }

version.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)