blob: 69c57a59fe56278fae781fa6b2c274fa9cbe7f5f [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
*
********************************************************************************/
description = 'MDM preference service'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'io.github.divinespear.jpa-schema-generate'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
runtime 'org.glassfish.jersey.containers:jersey-container-servlet:2.23.2'
compile 'com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.9.2'
compileOnly 'javax:javaee-api:7.0'
compile project(':org.eclipse.mdm.connector')
compile project(':org.eclipse.mdm.property')
testCompile 'org.eclipse.persistence:eclipselink:2.6.4'
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:3.6.1'
testRuntime 'org.apache.derby:derby:10.13.1.1'
}
generateSchema {
vendor = "eclipselink"
packageToScan = [
"org.eclipse.mdm.preferences"
]
scriptAction = "drop-and-create"
targets {
postgres {
databaseProductName = "PostgreSQL"
databaseMajorVersion = 9
databaseMinorVersion = 0
}
derby { databaseProductName = "Apache Derby" }
}
}
buildscript {
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies { classpath 'gradle.plugin.io.github.divinespear:jpa-schema-gradle-plugin:0.3.2' }
}
jar {
metaInf { from '../NOTICE.txt' }
metaInf { from '../LICENSE.txt' }
}