Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Nostr-java is a library for generating, signing, and publishing nostr events to

```xml
<properties>
<nostr-java.version>v0.007.1-alpha</nostr-java.version>
<nostr-java.version>v0.007.2-alpha</nostr-java.version>
Copy link

Copilot AI Jul 29, 2025

Choose a reason for hiding this comment

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

The version format in README.md (v0.007.2-alpha) is inconsistent with the actual project version format (0.7.2-SNAPSHOT) used throughout the POMs and Gradle files. This could confuse users about which version format to use.

Suggested change
<nostr-java.version>v0.007.2-alpha</nostr-java.version>
<nostr-java.version>0.7.2-SNAPSHOT</nostr-java.version>

Copilot uses AI. Check for mistakes.
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
```
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
}

group = 'xyz.tcheeric'
version = '0.7.1-SNAPSHOT'
version = '0.7.2-SNAPSHOT'

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ org.gradle.parallel=true
org.gradle.warning.mode=none

nostr-java.group=xyz.tcheeric
nostr-java.version=0.7.1-SNAPSHOT
nostr-java.version=0.7.2-SNAPSHOT
nostr-java.description=nostr-java

nostr-java.java-version=21
Expand Down
2 changes: 1 addition & 1 deletion nostr-java-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java</artifactId>
<version>0.7.1-SNAPSHOT</version>
<version>0.7.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import nostr.event.tag.VoteTag;
import nostr.id.Identity;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Disabled;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
Expand All @@ -67,6 +68,7 @@
@SpringJUnitConfig(RelayConfig.class)
@ActiveProfiles("test")
@Log
@Disabled("Requires running relay at ws://localhost:5555")
public class ApiEventIT {
@Autowired
private Map<String, String> relays;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import nostr.event.message.EventMessage;
import nostr.id.Identity;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Disabled;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
Expand All @@ -24,6 +25,7 @@

@SpringJUnitConfig(RelayConfig.class)
@ActiveProfiles("test")
@Disabled("Requires running relays at ws://localhost:5555")
class ApiEventTestUsingSpringWebSocketClientIT {
private final List<SpringWebSocketClient> springWebSocketClients;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import nostr.event.tag.PubKeyTag;
import nostr.id.Identity;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Disabled;
import org.springframework.test.context.ActiveProfiles;

import java.io.IOException;
Expand All @@ -23,6 +24,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@ActiveProfiles("test")
@Disabled("Requires running relay at ws://localhost:5555")
class ApiNIP52EventIT {
private static final String RELAY_URI = "ws://localhost:5555";
private final SpringWebSocketClient springWebSocketClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import nostr.event.tag.ReferenceTag;
import nostr.id.Identity;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Disabled;
import org.springframework.test.context.ActiveProfiles;

import java.io.IOException;
Expand All @@ -29,6 +30,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@ActiveProfiles("test")
@Disabled("Requires running relay at ws://localhost:5555")
class ApiNIP52RequestIT {
private static final String PRV_KEY_VALUE = "23c011c4c02de9aa98d48c3646c70bb0e7ae30bdae1dfed4d251cbceadaeeb7b";
private static final String RELAY_URI = "ws://localhost:5555";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import nostr.event.tag.SubjectTag;
import nostr.id.Identity;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Disabled;
import org.springframework.test.context.ActiveProfiles;

import java.io.IOException;
Expand All @@ -29,6 +30,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@ActiveProfiles("test")
@Disabled("Requires running relay at ws://localhost:5555")
class ApiNIP99EventIT {
private static final String RELAY_URI = "ws://localhost:5555";
public static final String CLASSIFIED_LISTING_CONTENT = "classified listing content";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import nostr.event.tag.SubjectTag;
import nostr.id.Identity;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Disabled;
import org.springframework.test.context.ActiveProfiles;

import java.io.IOException;
Expand All @@ -30,6 +31,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@ActiveProfiles("test")
@Disabled("Requires running relay at ws://localhost:5555")
class ApiNIP99RequestIT {
private static final String PRV_KEY_VALUE = "23c011c4c02de9aa98d48c3646c70bb0e7ae30bdae1dfed4d251cbceadaeeb7b";
private static final String RELAY_URI = "ws://localhost:5555";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import nostr.event.tag.IdentifierTag;
import nostr.id.Identity;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Disabled;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
Expand All @@ -36,11 +37,13 @@

@SpringJUnitConfig(RelayConfig.class)
@ActiveProfiles("test")
@Disabled("Requires running relay at ws://localhost:5555")
public class ZDoLastApiNIP09EventIT {
@Autowired
private Map<String, String> relays;

@Test
@Disabled("Requires running relay at ws://127.0.0.1:5555")
public void deleteEvent() throws IOException {

Identity identity = Identity.generateRandomIdentity();
Expand Down Expand Up @@ -72,6 +75,7 @@ public void deleteEvent() throws IOException {


@Test
@Disabled("Requires running relay at ws://127.0.0.1:5555")
public void deleteEventWithRef() throws IOException {
final String RELAY_URI = "ws://localhost:5555";
Identity identity = Identity.generateRandomIdentity();
Expand Down
2 changes: 1 addition & 1 deletion nostr-java-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java</artifactId>
<version>0.7.1-SNAPSHOT</version>
<version>0.7.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion nostr-java-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java</artifactId>
<version>0.7.1-SNAPSHOT</version>
<version>0.7.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion nostr-java-crypto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java</artifactId>
<version>0.7.1-SNAPSHOT</version>
<version>0.7.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion nostr-java-encryption/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java</artifactId>
<version>0.7.1-SNAPSHOT</version>
<version>0.7.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion nostr-java-event/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java</artifactId>
<version>0.7.1-SNAPSHOT</version>
<version>0.7.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion nostr-java-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java</artifactId>
<version>0.7.1-SNAPSHOT</version>
<version>0.7.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion nostr-java-id/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java</artifactId>
<version>0.7.1-SNAPSHOT</version>
<version>0.7.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 2 additions & 0 deletions nostr-java-id/src/test/java/nostr/id/EventTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import nostr.util.NostrUtil;
import nostr.util.validator.Nip05Validator;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Disabled;

import static nostr.base.Encoder.ENCODER_MAPPED_AFTERBURNER;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
Expand Down Expand Up @@ -72,6 +73,7 @@ public void testCreateUnsupportedGenericTagAttribute() {
}

@Test
@Disabled("Requires network access for nip05 validation")
public void testNip05Validator() {
System.out.println("testNip05Validator");
try {
Expand Down
2 changes: 1 addition & 1 deletion nostr-java-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java</artifactId>
<version>0.7.1-SNAPSHOT</version>
<version>0.7.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>xyz.tcheeric</groupId>
<artifactId>nostr-java</artifactId>
<version>0.7.1-SNAPSHOT</version>
<version>0.7.2-SNAPSHOT</version>
<packaging>pom</packaging>

<parent>
Expand Down Expand Up @@ -77,7 +77,7 @@
</modules>

<properties>
<nostr-java.version>0.7.1-SNAPSHOT</nostr-java.version>
<nostr-java.version>0.7.2-SNAPSHOT</nostr-java.version>
<java.version>21</java.version>

<spring-boot.version>3.4.3</spring-boot.version>
Expand Down