From 7aadceb924c1b22351df5e0535a03edceb5047cf Mon Sep 17 00:00:00 2001 From: Anatoliy Sablin Date: Mon, 6 Nov 2017 17:18:37 +0300 Subject: Fixed configurations. --- juick-commands/build.gradle | 2 +- .../src/main/java/com/juick/command/CommandsConfiguration.java | 3 +++ juick-commands/src/main/java/com/juick/command/Processor.java | 2 -- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'juick-commands') diff --git a/juick-commands/build.gradle b/juick-commands/build.gradle index c6dfff42..ca18aa52 100644 --- a/juick-commands/build.gradle +++ b/juick-commands/build.gradle @@ -7,7 +7,7 @@ repositories { } dependencies { - compile project(':juick-server-core') + compile project(':juick-server-jdbc') compile "org.springframework:spring-context-support:${rootProject.springFrameworkVersion}" compile "org.projectlombok:lombok:1.16.14" diff --git a/juick-commands/src/main/java/com/juick/command/CommandsConfiguration.java b/juick-commands/src/main/java/com/juick/command/CommandsConfiguration.java index b6b9ea0d..a8f66653 100644 --- a/juick-commands/src/main/java/com/juick/command/CommandsConfiguration.java +++ b/juick-commands/src/main/java/com/juick/command/CommandsConfiguration.java @@ -1,8 +1,10 @@ package com.juick.command; +import com.juick.configuration.DataConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Import; import java.util.Set; @@ -10,6 +12,7 @@ import java.util.Set; * @author ma1uta */ @Configuration +@Import(DataConfiguration.class) @ComponentScan(basePackages = {"com.juick.command"}) public class CommandsConfiguration { diff --git a/juick-commands/src/main/java/com/juick/command/Processor.java b/juick-commands/src/main/java/com/juick/command/Processor.java index bf46a758..f02e7c4b 100644 --- a/juick-commands/src/main/java/com/juick/command/Processor.java +++ b/juick-commands/src/main/java/com/juick/command/Processor.java @@ -6,7 +6,6 @@ import lombok.Setter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; import java.util.Set; import java.util.regex.Pattern; @@ -14,7 +13,6 @@ import java.util.regex.Pattern; /** * @author ma1uta */ -@Component @Getter public class Processor { -- cgit v1.2.3