aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-03-02 10:52:38 +0300
committerGravatar Vitaly Takmazov2020-03-02 10:52:38 +0300
commit4b99b789121453cfc131718b72eafbf0e6d8a7fe (patch)
treefc3e9077938b9bb686a195d49d6d94d7cdb42970
parentf1011157cf0830cd6b5375fb3a84192ffe0fb7af (diff)
Revert "Using micronaut annotation processors to AOT compilation"
This reverts commit d1589c033ea59aaa991ea4eb48370b3f4dfb72dd.
-rw-r--r--build.gradle10
-rw-r--r--src/main/java/com/juick/server/configuration/BaseWebConfiguration.java2
2 files changed, 2 insertions, 10 deletions
diff --git a/build.gradle b/build.gradle
index bd3fc4fb..dd9b1a99 100644
--- a/build.gradle
+++ b/build.gradle
@@ -115,16 +115,6 @@ asciidoctor {
}
dependencies {
- // for Java applications
- annotationProcessor "io.micronaut:micronaut-inject-java:1.3.2"
- annotationProcessor "io.micronaut:micronaut-validation:1.3.2"
- annotationProcessor "io.micronaut.spring:micronaut-spring-annotation:1.0.2"
- annotationProcessor "io.micronaut.spring:micronaut-spring-web-annotation:1.0.2"
- annotationProcessor "io.micronaut.spring:micronaut-spring-boot:1.0.2"
-
- // additional Spring Boot dependencies for Micronaut
- runtime("io.micronaut.spring:micronaut-spring-boot:1.0.2")
- compile "io.micronaut:micronaut-inject:1.3.2"
compile ('org.springframework.boot:spring-boot-starter-cache')
compile ('org.springframework.boot:spring-boot-starter-security')
compile ('org.springframework.boot:spring-boot-starter-jdbc')
diff --git a/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java b/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java
index 887f15c9..a05b4fc1 100644
--- a/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java
+++ b/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java
@@ -60,6 +60,8 @@ public class BaseWebConfiguration implements WebMvcConfigurer, SchedulingConfigu
public void configureTasks(@Nonnull ScheduledTaskRegistrar taskRegistrar) {
taskRegistrar.setScheduler(taskExecutor());
}
+
+ @Bean(destroyMethod="shutdown")
public Executor taskExecutor() {
return Executors.newScheduledThreadPool(100);
}