Skip to content

Commit

Permalink
Bump japicmp to version 0.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermocalvo committed Oct 8, 2024
1 parent bf48072 commit b84e25b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,25 +96,13 @@ jobs:
- name: Check
run: ./gradlew check

# ================================
# SEMANTIC VERSIONING
# ================================
- name: Semantic versioning
if: ${{ env.is_latest_jdk }}
run: |
SEMVER=`cat ./api-compatibility/build/semver.txt`
BADGE="https://dev.leakyabstractions.com/result/semver-${SEMVER}.json"
URL="https://img.shields.io/endpoint?url=$BADGE"
echo "## Compatibility Report" >> $GITHUB_STEP_SUMMARY
echo "![Semantic Versioning]($URL)" >> $GITHUB_STEP_SUMMARY
# ================================
# COMPATIBILITY REPORT
# ================================
- name: Compatibility with version ${{ steps.properties.outputs.previousVersion }}
if: ${{ env.is_latest_jdk }}
# $GITHUB_STEP_SUMMARY supports content up to a size of 1024k
run: head -c 1MiB ./api-compatibility/build/report.txt >> $GITHUB_STEP_SUMMARY
run: head -c 1MiB ./api-compatibility/build/report.md >> $GITHUB_STEP_SUMMARY

# ================================
# CACHE SONARCLOUD PACKAGES
Expand Down
2 changes: 2 additions & 0 deletions api-compatibility/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ tasks.register("check", me.champeau.gradle.japicmp.JapicmpTask) {
final semverReport= layout.buildDirectory.file('semver.txt').get().asFile
final textReport = layout.buildDirectory.file('report.txt').get().asFile
final htmlReport = layout.buildDirectory.file('report.html').get().asFile
final mdReport = layout.buildDirectory.file('report.md').get().asFile
newClasspath.from(configurations.current)
oldClasspath.from(configurations.previous)
semverOutputFile = semverReport
txtOutputFile = textReport
htmlOutputFile = htmlReport
mdOutputFile = mdReport
onlyModified = true
failOnModification = false
failOnSourceIncompatibility = false
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
assertj = "3.26.3"
google-java-format = "1.19.2"
jacoco = "0.8.10"
japicmp = "0.4.3"
japicmp = "0.4.4"
junit = "5.11.2"
nexus-publish = "2.0.0"
result-api = "1.0.0.0"
Expand Down

0 comments on commit b84e25b

Please sign in to comment.