-
Notifications
You must be signed in to change notification settings - Fork 26
chore/bump-version-1.0.2-SNAPSHOT #482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Update project version from 1.0.2-SNAPSHOT to 1.0.0 for first stable release. Changes: - Update parent POM version to 1.0.0 - Update all 9 module POM versions to reference parent 1.0.0 - Remove .project-management/ from git tracking (add to .gitignore) - Update roadmap script with comprehensive 1.0.0 task tracking All deprecated APIs removed, critical bugs fixed, and comprehensive verification completed. Project is ready for 1.0.0 release. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Remove deprecated method overloads that accept Identity parameter from NIP01 and NIP01EventBuilder: - NIP01.createTextNoteEvent(Identity, String, List<PubKeyTag>) - NIP01EventBuilder.buildTextNote(Identity, String) - NIP01EventBuilder.buildRecipientTextNote(Identity, String, List<PubKeyTag>) These methods are superseded by instance-configured sender pattern where the Identity is set at NIP01 construction time. This simplifies the API and reduces parameter duplication across method calls. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR upgrades the project to version 1.0.0 and removes deprecated Identity-parameter overloads from NIP01, completing the migration to instance-configured senders as documented in MIGRATION.md. Additionally, it enhances build infrastructure with multi-repository publishing support and removes legacy project management documentation files.
Key changes:
- Remove deprecated NIP01 method overloads accepting Identity parameters
- Upgrade project version from 1.0.1-SNAPSHOT to 1.0.0 across all modules
- Add support for publishing to both Maven Central and 398ja Reposilite repository
Reviewed Changes
Copilot reviewed 37 out of 38 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| nostr-java-api/src/main/java/nostr/api/NIP01.java | Remove deprecated Identity-accepting createTextNoteEvent overload |
| nostr-java-api/src/main/java/nostr/api/nip01/NIP01EventBuilder.java | Remove deprecated Identity-accepting builder methods, simplify API |
| pom.xml | Upgrade to version 1.0.0, update BOM version, add multi-repository publishing profiles |
| scripts/release.sh | Add support for publishing to multiple repositories (central/398ja) |
| .github/workflows/release.yml | Improve GPG validation and multi-repository publishing support |
| central) profile=release-central ;; | ||
| 398ja|reposilite) profile=release-398ja ;; |
Copilot
AI
Oct 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The repository selection logic could be more maintainable. Consider extracting the profile mapping to a configuration section at the top of the script or using an associative array for better scalability when adding more repositories.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codex address this comment
| return new GenericEventFactory<PubKeyTag>(resolveSender(sender), Kind.TEXT_NOTE.getValue(), tags, content) | ||
| .create(); | ||
| } | ||
| // Removed deprecated Identity-accepting overloads; use instance-configured sender |
Copilot
AI
Oct 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The comment should provide more context about the migration path. Consider expanding it to reference the MIGRATION.md file or provide a brief example of the new usage pattern.
| // Removed deprecated Identity-accepting overloads; use instance-configured sender | |
| // Removed deprecated Identity-accepting overloads. | |
| // For migration details, see MIGRATION.md. | |
| // Usage example: | |
| // NIP01EventBuilder builder = new NIP01EventBuilder(myIdentity); | |
| // builder.buildTextNote("Hello, world!"); | |
| // Use the instance-configured sender (set via constructor or updateDefaultSender). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codex address this comment
Summary
Remove deprecated NIP01 method overloads that accepted
Identityparameters, finalizing the migration to instance-configured senders per MIGRATION.md. This simplifies the API and removes redundant arguments.Related issue: #____
What changed?
createTextNoteEvent(Identity, String, List<PubKeyTag>)buildTextNote(Identity, String)andbuildRecipientTextNote(Identity, String, List<PubKeyTag>)buildRecipientTextNote(String, List<PubKeyTag>)using the configured senderReference docs:
createTextNoteEvent(Identity, String)BREAKING
Identity. Use the instance-sender API instead:nip01.createTextNoteEvent(identity, content, recipients)new NIP01(identity).createTextNoteEvent(content, recipients)Review focus
Identityfor text-note creation.Checklist
Testing
mvn -q -DskipITs=true -DskipTests compile— SUCCESSmvn -q -DskipITs=true test— execution exceeded time budget in this environment but no compile errors related to these changes.mvn -q verifyfails in this sandbox due to Testcontainers/JNA permissions (not code-related). Example excerpt:java.lang.UnsatisfiedLinkError: Failed to create temporary file for /com/sun/jna/linux-x86-64/libjnidispatch.so library: Permission deniedNoClassDefFoundError: Could not initialize class org.testcontainers.dockerclient.RootlessDockerClientProviderStrategy$LibCNotes: