Skip to content

Commit

Permalink
use java-rs from sources
Browse files Browse the repository at this point in the history
  • Loading branch information
atimin committed Oct 1, 2024
1 parent 1e750f2 commit 7a5a57d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
10 changes: 8 additions & 2 deletions docs/examples/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,19 @@ java {
targetCompatibility = JavaVersion.VERSION_17
}


dependencies {
implementation 'store.reduct:reduct-java:0.1.0'
implementation('store.reduct:reduct-java') {
version {
branch = 'bugfix/47'
}
}
}

apply plugin: 'java'

task(QuickStart, dependsOn: 'classes', type: JavaExec) {
tasks.register('QuickStart', JavaExec) {
dependsOn 'classes'
main = "store.reduct.QuickStart"
classpath = sourceSets.main.runtimeClasspath
}
6 changes: 6 additions & 0 deletions docs/examples/java/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
rootProject.name = 'reduct-java-examples'


sourceControl {
gitRepository("https://github.com/reductstore/reduct-java.git") {
producesModule("store.reduct:reduct-java")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static void main(String[] args) {
.quotaSize(1_000_000_000)
//.exits(true) TODO: add this method to BucketSettings
.build();
Bucket bucket = client.createBucket("my-bucket12", settings);
Bucket bucket = client.createBucket("my-bucket1", settings);

// 3. Write some data with timestamps in the 'sensor-1' entry
long timestamp = System.currentTimeMillis() * 1000; // in microseconds
Expand Down

0 comments on commit 7a5a57d

Please sign in to comment.