From 15336decdcac32dc3efa003b5507bb7e0db5c428 Mon Sep 17 00:00:00 2001 From: Nikola Grcevski Date: Thu, 16 Jun 2022 19:20:50 -0400 Subject: [PATCH 1/2] Modularize ILM/SLM --- .../plugin/ilm/src/main/java/module-info.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 x-pack/plugin/ilm/src/main/java/module-info.java diff --git a/x-pack/plugin/ilm/src/main/java/module-info.java b/x-pack/plugin/ilm/src/main/java/module-info.java new file mode 100644 index 0000000000000..2f546ab8e1a2b --- /dev/null +++ b/x-pack/plugin/ilm/src/main/java/module-info.java @@ -0,0 +1,19 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +module org.elasticsearch.ilm { + requires org.apache.lucene.core; + requires org.elasticsearch.server; + requires org.elasticsearch.base; + requires org.elasticsearch.xcore; + requires org.elasticsearch.xcontent; + requires org.apache.logging.log4j; + + exports org.elasticsearch.xpack.ilm.action to org.elasticsearch.server; + exports org.elasticsearch.xpack.ilm to org.elasticsearch.server; + exports org.elasticsearch.xpack.slm.action to org.elasticsearch.server; + exports org.elasticsearch.xpack.slm to org.elasticsearch.server; +} From d726fac8765aeb5bc7c607ee0ad4824aa379b1d5 Mon Sep 17 00:00:00 2001 From: Nikola Grcevski Date: Fri, 17 Jun 2022 11:01:51 -0400 Subject: [PATCH 2/2] Sort modules --- x-pack/plugin/ilm/src/main/java/module-info.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugin/ilm/src/main/java/module-info.java b/x-pack/plugin/ilm/src/main/java/module-info.java index 2f546ab8e1a2b..dfcb404fb4e56 100644 --- a/x-pack/plugin/ilm/src/main/java/module-info.java +++ b/x-pack/plugin/ilm/src/main/java/module-info.java @@ -5,11 +5,11 @@ * 2.0. */ module org.elasticsearch.ilm { - requires org.apache.lucene.core; - requires org.elasticsearch.server; requires org.elasticsearch.base; - requires org.elasticsearch.xcore; + requires org.elasticsearch.server; requires org.elasticsearch.xcontent; + requires org.elasticsearch.xcore; + requires org.apache.lucene.core; requires org.apache.logging.log4j; exports org.elasticsearch.xpack.ilm.action to org.elasticsearch.server;