| /******************************************************************************** |
| * 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 |
| * |
| ********************************************************************************/ |
| buildscript { |
| repositories { |
| mavenCentral() |
| } |
| dependencies { |
| // needed for generateSchema |
| classpath 'org.eclipse.persistence:eclipselink:2.6.4' |
| } |
| } |
| |
| plugins { |
| id 'java-library' |
| id 'maven-publish' |
| id 'eclipse' |
| id "io.github.divinespear.jpa-schema-generate" version "0.4.0" |
| } |
| |
| description = 'MDM preference service' |
| |
| java { |
| sourceCompatibility = 1.8 |
| targetCompatibility = 1.8 |
| } |
| |
| dependencies { |
| runtimeOnly 'org.glassfish.jersey.containers:jersey-container-servlet:2.23.2' |
| implementation 'com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.11.2' |
| implementation 'com.google.guava:guava:25.0-jre' |
| implementation 'commons-codec:commons-codec:1.15' |
| compileOnly 'javax:javaee-api:7.0' |
| |
| implementation project(':nucleus:freetextindexer') |
| implementation project(':nucleus:property') |
| |
| compileOnly 'org.eclipse.persistence:eclipselink:2.6.4' |
| testImplementation 'org.eclipse.persistence:eclipselink:2.6.4' |
| testImplementation 'junit:junit:4.12' |
| testImplementation 'org.assertj:assertj-core:3.6.1' |
| testRuntimeOnly 'org.apache.derby:derby:10.13.1.1' |
| } |
| |
| generateSchema { |
| vendor = "eclipselink" |
| packageToScan = [ |
| "org.eclipse.mdm" |
| ] |
| scriptAction = "drop-and-create" |
| targets { |
| postgres { |
| databaseProductName = "PostgreSQL" |
| databaseMajorVersion = 9 |
| databaseMinorVersion = 0 |
| } |
| derby { databaseProductName = "Apache Derby" } |
| } |
| } |
| |
| jar { |
| metaInf { from '../../NOTICE.txt' } |
| metaInf { from '../../LICENSE.txt' } |
| } |