| <%# |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| * |
| * |
| -%> |
| |
| if( project.version == 'unspecified' ) |
| { |
| project.version = System.properties.version ?: '0' |
| } |
| |
| rootProject.ext { |
| polygeneVersion = "<%= polygene.version %>" |
| logbackVersion = "1.2.3" |
| johnzonVersion = "1.1.0" |
| <% if( polygene.applicationtype === "Rest API" ) { |
| %> jettyVersion = "9.2.17.v20160517" |
| restletVersion = "2.3.4" |
| <% |
| } |
| if( polygene.entitystore == 'DerbySQL' ) { |
| %> derbyVersion = "10.13.1.1" |
| <% |
| } |
| if( polygene.entitystore == 'H2SQL' ) { |
| %> h2Version = "1.4.194" |
| <% |
| } |
| if( polygene.entitystore == 'MySQL' ) { |
| %> mysqlVersion = "6.0.6" |
| <% |
| } |
| if( polygene.entitystore == 'PostgreSQL' || polygene.indexing == 'SQL' ) { |
| %> postgresVersion = "42.0.0" |
| <% |
| } |
| if( polygene.entitystore == 'LevelDB' ) { |
| %> levelDbVersion = "1.8" |
| <% |
| } |
| if( polygene.entitystore == 'SQLite' ) { |
| %> sqliteVersion = "3.16.1" |
| <% |
| } |
| %>} |
| |
| allprojects() { |
| apply plugin: 'java-library' |
| apply plugin: 'maven' |
| |
| defaultTasks 'assemble' |
| |
| repositories { |
| mavenLocal() |
| mavenCentral() |
| maven { name 'restlet-repo'; url 'http://maven.restlet.org/' } |
| <% if( polygene.entitystore == 'Jdbm' ) { |
| -%> maven { name 'clojure-repo'; url 'http://clojars.org/repo/' }<% } -%> |
| } |
| |
| dependencies { |
| implementation "org.apache.polygene.core:org.apache.polygene.core.api:$polygeneVersion" |
| testImplementation "org.apache.polygene.core:org.apache.polygene.core.testsupport:$polygeneVersion" |
| } |
| } |