Skip to content

Commit

Permalink
Cleans and updates dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph Gasser committed Aug 26, 2024
1 parent b04f878 commit a60e978
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 94 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'org.jetbrains.kotlin.jvm' version "$version_kotlin"
id 'org.jetbrains.kotlin.plugin.serialization' version "$version_kotlin"
id 'org.openapi.generator' version '7.4.0'
id "de.undercouch.download" version "5.4.0"
id 'org.openapi.generator' version '7.8.0'
id 'de.undercouch.download' version "5.6.0"
id 'java-library'
id 'idea'
}
Expand Down
37 changes: 17 additions & 20 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
version_boofcv=1.1.5
version_caffeine=3.1.8
version_clikt=4.2.0
version_clikt=4.2.2
version_commonsmath3=3.6.1
version_cottontaildb=0.16.1
version_javacv=1.5.9
version_javalin=6.1.3
version_javalinopenapi=6.1.3
version_javalinssl=6.1.3
version_jdbc_postgres=42.7.3
version_jline=3.23.0
version_junit=5.10.1
version_junit_platform=1.10.1
version_grpc=1.60.0
version_kotlin=1.9.21
version_cottontaildb=0.16.7
version_javacv=1.5.10
version_javalin=6.3.0
version_jdbc_postgres=42.7.4
version_jline=3.26.3
version_junit=5.11.0
version_junit_platform=1.11.0
version_grpc=1.66.0
version_kotlin=1.9.25
version_kotlinx_coroutines=1.7.3
version_kotlinx_serialization=1.6.2
version_kotlinx_datetime=0.4.1
version_kotlinlogging = 5.1.0
version_log4j2=2.20.0
version_kotlinx_datetime=0.6.1
version_kotlinlogging = 7.0.0
version_log4j2=2.23.1
version_metadataextractor=2.19.0
version_okhttp3=4.12.0
version_picnic=0.7.0
version_protobuf=3.25.1
version_scrimage=4.1.1
version_slf4j=2.0.9
version_protobuf=4.27.3
version_scrimage=4.2.0
version_slf4j=2.0.16
version_jogl=2.3.2
version_joml=1.9.25
version_ktor=2.3.6
version_ktor=2.3.12
2 changes: 1 addition & 1 deletion vitrivr-engine-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies {

/** dependencies for exif metadata extraction. */
implementation group: 'com.drewnoakes', name: 'metadata-extractor', version: version_metadataextractor
implementation group: 'io.javalin.community.openapi', name: 'javalin-openapi-plugin', version: version_javalinopenapi
implementation group: 'io.javalin.community.openapi', name: 'javalin-openapi-plugin', version: version_javalin

/* Test Fixtures from Cottontail DB core. .*/
testFixturesImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: version_junit
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package org.vitrivr.engine.plugin.cottontaildb.descriptors
import io.grpc.StatusRuntimeException
import org.vitrivr.cottontail.client.language.basics.expression.Column
import org.vitrivr.cottontail.client.language.basics.expression.Literal
import org.vitrivr.cottontail.client.language.basics.expression.ValueList
import org.vitrivr.cottontail.client.language.basics.predicate.Compare
import org.vitrivr.cottontail.core.database.Name
import org.vitrivr.cottontail.core.tuple.Tuple
Expand Down Expand Up @@ -111,7 +112,7 @@ abstract class AbstractDescriptorReader<D : Descriptor<*>>(final override val fi
*/
override fun getAll(descriptorIds: Iterable<UUID>): Sequence<D> {
val query = org.vitrivr.cottontail.client.language.dql.Query(this.entityName)
.where(Compare(Column(this.entityName.column(DESCRIPTOR_ID_COLUMN_NAME)), Compare.Operator.IN, org.vitrivr.cottontail.client.language.basics.expression.List(descriptorIds.map { UuidValue(it) }.toTypedArray())))
.where(Compare(Column(this.entityName.column(DESCRIPTOR_ID_COLUMN_NAME)), Compare.Operator.IN, ValueList(descriptorIds.map { UuidValue(it) }.toTypedArray())))
return try {
val result = this.connection.client.query(query)
result.asSequence().map { this.tupleToDescriptor(it) }
Expand All @@ -129,7 +130,7 @@ abstract class AbstractDescriptorReader<D : Descriptor<*>>(final override val fi
*/
override fun getAllForRetrievable(retrievableIds: Iterable<RetrievableId>): Sequence<D> {
val query = org.vitrivr.cottontail.client.language.dql.Query(this.entityName)
.where(Compare(Column(this.entityName.column(RETRIEVABLE_ID_COLUMN_NAME)), Compare.Operator.IN, org.vitrivr.cottontail.client.language.basics.expression.List(retrievableIds.map { UuidValue(it) }.toTypedArray())))
.where(Compare(Column(this.entityName.column(RETRIEVABLE_ID_COLUMN_NAME)), Compare.Operator.IN, ValueList(retrievableIds.map { UuidValue(it) }.toTypedArray())))
return try {
val result = this.connection.client.query(query)
result.asSequence().map { this.tupleToDescriptor(it) }
Expand Down Expand Up @@ -199,7 +200,7 @@ abstract class AbstractDescriptorReader<D : Descriptor<*>>(final override val fi
Compare(
Column(entityName.column(RETRIEVABLE_ID_COLUMN_NAME)),
Compare.Operator.IN,
org.vitrivr.cottontail.client.language.basics.expression.List(ids.map { UuidValue(it) }.toTypedArray())
ValueList(ids.map { UuidValue(it) }.toTypedArray())
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ open class CottontailDescriptorWriter<D : Descriptor<*>>(final override val fiel
Compare(
Column(this.entityName.column(DESCRIPTOR_ID_COLUMN_NAME)),
Compare.Operator.IN,
org.vitrivr.cottontail.client.language.basics.expression.List(ids.toTypedArray())
org.vitrivr.cottontail.client.language.basics.expression.ValueList(ids.toTypedArray())
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import io.github.oshai.kotlinlogging.KLogger
import io.github.oshai.kotlinlogging.KotlinLogging
import io.grpc.StatusRuntimeException
import org.vitrivr.cottontail.client.language.basics.expression.Column
import org.vitrivr.cottontail.client.language.basics.expression.List
import org.vitrivr.cottontail.client.language.basics.expression.Literal
import org.vitrivr.cottontail.client.language.basics.expression.ValueList
import org.vitrivr.cottontail.client.language.basics.predicate.And
import org.vitrivr.cottontail.client.language.basics.predicate.Compare
import org.vitrivr.cottontail.client.language.dql.Query
Expand Down Expand Up @@ -103,7 +103,7 @@ internal class RetrievableReader(override val connection: CottontailConnection)
Compare(
Column(this.entityName.column(RETRIEVABLE_ID_COLUMN_NAME)),
Compare.Operator.IN,
List(ids.map { UuidValue(it) }.toTypedArray())
ValueList(ids.map { UuidValue(it) }.toTypedArray())
)
)
return try {
Expand Down Expand Up @@ -160,7 +160,7 @@ internal class RetrievableReader(override val connection: CottontailConnection)
Compare(
Column(Name.ColumnName.create(SUBJECT_ID_COLUMN_NAME)),
Compare.Operator.IN,
List(subjectIds.map { UuidValue(it) }.toTypedArray())
ValueList(subjectIds.map { UuidValue(it) }.toTypedArray())
)
} else {
null
Expand All @@ -169,7 +169,7 @@ internal class RetrievableReader(override val connection: CottontailConnection)
Compare(
Column(Name.ColumnName.create(PREDICATE_COLUMN_NAME)),
Compare.Operator.IN,
List(predicates.map { StringValue(it) }.toTypedArray())
ValueList(predicates.map { StringValue(it) }.toTypedArray())
)
} else {
null
Expand All @@ -178,7 +178,7 @@ internal class RetrievableReader(override val connection: CottontailConnection)
Compare(
Column(Name.ColumnName.create(OBJECT_ID_COLUMN_NAME)),
Compare.Operator.IN,
List(objectIds.map { UuidValue(it) }.toTypedArray())
ValueList(objectIds.map { UuidValue(it) }.toTypedArray())
)
} else {
null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import io.github.oshai.kotlinlogging.KotlinLogging
import io.grpc.StatusRuntimeException
import org.vitrivr.cottontail.client.language.basics.expression.Column
import org.vitrivr.cottontail.client.language.basics.expression.Literal
import org.vitrivr.cottontail.client.language.basics.expression.ValueList
import org.vitrivr.cottontail.client.language.basics.predicate.And
import org.vitrivr.cottontail.client.language.basics.predicate.Compare
import org.vitrivr.cottontail.client.language.dml.BatchInsert
Expand Down Expand Up @@ -142,7 +143,7 @@ internal class RetrievableWriter(override val connection: CottontailConnection)
Compare(
Column(this.entityName.column(RETRIEVABLE_ID_COLUMN_NAME)),
Compare.Operator.IN,
org.vitrivr.cottontail.client.language.basics.expression.List(ids.toTypedArray())
ValueList(ids.toTypedArray())
)
)

Expand Down
9 changes: 2 additions & 7 deletions vitrivr-engine-module-fes/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,12 @@ dependencies {
/* vitrivr engine features dependency. */
implementation project(path: ':vitrivr-engine-core')

/** OKHttp3 Client */
implementation group: 'com.squareup.okhttp3', name: 'okhttp', version: version_okhttp3
implementation group: 'com.squareup.okhttp3', name: 'logging-interceptor', version: version_okhttp3

implementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: version_kotlinx_coroutines
implementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-serialization-json', version: version_kotlinx_serialization

/* Ktor client. */
implementation group: 'io.ktor', name: 'ktor-client-content-negotiation', version: version_ktor
implementation group: 'io.ktor', name: 'ktor-serialization-kotlinx-json', version: version_ktor
implementation group: 'io.ktor', name: 'ktor-client-core', version: version_ktor
implementation group: 'io.ktor', name: 'ktor-client-okhttp', version: version_ktor

/* Kotlinx */
implementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-datetime', version: version_kotlinx_datetime
}
4 changes: 2 additions & 2 deletions vitrivr-engine-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ dependencies {

/** Javalin */
implementation group: 'io.javalin', name: 'javalin', version: version_javalin
implementation group: 'io.javalin.community.openapi', name: 'javalin-openapi-plugin', version: version_javalinopenapi
implementation group: 'io.javalin.community.openapi', name: 'javalin-swagger-plugin', version: version_javalinssl
implementation group: 'io.javalin.community.openapi', name: 'javalin-openapi-plugin', version: version_javalin
implementation group: 'io.javalin.community.openapi', name: 'javalin-swagger-plugin', version: version_javalin
implementation group: 'io.javalin.community.ssl', name: 'ssl-plugin', version: version_javalin

/* Kapt. */
Expand Down

0 comments on commit a60e978

Please sign in to comment.