Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
commons
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DevOps
commons
Commits
cb626872
Commit
cb626872
authored
Mar 10, 2022
by
孙 楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级依赖版本
parent
af14582f
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
198 additions
and
327 deletions
+198
-327
pom.xml
brave-spring-boot-starter/pom.xml
+2
-47
pom.xml
commons-core/pom.xml
+0
-27
pom.xml
commons-spring/pom.xml
+32
-60
pom.xml
elastic-job-lite-spring-boot-starter/pom.xml
+0
-36
ElasticSimpleJob.java
...up/tech/elastic/job/lite/annotation/ElasticSimpleJob.java
+0
-35
ElasticJobAutoConfiguration.java
...c/job/lite/autoconfigure/ElasticJobAutoConfiguration.java
+0
-73
spring.factories
...boot-starter/src/main/resources/META-INF/spring.factories
+0
-2
pom.xml
enoch-agent-spring-boot-starter/pom.xml
+1
-8
pom.xml
idgenerator-spring-boot-starter/pom.xml
+1
-4
pom.xml
pom.xml
+161
-32
pom.xml
shutdown-spring-boot-starter/pom.xml
+1
-3
No files found.
brave-spring-boot-starter/pom.xml
View file @
cb626872
...
...
@@ -2,39 +2,15 @@
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<artifactId>
commons-parent
</artifactId>
<groupId>
cn.quantgroup
</groupId>
<version>
0.3.2
</version>
<version>
${revision}
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
brave-spring-boot-starter
</artifactId>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<brave.version>
4.19.1
</brave.version>
<zipkin-reporter2.version>
2.5.0
</zipkin-reporter2.version>
<zipkin.version>
2.6.1
</zipkin.version>
<okhttp.version>
3.10.0
</okhttp.version>
<elastic.job.version>
2.1.5
</elastic.job.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>
io.zipkin.reporter2
</groupId>
<artifactId>
zipkin-reporter
</artifactId>
<version>
${zipkin-reporter2.version}
</version>
</dependency>
<dependency>
<groupId>
io.zipkin.zipkin2
</groupId>
<artifactId>
zipkin
</artifactId>
<version>
${zipkin.version}
</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
@@ -46,12 +22,6 @@
<artifactId>
spring-boot-starter-aop
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
com.dangdang
</groupId>
<artifactId>
elastic-job-lite-spring-shaded
</artifactId>
<version>
${elastic.job.version}
</version>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpclient
</artifactId>
...
...
@@ -60,68 +30,53 @@
<dependency>
<groupId>
com.squareup.okhttp3
</groupId>
<artifactId>
okhttp
</artifactId>
<version>
${okhttp.version}
</version>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.amqp
</groupId>
<artifactId>
spring-rabbit
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
io.zipkin.brave
</groupId>
<artifactId>
brave
</artifactId>
<version>
${brave.version}
</version>
</dependency>
<dependency>
<groupId>
io.zipkin.brave
</groupId>
<artifactId>
brave-spring-beans
</artifactId>
<version>
${brave.version}
</version>
</dependency>
<dependency>
<groupId>
io.zipkin.reporter2
</groupId>
<artifactId>
zipkin-sender-kafka11
</artifactId>
<version>
${zipkin-reporter2.version}
</version>
</dependency>
<dependency>
<groupId>
io.zipkin.brave
</groupId>
<artifactId>
brave-instrumentation-spring-web
</artifactId>
<version>
${brave.version}
</version>
</dependency>
<dependency>
<groupId>
io.zipkin.brave
</groupId>
<artifactId>
brave-instrumentation-spring-webmvc
</artifactId>
<version>
${brave.version}
</version>
</dependency>
<dependency>
<groupId>
io.zipkin.brave
</groupId>
<artifactId>
brave-instrumentation-httpclient
</artifactId>
<version>
${brave.version}
</version>
</dependency>
<dependency>
<groupId>
io.zipkin.brave
</groupId>
<artifactId>
brave-instrumentation-mysql
</artifactId>
<version>
${brave.version}
</version>
</dependency>
<dependency>
<groupId>
io.zipkin.brave
</groupId>
<artifactId>
brave-instrumentation-okhttp3
</artifactId>
<version>
${brave.version}
</version>
</dependency>
<dependency>
<groupId>
io.zipkin.brave
</groupId>
<artifactId>
brave-instrumentation-spring-rabbit
</artifactId>
<version>
${brave.version}
</version>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
transmittable-thread-local
</artifactId>
<version>
2.11.4
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
commons-core/pom.xml
deleted
100644 → 0
View file @
af14582f
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
commons-parent
</artifactId>
<groupId>
cn.quantgroup
</groupId>
<version>
0.3.2
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
commons-core
</artifactId>
<properties>
<java.version>
1.8
</java.version>
<guava.version>
23.0
</guava.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<maven.test.skip>
true
</maven.test.skip>
</properties>
<dependencies>
</dependencies>
</project>
\ No newline at end of file
commons-spring/pom.xml
View file @
cb626872
...
...
@@ -2,41 +2,21 @@
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<artifactId>
commons-parent
</artifactId>
<groupId>
cn.quantgroup
</groupId>
<version>
0.3.2
</version>
<version>
${revision}
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
commons-spring
</artifactId>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
1.5.8.RELEASE
</version>
<scope>
import
</scope>
<type>
pom
</type>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-dependencies
</artifactId>
<version>
Edgware.RELEASE
</version>
<scope>
import
</scope>
<type>
pom
</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!--健康检查需要-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
...
...
@@ -53,35 +33,12 @@
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<version>
1.2.41
</version>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
<version>
3.6
</version>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
com.fasterxml.jackson.core
</groupId>
<artifactId>
jackson-annotations
</artifactId>
<version>
2.8.8
</version>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
com.fasterxml.jackson.core
</groupId>
<artifactId>
jackson-databind
</artifactId>
<version>
2.8.8
</version>
<scope>
compile
</scope>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-aop
</artifactId>
</dependency>
<!--这个可以让我们项目启动速度有质的飞跃-->
<dependency>
<groupId>
org.aspectj
</groupId>
<artifactId>
aspectjweaver
</artifactId>
<version>
1.8.13
</version>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jdbc
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
@@ -89,22 +46,37 @@
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-aop
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-jdbc
</artifactId>
<groupId>
org.aspectj
</groupId>
<artifactId>
aspectjweaver
</artifactId>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
</dependencies>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
<scope>
compile
</scope>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.alibaba</groupId>-->
<!-- <artifactId>fastjson</artifactId>-->
<!-- <version>1.2.79</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>com.fasterxml.jackson.core</groupId>-->
<!-- <artifactId>jackson-annotations</artifactId>-->
<!-- <version>2.13.1</version>-->
<!-- <scope>compile</scope>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>com.fasterxml.jackson.core</groupId>-->
<!-- <artifactId>jackson-databind</artifactId>-->
<!-- <version>2.13.1</version>-->
<!-- <scope>compile</scope>-->
<!-- </dependency>-->
</dependencies>
</project>
\ No newline at end of file
elastic-job-lite-spring-boot-starter/pom.xml
deleted
100644 → 0
View file @
af14582f
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
commons-parent
</artifactId>
<groupId>
cn.quantgroup
</groupId>
<version>
0.3.2
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
elastic-job-lite-spring-boot-starter
</artifactId>
<name>
elastic-job-lite-spring-boot-starter
</name>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<elastic.job.version>
2.1.5
</elastic.job.version>
</properties>
<dependencies>
<dependency>
<groupId>
com.dangdang
</groupId>
<artifactId>
elastic-job-lite-spring-shaded
</artifactId>
<version>
${elastic.job.version}
</version>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
com.github.kuhn-he
</groupId>
<artifactId>
elastic-job-lite-spring-boot-starter
</artifactId>
<version>
${elastic.job.version}
</version>
<optional>
true
</optional>
</dependency>
</dependencies>
</project>
elastic-job-lite-spring-boot-starter/src/main/java/cn/quantgroup/tech/elastic/job/lite/annotation/ElasticSimpleJob.java
deleted
100644 → 0
View file @
af14582f
package
cn
.
quantgroup
.
tech
.
elastic
.
job
.
lite
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
import
org.springframework.core.annotation.AliasFor
;
@Target
({
ElementType
.
TYPE
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
ElasticSimpleJob
{
@AliasFor
(
"cron"
)
public
abstract
String
value
()
default
""
;
@AliasFor
(
"value"
)
public
abstract
String
cron
()
default
""
;
public
abstract
String
jobName
()
default
""
;
public
abstract
int
shardingTotalCount
()
default
1
;
public
abstract
String
shardingItemParameters
()
default
""
;
public
abstract
String
jobParameter
()
default
""
;
public
abstract
String
dataSource
()
default
""
;
public
abstract
String
description
()
default
""
;
public
abstract
boolean
disabled
()
default
false
;
public
abstract
boolean
overwrite
()
default
true
;
}
elastic-job-lite-spring-boot-starter/src/main/java/cn/quantgroup/tech/elastic/job/lite/autoconfigure/ElasticJobAutoConfiguration.java
deleted
100644 → 0
View file @
af14582f
package
cn
.
quantgroup
.
tech
.
elastic
.
job
.
lite
.
autoconfigure
;
import
java.util.Map
;
import
javax.annotation.PostConstruct
;
import
javax.sql.DataSource
;
import
cn.quantgroup.tech.elastic.job.lite.annotation.ElasticSimpleJob
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.aop.support.AopUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnExpression
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.annotation.Configuration
;
import
com.dangdang.ddframe.job.api.simple.SimpleJob
;
import
com.dangdang.ddframe.job.config.JobCoreConfiguration
;
import
com.dangdang.ddframe.job.config.simple.SimpleJobConfiguration
;
import
com.dangdang.ddframe.job.event.rdb.JobEventRdbConfiguration
;
import
com.dangdang.ddframe.job.lite.config.LiteJobConfiguration
;
import
com.dangdang.ddframe.job.lite.spring.api.SpringJobScheduler
;
import
com.dangdang.ddframe.job.reg.zookeeper.ZookeeperConfiguration
;
import
com.dangdang.ddframe.job.reg.zookeeper.ZookeeperRegistryCenter
;
@Configuration
@ConditionalOnClass
(
ElasticSimpleJob
.
class
)
@ConditionalOnExpression
(
"'${elaticjob.zookeeper.server-lists}'.length() > 0"
)
public
class
ElasticJobAutoConfiguration
{
@Value
(
"${elaticjob.zookeeper.server-lists}"
)
private
String
serverList
;
@Value
(
"${elaticjob.zookeeper.namespace}"
)
private
String
namespace
;
@Autowired
private
ApplicationContext
applicationContext
;
@PostConstruct
public
void
initElasticJob
()
{
ZookeeperRegistryCenter
regCenter
=
new
ZookeeperRegistryCenter
(
new
ZookeeperConfiguration
(
serverList
,
namespace
));
regCenter
.
init
();
Map
<
String
,
SimpleJob
>
map
=
applicationContext
.
getBeansOfType
(
SimpleJob
.
class
);
for
(
Map
.
Entry
<
String
,
SimpleJob
>
entry
:
map
.
entrySet
())
{
SimpleJob
simpleJob
=
entry
.
getValue
();
ElasticSimpleJob
elasticSimpleJobAnnotation
=
AopUtils
.
getTargetClass
(
simpleJob
).
getAnnotation
(
ElasticSimpleJob
.
class
);
if
(
elasticSimpleJobAnnotation
!=
null
){
String
cron
=
StringUtils
.
defaultIfBlank
(
elasticSimpleJobAnnotation
.
cron
(),
elasticSimpleJobAnnotation
.
value
());
SimpleJobConfiguration
simpleJobConfiguration
=
new
SimpleJobConfiguration
(
JobCoreConfiguration
.
newBuilder
(
elasticSimpleJobAnnotation
.
jobName
(),
cron
,
elasticSimpleJobAnnotation
.
shardingTotalCount
()).
shardingItemParameters
(
elasticSimpleJobAnnotation
.
shardingItemParameters
()).
build
(),
elasticSimpleJobAnnotation
.
jobName
());
LiteJobConfiguration
liteJobConfiguration
=
LiteJobConfiguration
.
newBuilder
(
simpleJobConfiguration
).
overwrite
(
true
).
build
();
String
dataSourceRef
=
elasticSimpleJobAnnotation
.
dataSource
();
if
(
StringUtils
.
isNotBlank
(
dataSourceRef
))
{
if
(!
applicationContext
.
containsBean
(
dataSourceRef
))
{
throw
new
RuntimeException
(
"not exist datasource ["
+
dataSourceRef
+
"] !"
);
}
DataSource
dataSource
=
(
DataSource
)
applicationContext
.
getBean
(
dataSourceRef
);
JobEventRdbConfiguration
jobEventRdbConfiguration
=
new
JobEventRdbConfiguration
(
dataSource
);
SpringJobScheduler
jobScheduler
=
new
SpringJobScheduler
(
simpleJob
,
regCenter
,
liteJobConfiguration
,
jobEventRdbConfiguration
);
jobScheduler
.
init
();
}
else
{
SpringJobScheduler
jobScheduler
=
new
SpringJobScheduler
(
simpleJob
,
regCenter
,
liteJobConfiguration
);
jobScheduler
.
init
();
}
}
}
}
}
\ No newline at end of file
elastic-job-lite-spring-boot-starter/src/main/resources/META-INF/spring.factories
deleted
100644 → 0
View file @
af14582f
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
cn.quantgroup.tech.elastic.job.lite.autoconfigure.ElasticJobAutoConfiguration
\ No newline at end of file
enoch-agent-spring-boot-starter/pom.xml
View file @
cb626872
...
...
@@ -5,15 +5,11 @@
<parent>
<artifactId>
commons-parent
</artifactId>
<groupId>
cn.quantgroup
</groupId>
<version>
0.3.2
</version>
<version>
${revision}
</version>
</parent>
<groupId>
cn.quantgroup
</groupId>
<artifactId>
enoch-agent-spring-boot-starter
</artifactId>
<properties>
<java.version>
1.8
</java.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
@@ -22,15 +18,12 @@
<dependency>
<groupId>
org.springframework.kafka
</groupId>
<artifactId>
spring-kafka
</artifactId>
<version>
2.2.4.RELEASE
</version>
</dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
cn.quantgroup
</groupId>
<artifactId>
commons-spring
</artifactId>
...
...
idgenerator-spring-boot-starter/pom.xml
View file @
cb626872
...
...
@@ -5,14 +5,12 @@
<parent>
<artifactId>
commons-parent
</artifactId>
<groupId>
cn.quantgroup
</groupId>
<version>
0.3.2
</version>
<version>
${revision}
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
idgenerator-spring-boot-starter
</artifactId>
<dependencies>
<dependency>
<groupId>
org.springframework.data
</groupId>
...
...
@@ -22,7 +20,6 @@
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
<version>
3.7
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
...
...
pom.xml
View file @
cb626872
This diff is collapsed.
Click to expand it.
shutdown-spring-boot-starter/pom.xml
View file @
cb626872
...
...
@@ -5,14 +5,13 @@
<parent>
<artifactId>
commons-parent
</artifactId>
<groupId>
cn.quantgroup
</groupId>
<version>
0.3.2
</version>
<version>
${revision}
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
shutdown-spring-boot-starter
</artifactId>
<dependencies>
<!--以下为可选的-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
...
...
@@ -38,7 +37,6 @@
<artifactId>
spring-boot-starter-amqp
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment