aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2021-10-19 11:55:44 +0200
committerGitHub <noreply@github.com>2021-10-19 11:55:44 +0200
commitd5ff7f6927a15f7d0ea2835e7447b968d5513d72 (patch)
treed2a3dcdf4d675754e41d7a78e407201ccff23371
parent007ed3495ad085b79740e94690db15fcce2510a6 (diff)
Revert "Upgrade from velocity:1.7 to velocity-engine-core:2.3"
-rw-r--r--config-model/pom.xml2
-rw-r--r--metrics-proxy/pom.xml2
-rw-r--r--node-admin/pom.xml2
-rw-r--r--node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/file/Template.java4
-rw-r--r--parent/pom.xml4
5 files changed, 6 insertions, 8 deletions
diff --git a/config-model/pom.xml b/config-model/pom.xml
index 6dfc2e7740f..3442a81159e 100644
--- a/config-model/pom.xml
+++ b/config-model/pom.xml
@@ -113,7 +113,7 @@
</exclusion>
<exclusion>
<groupId>org.apache.velocity</groupId>
- <artifactId>velocity-engine-core</artifactId>
+ <artifactId>velocity</artifactId>
</exclusion>
</exclusions>
</dependency>
diff --git a/metrics-proxy/pom.xml b/metrics-proxy/pom.xml
index 077041d6044..83cab8de366 100644
--- a/metrics-proxy/pom.xml
+++ b/metrics-proxy/pom.xml
@@ -108,7 +108,7 @@
</dependency>
<dependency>
<groupId>org.apache.velocity</groupId>
- <artifactId>velocity-engine-core</artifactId>
+ <artifactId>velocity</artifactId>
</dependency>
<!-- test scope -->
diff --git a/node-admin/pom.xml b/node-admin/pom.xml
index 63d854d4ffe..29bc8406b15 100644
--- a/node-admin/pom.xml
+++ b/node-admin/pom.xml
@@ -73,7 +73,7 @@
</dependency>
<dependency>
<groupId>org.apache.velocity</groupId>
- <artifactId>velocity-engine-core</artifactId>
+ <artifactId>velocity</artifactId>
<scope>compile</scope>
</dependency>
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/file/Template.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/file/Template.java
index f0ba6272679..26d97d06724 100644
--- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/file/Template.java
+++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/file/Template.java
@@ -3,8 +3,6 @@ package com.yahoo.vespa.hosted.node.admin.task.util.file;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.Velocity;
-import org.apache.velocity.runtime.RuntimeConstants;
-import org.slf4j.helpers.NOPLogger;
import java.io.StringWriter;
import java.nio.file.Files;
@@ -21,7 +19,7 @@ import static com.yahoo.yolean.Exceptions.uncheck;
public class Template {
static {
- Velocity.addProperty(RuntimeConstants.RUNTIME_LOG_INSTANCE, NOPLogger.NOP_LOGGER);
+ Velocity.addProperty(Velocity.RUNTIME_LOG_LOGSYSTEM_CLASS, "org.apache.velocity.runtime.log.NullLogSystem");
Velocity.init();
}
diff --git a/parent/pom.xml b/parent/pom.xml
index 01c3e335693..72729b284c2 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -699,8 +699,8 @@
</dependency>
<dependency>
<groupId>org.apache.velocity</groupId>
- <artifactId>velocity-engine-core</artifactId>
- <version>2.3</version>
+ <artifactId>velocity</artifactId>
+ <version>1.7</version>
</dependency>
<dependency>
<groupId>org.assertj</groupId>