Repository navigation
Apidiff - #928
Apidiff#928
Conversation
…k release and the java-sdk in the current directory by invoking apidiff.sh
Codecov Report
@@ Coverage Diff @@
## develop #928 +/- ##
=============================================
- Coverage 38.79% 38.78% -0.02%
Complexity 1438 1438
=============================================
Files 562 562
Lines 14398 14398
Branches 842 842
=============================================
- Hits 5586 5584 -2
- Misses 8487 8489 +2
Partials 325 325
Continue to review full report at Codecov.
|
| @@ -0,0 +1,53 @@ | |||
| #!/bin/bash | |||
There was a problem hiding this comment.
Could we name this file to something like generate-api-diff.sh to make it slightly more descriptive? I think it would also make more sense to be in the .utility folder, which would involve moving directories a little bit in the script.
There was a problem hiding this comment.
That sounds good. Adding the verb makes what the script is for clearer! And moving to .utility folder makes sense, since other documentation generation scripts are located there too.
| cp -f ../build/reports/java-sdk-api-diff* apidiff/ | ||
| ../.utility/generate_apidiff_index_html.sh > apidiff/index.html | ||
|
|
||
| # update the latest/ symlink |
There was a problem hiding this comment.
Oh good catch. I replaced the tab character with four spaces in the new change.
| # TODO: Figure out how to set japicmp task's properties (oldClasspath and newClasspath) through command-line invocation. | ||
| ./gradlew japicmp -PoldJarPath="${LATEST_RELEASE_JAR_PATH}" -PnewJarPath="${CURRENT_JAR_PATH}" -PoldJarVersion="${LATEST_RELEASE_VERSION}" -PnewJarVersion="${CURRENT_VERSION}" | ||
|
|
||
| # Step 8: Construct the filepath to the produced API diff. |
There was a problem hiding this comment.
Do we need these comments? It seems like these steps are happening outside of this script, so it's just a little confusing to have them.
There was a problem hiding this comment.
Good catch. I forgot to remove these.
lpatino10
left a comment
There was a problem hiding this comment.
Overall looks really good! I left just a few comments, but once they're addressed I'm happy to merge.
…ocumentation generation scripts
…r indented lines.
…api-diff.sh instead.
…gh-level description of the script.
This pull request addresses Issue #741
Produce API diff of the current version of Java-SDK (the version opened in the working directory) and the latest release (published on Maven) by invoking
./apidiff.shfrom the rootjava-sdk/.Find the produced API diff report in
java-sdk/build/reports/.The script that uploads the produced API diffs to WDC GitHub IO page need to be tested with Travis.