Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
552df19
fixed old integrated tests for events containing generic tag and requ…
avlo Mar 21, 2025
a96b4a9
BaseTagEncoder as record (removes need for lombok), TagSerializer ref…
avlo Mar 21, 2025
166a2b9
properly relocate GenericTag
avlo Mar 21, 2025
2929781
add tag serializer polymorphism
avlo Mar 22, 2025
0405606
cleanup
avlo Mar 22, 2025
5505794
cleanup
avlo Mar 22, 2025
53877d8
basemessagedecor, eventmessage refactor
avlo Mar 22, 2025
ace31b8
EventMessage refactor & cleanup
avlo Mar 22, 2025
85b8fcf
BaseMessageDecoder and downstream Message classes cleaned up / refact…
avlo Mar 22, 2025
0a6a873
add spring boot junit retry
avlo Mar 23, 2025
6601bd0
add and set failsafe retry count to 1
avlo Mar 23, 2025
2f68096
gradle test/check phase diff, pom reorg
avlo Mar 26, 2025
351c9a4
add failed test assertion
avlo Mar 26, 2025
ea558cf
build.gradle & conventions minimizing
avlo Mar 27, 2025
bf2aa75
gradle repo
avlo Mar 27, 2025
3780066
determine use/need for GenericMessage
avlo Mar 27, 2025
32bd20d
renamed AddressableTagFilter to AddressTagFilter, added AddressTag tests
avlo Mar 27, 2025
1f5011c
renamed test to properly match class under test
avlo Mar 27, 2025
743e587
Merge branch 'generic_message_decoding' into develop
avlo Mar 27, 2025
b22d217
BaseTag.getFieldValue() now returns Optional<String> instead of throw…
avlo Mar 28, 2025
eb38322
cleanup
avlo Mar 28, 2025
4110b77
resolve stash diffs
avlo Mar 28, 2025
d8a3814
AddressTag variant, breaks TagDeserializer in superconductor
avlo Mar 28, 2025
9c5b8e6
add vote tag
avlo Apr 2, 2025
ca379aa
updated IT tests
avlo Apr 2, 2025
c757f2e
Merge branch 'develop_port_5555' into broken_address_tag_decoding
avlo Apr 3, 2025
0115366
addresstag updates
avlo Apr 3, 2025
7cc9f34
addressTag filter updates
avlo Apr 10, 2025
9539ff3
remove stream from serializer
avlo Apr 11, 2025
896367a
explicit identifiertag serializer
avlo Apr 14, 2025
5e8e704
additional addressTag Encode/Decode tests
avlo Apr 15, 2025
2bf8c62
cleanup
avlo Apr 15, 2025
1578fe9
guava replaced with regex
avlo Apr 21, 2025
ac645b9
default json vote property
avlo Apr 24, 2025
8c16496
add VoteTag tests
avlo Apr 25, 2025
a8c4306
build.gradle
avlo Apr 28, 2025
2019053
cleanup
avlo Apr 29, 2025
989ad21
version up
avlo Apr 29, 2025
ea2f7c7
readme up
avlo Apr 29, 2025
2869749
build instructions
avlo Apr 30, 2025
8ddc150
README updates to build project from source
avlo Apr 30, 2025
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ valid relay(s) must **_first_** be defined in [relays.properties](nostr-java-api

## Examples
I recommend having a look at these repositories/module for examples:
- [nostr-example](https://github.com/tcheeric/nostr-java/tree/main/nostr-java-examples) module
- [nostr-client](https://github.com/tcheeric/nostr-client) github repository
- [SuperConductor](https://github.com/avlo/superconductor) nostr relay
- [nostr-example](https://github.com/tcheeric/nostr-java/tree/main/nostr-java-examples) module
- [nostr-client](https://github.com/tcheeric/nostr-client) github repository
- [SuperConductor](https://github.com/avlo/superconductor) nostr relay


## Supported NIPs
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.6.5-SNAPSHOT'
version = '0.6.6-SNAPSHOT'

repositories {
mavenCentral()
Expand Down
23 changes: 8 additions & 15 deletions buildSrc/src/main/groovy/nostr-java.conventions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugins {
id 'org.gradle.test-retry'
}

group = version = rootProject.property("nostr-java.group")
group = rootProject.property("nostr-java.group")
version = rootProject.property("nostr-java.version")
description = rootProject.property("nostr-java.description")

Expand All @@ -38,7 +38,6 @@ publishing {
}
}


dependencies {
def springBootVersion = rootProject.property("nostr-java.springBootVersion")
def apacheCommonsLang3 = rootProject.property("nostr-java.apacheCommonsLang3")
Expand All @@ -61,7 +60,6 @@ dependencies {
implementation 'org.bouncycastle:bcprov-jdk18on:' + bouncyCastle

implementation 'org.apache.commons:commons-lang3:' + apacheCommonsLang3
implementation 'com.google.guava:guava:' + googleGuava
implementation 'org.awaitility:awaitility:' + awaitility
implementation 'org.projectlombok:lombok:' + lombok
annotationProcessor 'org.awaitility:awaitility:' + awaitility
Expand All @@ -71,25 +69,20 @@ dependencies {
testImplementation 'org.projectlombok:lombok:' + lombok
testImplementation 'org.awaitility:awaitility:' + awaitility
testImplementation 'com.adarshr:gradle-test-logger-plugin:' + logger
testImplementation 'com.google.guava:guava:' + googleGuava

testAnnotationProcessor 'org.projectlombok:lombok:' + lombok
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

tasks.test {
systemProperty("spring.profiles.active", "test")
useJUnitPlatform()
// retry {
// maxRetries.set(1)
//// maxFailures.set(20)
//// failOnPassedAfterRetry.set(false)
//// failOnSkippedAfterRetry.set(true)
// }
}

test {
filter {
excludeTestsMatching("nostr.api.integration.*");
}
}

test {
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.6.5-SNAPSHOT
nostr-java.version=0.6.6-SNAPSHOT
nostr-java.description=nostr-java

nostr-java.java-version=21
Expand Down
232 changes: 0 additions & 232 deletions metrics.md

This file was deleted.

6 changes: 3 additions & 3 deletions nostr-java-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies {
api project(':nostr-java-encryption')
}

tasks.register('integrationTest', Test) {
tasks.register('apiIntegrationTest', Test) {
description = 'api integration tests.'
group = 'verification'
systemProperty("spring.profiles.active", "test")
Expand All @@ -20,11 +20,11 @@ tasks.register('integrationTest', Test) {
}
}

integrationTest {
apiIntegrationTest {
retry {
failOnPassedAfterRetry = false
maxRetries = 1
}
}

check.dependsOn integrationTest
check.dependsOn apiIntegrationTest
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.6.5-SNAPSHOT</version>
<version>0.6.6-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions nostr-java-api/src/main/java/nostr/api/NIP09.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import nostr.event.Deleteable;
import nostr.event.NIP09Event;
import nostr.event.impl.GenericEvent;
import nostr.event.impl.GenericTag;
import nostr.event.tag.GenericTag;
import nostr.event.tag.AddressTag;
import nostr.event.tag.EventTag;
import nostr.event.tag.IdentifierTag;
Expand Down Expand Up @@ -75,7 +75,7 @@ public NIP09<T> createDeletionEvent(@NonNull List<Deleteable> deleteables) {

private AddressTag toAddressTag(@NonNull GenericTag genericTag) {
IdentifierTag identifierTag = new IdentifierTag();
identifierTag.setId(genericTag.getAttributes().get(1).getValue().toString());
identifierTag.setUuid(genericTag.getAttributes().get(1).getValue().toString());

AddressTag addressTag = new AddressTag();
addressTag.setIdentifierTag(identifierTag);
Expand Down
2 changes: 1 addition & 1 deletion nostr-java-api/src/main/java/nostr/api/NIP23.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import nostr.api.factory.impl.NIP23Impl.SummaryTagFactory;
import nostr.api.factory.impl.NIP23Impl.TitleTagFactory;
import nostr.event.impl.GenericEvent;
import nostr.event.impl.GenericTag;
import nostr.event.tag.GenericTag;
import nostr.event.tag.AddressTag;
import nostr.event.tag.EventTag;
import nostr.id.Identity;
Expand Down
3 changes: 1 addition & 2 deletions nostr-java-api/src/main/java/nostr/api/NIP25.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
import nostr.event.NIP25Event;
import nostr.event.Reaction;
import nostr.event.impl.GenericEvent;
import nostr.event.impl.GenericTag;
import nostr.event.impl.GenericTag;
import nostr.event.tag.GenericTag;
import nostr.event.tag.EmojiTag;
import nostr.id.Identity;

Expand Down
2 changes: 1 addition & 1 deletion nostr-java-api/src/main/java/nostr/api/NIP31.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import lombok.NonNull;
import nostr.api.factory.TagFactory;
import nostr.event.impl.GenericTag;
import nostr.event.tag.GenericTag;

public class NIP31 {

Expand Down
Loading