/* * Copyright (c) 2020 AtLarge Research * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ group = "org.opendc" description = "Common functionality used across OpenDC modules" // Build configuration plugins { `kotlin-library-conventions` kotlin("plugin.serialization") version "1.9.22" } repositories { maven(url = "https://packages.confluent.io/maven/") } val serializationVersion = "1.6.0" dependencies { //@Mateusz: for the postgresql database implementation("org.postgresql:postgresql:42.7.10") api(libs.kotlinx.coroutines) implementation(libs.kotlin.logging) implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$serializationVersion") api(libs.log4j.core) api(libs.log4j.slf4j) api(libs.kotlin.logging) testImplementation(projects.opendcSimulator.opendcSimulatorCore) // Source: https://mvnrepository.com/artifact/org.apache.kafka/kafka-clients implementation("org.apache.kafka:kafka-clients:4.1.1") implementation(libs.jackson.core) // Source: https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java // @Mateusz crucial this is an _api_ and not _implementation_ api("com.google.protobuf:protobuf-java:4.33.5") // Source: https://mvnrepository.com/artifact/io.confluent/kafka-protobuf-serializer implementation("io.confluent:kafka-protobuf-serializer:8.1.1") }