From 6f58b30fd84f6ae35ff641fd2c45f95a049fd2f9 Mon Sep 17 00:00:00 2001 From: "Michael Vorburger.ch" Date: Tue, 2 Jul 2019 09:19:57 +0200 Subject: [PATCH] gradle.properties with -Xmx4g and disabling daemon because the (new, upgraded) Tomcat Gradle plugin needs more memory (and this seems to make the build a bit faster, may be less is fine), and it does not work with the Gradle daemon; this fixes: > Task :tomcatRunWar Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"] Failed to initialize connector [Connector[HTTP/1.1-8080]] Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8009"] Failed to initialize connector [Connector[AJP/1.3-8009]] Failed to initialize end point associated with ProtocolHandler ["http-bio-8443"] Failed to initialize connector [Connector[HTTP/1.1-8443]] which appears on the 2nd (only!) run of `./gradlew tomcatRunWAR` (because the Tomcat embedded in the previous daemon-ized Gradle did not stop). --- gradle.properties | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 gradle.properties diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 000000000..b65231028 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,24 @@ +# +# 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. +# + +# Increased memory and disabled daemon are required by gradle-tomcat-plugin +# The daemon is more pain than gain, because the Tomcat in the Gradle process does not shut down cleanly. +# TODO remove this after https://issues.apache.org/jira/browse/FINERACT-764 +org.gradle.jvmargs=-Xmx4g +org.gradle.daemon=false