Skip to content

Commit

Permalink
[common] optimize common aviator configuration (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsun28 committed Oct 6, 2022
1 parent 389b4a8 commit b3ab203
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 14 deletions.
6 changes: 0 additions & 6 deletions alerter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@
<artifactId>springdoc-openapi-ui</artifactId>
<scope>provided</scope>
</dependency>
<!-- 表达式计算 -->
<dependency>
<groupId>com.googlecode.aviator</groupId>
<artifactId>aviator</artifactId>
<version>5.2.7</version>
</dependency>
<!-- feign -->
<dependency>
<groupId>org.springframework.cloud</groupId>
Expand Down
1 change: 0 additions & 1 deletion alerter/src/main/resources/META-INF/spring.factories
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ com.usthe.alert.service.impl.AlertServiceImpl,\
com.usthe.alert.controller.AlertDefineController,\
com.usthe.alert.AlerterWorkerPool,\
com.usthe.alert.AlerterProperties,\
com.usthe.alert.AlerterConfiguration,\
com.usthe.alert.calculate.CalculateAlarm,\
com.usthe.alert.controller.AlertsController,\
com.usthe.alert.controller.AlertDefinesController
5 changes: 0 additions & 5 deletions collector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@
<artifactId>gson</artifactId>
<version>2.8.8</version>
</dependency>
<dependency>
<groupId>com.googlecode.aviator</groupId>
<artifactId>aviator</artifactId>
<version>5.2.7</version>
</dependency>
<!--collect-->
<!-- mysql -->
<dependency>
Expand Down
6 changes: 6 additions & 0 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@
<version>0.5.11</version>
<scope>provided</scope>
</dependency>
<!-- 表达式计算 -->
<dependency>
<groupId>com.googlecode.aviator</groupId>
<artifactId>aviator</artifactId>
<version>5.2.7</version>
</dependency>
<!-- 工具依赖 -->
<dependency>
<groupId>com.google.guava</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package com.usthe.alert;
package com.usthe.common.config;

import com.googlecode.aviator.AviatorEvaluator;
import com.googlecode.aviator.lexer.token.OperatorType;
Expand All @@ -33,7 +33,7 @@
*/
@Configuration
@Slf4j
public class AlerterConfiguration {
public class AviatorConfiguration {

private static final int AVIATOR_LRU_CACHE_SIZE = 1024;

Expand Down
1 change: 1 addition & 0 deletions common/src/main/resources/META-INF/spring.factories
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.usthe.common.config.CommonProperties,\
com.usthe.common.config.CommonConfig,\
com.usthe.common.config.AviatorConfiguration,\
com.usthe.common.queue.impl.InMemoryCommonDataQueue,\
com.usthe.common.support.SpringContextHolder

0 comments on commit b3ab203

Please sign in to comment.