Skip to content

Conversation

@samuel27m
Copy link
Member

Description

Add instructions for local library testing

Checklist

  • Code compiles correctly
  • Tests for the changes have been added
  • All tests passing
  • This PR change is backwards-compatible
  • This PR CONTAINS a (planned) breaking change (it is NOT backwards-compatible)

@samuel27m samuel27m requested a review from a team June 16, 2025 14:41

// Custom task to unpublish from local Maven repository
// Usage: ./gradlew unpublishFromMavenLocal
task unpublishFromMavenLocal(type: Delete) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maven does not include a unpublish local option, and you'd have to manually remove them from a folder. Added a custom task to make this process easier 😄

@codecov
Copy link

codecov bot commented Jun 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.63%. Comparing base (4484a27) to head (dd90c87).
Report is 23 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #302      +/-   ##
============================================
+ Coverage     72.54%   72.63%   +0.09%     
- Complexity      462      511      +49     
============================================
  Files            70       70              
  Lines          1894     2043     +149     
  Branches        173      199      +26     
============================================
+ Hits           1374     1484     +110     
- Misses          424      437      +13     
- Partials         96      122      +26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

README.md Outdated
```
./gradlew publishToMavenLocal -x signMavenJavaPublication
```
2. In the [samples](https://github.com/indeedeng/iwf-java-samples) repo, make sure your `build.gradle` depends on the same version you just published, then run:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be a dump question, but how do you know what the version is you just published. Whenever we used publocal it would be something like local-the date-library name.

Copy link
Member Author

@samuel27m samuel27m Jun 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good point. Here, you'd open build.gradle and then see what is in the version variable to find which is the version you just published locally. I'll add this info in the README.

@samuel27m samuel27m merged commit ac3acc7 into main Jun 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants