Skip to content

Commit

Permalink
Fix odd class name, remove netty hack
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsloan committed Oct 25, 2023
1 parent 42fe2c7 commit ef593f8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package io.lenses.streamreactor.connect.aws.s3.sink
import com.datamountaineer.streamreactor.common.utils.JarManifest
import com.typesafe.scalalogging.LazyLogging
import io.lenses.streamreactor.connect.aws.s3.config.S3ConfigSettings
import io.lenses.streamreactor.connect.aws.s3.sink.config.SinkConfigDef$
import io.lenses.streamreactor.connect.aws.s3.sink.config.SinkConfigDef
import io.lenses.streamreactor.connect.cloud.common.config.TaskDistributor
import org.apache.kafka.common.config.ConfigDef
import org.apache.kafka.connect.connector.Task
Expand All @@ -35,7 +35,7 @@ class S3SinkConnector extends SinkConnector with LazyLogging {

override def taskClass(): Class[_ <: Task] = classOf[S3SinkTask]

override def config(): ConfigDef = SinkConfigDef$.config
override def config(): ConfigDef = SinkConfigDef.config

override def start(props: util.Map[String, String]): Unit = {
logger.info(s"Creating S3 sink connector")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import io.lenses.streamreactor.connect.cloud.common.sink.config.FlushSettings
import io.lenses.streamreactor.connect.cloud.common.sink.config.padding.PaddingStrategyConfigKeys
import io.lenses.streamreactor.connect.cloud.common.sink.config.padding.PaddingStrategySettings

object SinkConfigDef$
object SinkConfigDef
extends CommonConfigDef
with FlushConfigKeys
with LocalStagingAreaConfigKeys
Expand Down Expand Up @@ -72,7 +72,7 @@ object SinkConfigDef$

}

class SinkConfigDef$() extends ConfigDef with LazyLogging {
class SinkConfigDef() extends ConfigDef with LazyLogging {

private val processorChain: List[ConfigDefProcessor] =
List(new LowerCaseKeyConfigDefProcessor(CONNECTOR_PREFIX), new DeprecationConfigDefProcessor)
Expand Down Expand Up @@ -108,7 +108,7 @@ class SinkConfigDef$() extends ConfigDef with LazyLogging {
}

case class SinkConfigDefBuilder(props: util.Map[String, String])
extends BaseConfig(S3ConfigSettings.CONNECTOR_PREFIX, SinkConfigDef$.config, props)
extends BaseConfig(S3ConfigSettings.CONNECTOR_PREFIX, SinkConfigDef.config, props)
with KcqlSettings
with ErrorPolicySettings
with NumberRetriesSettings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package io.lenses.streamreactor.connect.aws.s3.config

import com.typesafe.scalalogging.LazyLogging
import io.lenses.streamreactor.connect.aws.s3.sink.config.SinkConfigDef$
import io.lenses.streamreactor.connect.aws.s3.sink.config.SinkConfigDef
import io.lenses.streamreactor.connect.aws.s3.source.config.S3SourceConfigDef
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
Expand All @@ -33,7 +33,7 @@ class S3ConfigSettingsTest extends AnyFlatSpec with Matchers with LazyLogging {
"S3ConfigSettings" should "ensure all keys are lower case" in {

val configKeys =
SinkConfigDef$.config.configKeys().keySet().asScala ++ S3SourceConfigDef.config.configKeys().keySet().asScala
SinkConfigDef.config.configKeys().keySet().asScala ++ S3SourceConfigDef.config.configKeys().keySet().asScala

configKeys.size shouldBe 47
configKeys.foreach {
Expand Down
2 changes: 1 addition & 1 deletion project/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ object Settings extends Dependencies {
hadoopCommon,
hadoopMapReduceClientCore,
woodstoxCore,
) /*++ nettyOverrides*/ ++ avroOverrides,
) ++ nettyOverrides ++ avroOverrides,
),
)
}
Expand Down

0 comments on commit ef593f8

Please sign in to comment.