/* * import-process-bridge * Copyright (C) 2021 Memoriav * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ plugins { id 'application' id 'distribution' id 'org.jetbrains.kotlin.jvm' version '1.3.71' id 'com.palantir.git-version' version '0.11.0' id 'org.jlleitschuh.gradle.ktlint' version '9.2.1' } group 'org.memobase' version = gitVersion() mainClassName = 'org.memobase.App' jar { manifest { attributes 'Main-Class': 'org.memobase.App' } } sourceCompatibility = 1.8 targetCompatibility = 1.8 repositories { jcenter() maven { url "https://dl.bintray.com/memoriav/memobase" } } ext { kafkaV = '2.3.1' log4jV = '2.11.2' } dependencies { implementation 'org.memobase:memobase-service-utilities:2.0.3' // Logging Framework implementation "org.apache.logging.log4j:log4j-api:${log4jV}" implementation "org.apache.logging.log4j:log4j-core:${log4jV}" implementation "org.apache.logging.log4j:log4j-slf4j-impl:${log4jV}" // Kafka Imports implementation "org.apache.kafka:kafka-streams:${kafkaV}" // RDF Library implementation 'org.apache.jena:apache-jena:3.14.0' // JSON Library implementation 'com.fasterxml.jackson.core:jackson-databind:2.11.+' implementation 'com.fasterxml.jackson.core:jackson-core:2.11.+' implementation 'com.fasterxml.jackson.core:jackson-annotations:2.11.+' implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.11.+" implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' implementation "org.jetbrains.kotlin:kotlin-script-runtime:1.3.71" implementation "org.jetbrains.kotlin:kotlin-reflect:1.3.71" testCompile("org.junit.jupiter:junit-jupiter:5.4.2") testImplementation 'org.assertj:assertj-core:3.15.0' // https://mvnrepository.com/artifact/org.apache.kafka/kafka-streams-test-utils testCompile group: 'org.apache.kafka', name: 'kafka-streams-test-utils', version: kafkaV } compileKotlin { kotlinOptions.jvmTarget = "1.8" } compileTestKotlin { kotlinOptions.jvmTarget = "1.8" } test { useJUnitPlatform() testLogging { events "passed", "skipped", "failed" } } sourceSets { main.kotlin.srcDirs += 'src/main/kotlin' main.resources.srcDirs = [ "src/main/resources" ] main.resources.includes = [ "**/*.yml", "**/*.xml"] test.kotlin.srcDirs += 'src/test/kotlin' test.resources.srcDirs = [ "src/test/resources" ] test.resources.includes = [ "**/*.yml", "**/*.xml"] } plugins.withType(DistributionPlugin) { distTar { archiveFileName = 'app.tar' } }