Skip to content

Commit

Permalink
(MAJOR) move packages
Browse files Browse the repository at this point in the history
  • Loading branch information
rtc11 committed Mar 14, 2024
1 parent d63d334 commit f64232c
Show file tree
Hide file tree
Showing 63 changed files with 165 additions and 396 deletions.
3 changes: 0 additions & 3 deletions cache/build.gradle.kts

This file was deleted.

91 changes: 0 additions & 91 deletions cache/main/no/nav/aap/cache/Cache.kt

This file was deleted.

120 changes: 0 additions & 120 deletions cache/test/no/nav/aap/cache/CacheTest.kt

This file was deleted.

2 changes: 1 addition & 1 deletion kafka-avroserde/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ repositories {
}

dependencies {
implementation(project(":kafka-2"))
implementation(project(":kafka-streams"))

api("org.apache.kafka:kafka-streams:3.7.0")
api("io.confluent:kafka-streams-avro-serde:7.4.0")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package no.nav.aap.kafka.serde.avro
package libs.kafka

import io.confluent.kafka.streams.serdes.avro.GenericAvroSerde
import io.confluent.kafka.streams.serdes.avro.SpecificAvroSerde
import no.nav.aap.kafka.streams.v2.config.StreamsConfig
import no.nav.aap.kafka.streams.v2.serde.StreamSerde
import libs.kafka.serde.StreamSerde
import org.apache.avro.specific.SpecificRecord
import org.apache.kafka.common.serialization.Deserializer
import org.apache.kafka.common.serialization.Serializer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.aap.kafka.serde.avro
package libs.kafka

import org.apache.avro.generic.GenericData
import org.apache.avro.generic.GenericRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package no.nav.aap.kafka
package libs.kafka

import io.confluent.kafka.schemaregistry.client.SchemaRegistryClientConfig
import io.confluent.kafka.serializers.AbstractKafkaSchemaSerDeConfig
import no.nav.aap.kafka.streams.v2.config.SchemaRegistryConfig
import no.nav.aap.kafka.streams.v2.config.SslConfig
import no.nav.aap.kafka.streams.v2.config.StreamsConfig
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dependencies {
exclude("org.apache.kafka", "kafka-clients")
}

implementation(project(":kafka-2"))
implementation(project(":kafka-streams"))
implementation("org.apache.kafka:kafka-streams:3.7.0")

implementation(kotlin("test"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ package no.nav.aap.kafka.streams.v2.test

import io.micrometer.core.instrument.MeterRegistry
import io.micrometer.core.instrument.binder.kafka.KtorKafkaMetrics
import no.nav.aap.kafka.streams.v2.*
import no.nav.aap.kafka.streams.v2.config.StreamsConfig
import no.nav.aap.kafka.streams.v2.consumer.OffsetResetPolicy
import no.nav.aap.kafka.streams.v2.visual.TopologyVisulizer
import libs.kafka.*
import libs.kafka.client.OffsetResetPolicy
import libs.kafka.visual.TopologyVisulizer
import org.apache.kafka.clients.consumer.Consumer
import org.apache.kafka.clients.consumer.MockConsumer
import org.apache.kafka.clients.consumer.OffsetResetStrategy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
package no.nav.aap.kafka.streams.v2.test
package libs.kafka

import io.micrometer.core.instrument.simple.SimpleMeterRegistry
import no.nav.aap.kafka.streams.v2.Table
import no.nav.aap.kafka.streams.v2.Topic
import no.nav.aap.kafka.streams.v2.config.SchemaRegistryConfig
import no.nav.aap.kafka.streams.v2.config.SslConfig
import no.nav.aap.kafka.streams.v2.config.StreamsConfig
import no.nav.aap.kafka.streams.v2.serde.StringSerde
import no.nav.aap.kafka.streams.v2.topology
import libs.kafka.serde.StringSerde
import no.nav.aap.kafka.streams.v2.test.StreamsMock
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals

Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions kafka-2/build.gradle.kts → kafka-streams/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
dependencies {
implementation(project(":cache"))

implementation("org.apache.kafka:kafka-streams:3.7.0")

implementation("ch.qos.logback:logback-classic:1.5.3")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package no.nav.aap.kafka.streams.v2.extension
package libs.kafka

import no.nav.aap.kafka.streams.v2.KTable
import no.nav.aap.kafka.streams.v2.Table
import no.nav.aap.kafka.streams.v2.Topic
import no.nav.aap.kafka.streams.v2.processor.LogProduceTableProcessor
import no.nav.aap.kafka.streams.v2.processor.LogProduceTopicProcessor
import no.nav.aap.kafka.streams.v2.processor.Processor.Companion.addProcessor
import libs.kafka.processor.LogProduceTableProcessor
import libs.kafka.processor.LogProduceTopicProcessor
import libs.kafka.processor.Processor.Companion.addProcessor
import org.apache.kafka.common.utils.Bytes
import org.apache.kafka.streams.kstream.KStream
import org.apache.kafka.streams.kstream.Materialized
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package no.nav.aap.kafka.streams.v2
package libs.kafka

import no.nav.aap.kafka.streams.v2.extension.skipTombstone
import no.nav.aap.kafka.streams.v2.processor.state.StateInitProcessor
import no.nav.aap.kafka.streams.v2.processor.state.StateScheduleProcessor
import libs.kafka.processor.state.StateInitProcessor
import libs.kafka.processor.state.StateScheduleProcessor
import org.apache.kafka.streams.kstream.KTable

class KTable<T : Any>(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.aap.kafka.streams.v2.listener
package libs.kafka

import net.logstash.logback.argument.StructuredArguments
import org.apache.kafka.common.TopicPartition
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.aap.kafka.streams.v2
package libs.kafka

import org.apache.kafka.streams.state.ReadOnlyKeyValueStore
import org.apache.kafka.streams.state.ValueAndTimestamp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package no.nav.aap.kafka.streams.v2
package libs.kafka

import io.micrometer.core.instrument.MeterRegistry
import io.micrometer.core.instrument.binder.kafka.KafkaStreamsMetrics
import no.nav.aap.kafka.streams.v2.config.StreamsConfig
import no.nav.aap.kafka.streams.v2.consumer.ConsumerFactory
import no.nav.aap.kafka.streams.v2.exception.ProcessingExceptionHandler
import no.nav.aap.kafka.streams.v2.listener.RestoreListener
import no.nav.aap.kafka.streams.v2.producer.ProducerFactory
import no.nav.aap.kafka.streams.v2.visual.TopologyVisulizer
import libs.kafka.client.ConsumerFactory
import libs.kafka.client.ProducerFactory
import libs.kafka.visual.TopologyVisulizer
import org.apache.kafka.streams.KafkaStreams.State.*
import org.apache.kafka.streams.StoreQueryParameters
import org.apache.kafka.streams.state.QueryableStoreTypes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package no.nav.aap.kafka.streams.v2.config
package libs.kafka

import no.nav.aap.kafka.streams.v2.exception.EntryPointExceptionHandler
import no.nav.aap.kafka.streams.v2.exception.ExitPointExceptionHandler
import org.apache.kafka.clients.CommonClientConfigs
import org.apache.kafka.clients.producer.ProducerConfig
import org.apache.kafka.common.config.SslConfigs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.aap.kafka.streams.v2.exception
package libs.kafka

import org.apache.kafka.clients.consumer.ConsumerRecord
import org.apache.kafka.clients.producer.ProducerRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.aap.kafka.streams.v2.logger
package libs.kafka

import net.logstash.logback.argument.StructuredArgument
import org.slf4j.LoggerFactory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.aap.kafka.streams.v2
package libs.kafka

import org.apache.kafka.streams.KeyValue

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.aap.kafka.streams.v2
package libs.kafka

data class Table<T : Any>(
val sourceTopic: Topic<T>,
Expand Down
Loading

0 comments on commit f64232c

Please sign in to comment.