blob: 366d75f1d770c88750b60f28f9b91e823ce630fd [file] [log] [blame]
/********************************************************************************
* Copyright (c) 2015-2018 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
********************************************************************************/
plugins {
id "com.google.protobuf" version "0.9.1"
id 'antlr'
id 'java-library'
}
description = 'business object service'
dependencies {
api project(":api:odsadapter")
api project(':nucleus:connector')
api project(':nucleus:preferences')
api project(':nucleus:property')
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.1'
implementation 'io.vavr:vavr:0.9.1'
implementation 'org.glassfish.jersey.media:jersey-media-multipart:2.23.2'
implementation 'org.glassfish.jersey.media:jersey-media-sse:2.23.2'
implementation 'com.google.protobuf:protobuf-java:3.2.0'
implementation 'com.google.protobuf:protobuf-java-util:3.2.0'
implementation 'org.slf4j:slf4j-api:1.7.25'
testImplementation 'ch.qos.logback:logback-classic:1.2.3'
testImplementation 'org.assertj:assertj-core:3.6.2'
testImplementation 'io.rest-assured:rest-assured:3.0.5'
testImplementation 'org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-grizzly2:2.23.2'
testImplementation 'org.glassfish.jersey.media:jersey-media-json-jackson:2.23.2'
testImplementation project(":api:atfxadapter")
testImplementation "com.google.code.gson:gson:2.7"
testRuntimeOnly 'org.glassfish:javax.el:3.0.1-b12'
antlr "org.antlr:antlr4:4.5.3"
}
generateGrammarSource { arguments += ["-visitor"] }
test {
exclude 'org/eclipse/mdm/businessobjects/boundary/integrationtest/*'
}
compileJava.dependsOn(generateGrammarSource)
jar {
metaInf { from '../../NOTICE.txt' }
metaInf { from '../../LICENSE.txt' }
}
tasks.named("sourcesJar").configure {
dependsOn("generateGrammarSource")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.0.0'
}
}
sourceSets {
main {
java {
srcDirs 'build/generated/source/proto/main/java'
}
}
}