| /******************************************************************************** |
| * 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 |
| * |
| ********************************************************************************/ |
| |
| |
| description = 'MDM Connector' |
| |
| configurations { |
| jaxb |
| } |
| |
| dependencies { |
| jaxb ( |
| 'com.sun.xml.bind:jaxb-xjc:2.3.1', |
| 'com.sun.xml.bind:jaxb-impl:2.3.1', |
| 'org.glassfish.jaxb:jaxb-runtime:2.3.3' |
| ) |
| |
| implementation project(":api:base"); |
| implementation project(':nucleus:property') |
| implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.2' |
| implementation group: 'com.google.guava', name: 'guava', version: "25.0-jre" |
| |
| implementation group: 'org.apache.commons', name: 'commons-text', version: '1.10.0' |
| implementation group: 'org.glassfish.jersey.media', name: 'jersey-media-json-jackson', version: '2.23.2' |
| |
| compileOnly 'javax:javaee-api:7.0' |
| } |
| |
| task jaxb { |
| System.setProperty('javax.xml.accessExternalSchema', 'all') |
| def jaxbTargetDir = file("src/generated-sources") |
| doLast { |
| jaxbTargetDir.mkdirs() |
| ant.taskdef( |
| name: 'xjc', |
| classname: 'com.sun.tools.xjc.XJCTask', |
| classpath: configurations.jaxb.asPath |
| ) |
| ant.jaxbTargetDir = jaxbTargetDir |
| ant.xjc( |
| destdir: '${jaxbTargetDir}', |
| package: 'org.eclipse.mdm.connector.rolesyncconfig', |
| schema: 'src/main/resources/roleSyncConfig.xsd' |
| ) |
| } |
| } |
| |
| sourceSets { |
| main.java.srcDirs "src/generated-sources" |
| } |
| |
| compileJava.dependsOn jaxb |
| |
| jar { |
| metaInf { from '../../NOTICE.txt' } |
| metaInf { from '../../LICENSE.txt' } |
| } |