This is an automated email from the ASF dual-hosted git repository. sergeykamov pushed a commit to branch NLPCRAFT-450 in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
commit 7342431b11679022170074b49bd6da0aaa06ce2e Author: Sergey Kamov <[email protected]> AuthorDate: Mon Sep 27 16:04:50 2021 +0300 WIP. --- nlpcraft-examples/lightswitch/pom.xml | 22 +++++++++++++++++++++ .../assets/nlpcraft-example-minecraft-mod-1.0.jar | Bin 17857 -> 17672 bytes .../minecraft/NCMinecraftExampleMod.java | 2 +- .../minecraft/utils/NCMinecraftFilesDump.java | 2 +- nlpcraft-examples/minecraft/pom.xml | 22 +++++++++++++++++++++ .../org/apache/nlpcraft/model/NCModelView.java | 2 +- 6 files changed, 47 insertions(+), 3 deletions(-) diff --git a/nlpcraft-examples/lightswitch/pom.xml b/nlpcraft-examples/lightswitch/pom.xml index 0ebbf8a..a26d56b 100644 --- a/nlpcraft-examples/lightswitch/pom.xml +++ b/nlpcraft-examples/lightswitch/pom.xml @@ -34,6 +34,7 @@ <properties> <nlpcraft.server.module>nlpcraft</nlpcraft.server.module> <nlpcraft.all.deps.jar>apache-${nlpcraft.server.module}-incubating-${project.version}-all-deps.jar</nlpcraft.all.deps.jar> + <nlpcraft.lightswitch.deps.jar>apache-nlpcraft-incubating-${project.version}-lightswitch-deps.jar</nlpcraft.lightswitch.deps.jar> <kotlin.ver>1.5.0</kotlin.ver> <groovy.ver>3.0.7</groovy.ver> @@ -206,6 +207,27 @@ </execution> </executions> </plugin> + + <!--Uber jar created here because kotlin and groovy dependencies. --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>${maven.shade.plugin.ver}</version> + <executions> + <execution> + <id>jar.all.deps.lightswitch</id> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <outputFile> + target/${nlpcraft.lightswitch.deps.jar} + </outputFile> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project> \ No newline at end of file diff --git a/nlpcraft-examples/minecraft-mod/assets/nlpcraft-example-minecraft-mod-1.0.jar b/nlpcraft-examples/minecraft-mod/assets/nlpcraft-example-minecraft-mod-1.0.jar index a72d54c..9bfd7a4 100644 Binary files a/nlpcraft-examples/minecraft-mod/assets/nlpcraft-example-minecraft-mod-1.0.jar and b/nlpcraft-examples/minecraft-mod/assets/nlpcraft-example-minecraft-mod-1.0.jar differ diff --git a/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nlpcraft/example/minecraft/NCMinecraftExampleMod.java b/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nlpcraft/examples/minecraft/NCMinecraftExampleMod.java similarity index 99% rename from nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nlpcraft/example/minecraft/NCMinecraftExampleMod.java rename to nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nlpcraft/examples/minecraft/NCMinecraftExampleMod.java index c493959..d8f3915 100644 --- a/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nlpcraft/example/minecraft/NCMinecraftExampleMod.java +++ b/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nlpcraft/examples/minecraft/NCMinecraftExampleMod.java @@ -16,7 +16,7 @@ * */ -package org.apache.nlpcraft.example.minecraft; +package org.apache.nlpcraft.examples.minecraft; import com.google.gson.Gson; import net.minecraft.server.MinecraftServer; diff --git a/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nlpcraft/example/minecraft/utils/NCMinecraftFilesDump.java b/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nlpcraft/examples/minecraft/utils/NCMinecraftFilesDump.java similarity index 99% rename from nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nlpcraft/example/minecraft/utils/NCMinecraftFilesDump.java rename to nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nlpcraft/examples/minecraft/utils/NCMinecraftFilesDump.java index 61b58bd..1b88552 100644 --- a/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nlpcraft/example/minecraft/utils/NCMinecraftFilesDump.java +++ b/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nlpcraft/examples/minecraft/utils/NCMinecraftFilesDump.java @@ -16,7 +16,7 @@ * */ -package org.apache.nlpcraft.example.minecraft.utils; +package org.apache.nlpcraft.examples.minecraft.utils; import com.google.gson.Gson; import com.google.gson.GsonBuilder; diff --git a/nlpcraft-examples/minecraft/pom.xml b/nlpcraft-examples/minecraft/pom.xml index 69c3d40..f0ffcd2 100644 --- a/nlpcraft-examples/minecraft/pom.xml +++ b/nlpcraft-examples/minecraft/pom.xml @@ -34,6 +34,7 @@ <properties> <nlpcraft.server.module>nlpcraft</nlpcraft.server.module> <nlpcraft.all.deps.jar>apache-${nlpcraft.server.module}-incubating-${project.version}-all-deps.jar</nlpcraft.all.deps.jar> + <nlpcraft.minecraft.deps.jar>apache-nlpcraft-incubating-${project.version}-minecraft-deps.jar</nlpcraft.minecraft.deps.jar> <kotlin.ver>1.5.0</kotlin.ver> </properties> @@ -190,6 +191,27 @@ </execution> </executions> </plugin> + + <!--Uber jar created here because kotlin dependencies. --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>${maven.shade.plugin.ver}</version> + <executions> + <execution> + <id>jar.all.deps.minecraft</id> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <outputFile> + target/${nlpcraft.minecraft.deps.jar} + </outputFile> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project> \ No newline at end of file diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCModelView.java b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCModelView.java index 2d06412..157a3e2 100644 --- a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCModelView.java +++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCModelView.java @@ -1241,7 +1241,7 @@ public interface NCModelView extends NCMetadata { /** * // TODO: add javadoc - * @return + * @return TBD */ default boolean isStopWordsAllowed() { return DFLT_IS_STOPWORDS_ALLOWED;
