瀏覽代碼

Update source/target JDK version to 1.8 and update documents

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
master
Eric Zhao cdfive 3 年之前
父節點
當前提交
be2715d814
共有 27 個文件被更改,包括 8 次插入190 次删除
  1. +2
    -2
      README.md
  2. +2
    -2
      pom.xml
  3. +0
    -5
      sentinel-adapter/sentinel-api-gateway-adapter-common/pom.xml
  4. +2
    -14
      sentinel-adapter/sentinel-motan-adapter/pom.xml
  5. +0
    -2
      sentinel-adapter/sentinel-reactor-adapter/README.md
  6. +0
    -2
      sentinel-adapter/sentinel-spring-cloud-gateway-adapter/README.md
  7. +0
    -2
      sentinel-adapter/sentinel-spring-webflux-adapter/README.md
  8. +0
    -11
      sentinel-benchmark/pom.xml
  9. +0
    -3
      sentinel-cluster/pom.xml
  10. +1
    -5
      sentinel-cluster/sentinel-cluster-server-default/src/main/java/com/alibaba/csp/sentinel/cluster/server/processor/RequestProcessorProvider.java
  11. +0
    -11
      sentinel-dashboard/pom.xml
  12. +0
    -5
      sentinel-demo/pom.xml
  13. +0
    -2
      sentinel-demo/sentinel-demo-apollo-datasource/pom.xml
  14. +0
    -14
      sentinel-demo/sentinel-demo-dubbo/pom.xml
  15. +0
    -15
      sentinel-demo/sentinel-demo-dynamic-file-rule/pom.xml
  16. +0
    -18
      sentinel-demo/sentinel-demo-etcd-datasource/pom.xml
  17. +0
    -15
      sentinel-demo/sentinel-demo-motan/pom.xml
  18. +0
    -14
      sentinel-demo/sentinel-demo-nacos-datasource/pom.xml
  19. +0
    -5
      sentinel-demo/sentinel-demo-parameter-flow-control/pom.xml
  20. +0
    -14
      sentinel-demo/sentinel-demo-rocketmq/pom.xml
  21. +0
    -5
      sentinel-demo/sentinel-demo-spring-cloud-gateway/pom.xml
  22. +0
    -15
      sentinel-demo/sentinel-demo-zookeeper-datasource/pom.xml
  23. +0
    -2
      sentinel-extension/sentinel-datasource-consul/README.md
  24. +0
    -2
      sentinel-extension/sentinel-datasource-etcd/README.md
  25. +1
    -1
      sentinel-extension/sentinel-datasource-redis/README.md
  26. +0
    -2
      sentinel-extension/sentinel-datasource-zookeeper/pom.xml
  27. +0
    -2
      sentinel-logging/sentinel-logging-slf4j/pom.xml

+ 2
- 2
README.md 查看文件

@@ -49,9 +49,9 @@ Below is a simple demo that guides new users to use Sentinel in just 3 steps. It

### 1. Add Dependency

**Note:** Sentinel Core requires Java 7 or later.
**Note:** Sentinel requires JDK 1.8 or later.

If your're using Maven, just add the following dependency in `pom.xml`.
If you're using Maven, just add the following dependency in `pom.xml`.

```xml
<!-- replace here with the latest version -->


+ 2
- 2
pom.xml 查看文件

@@ -53,8 +53,8 @@

<!-- Build -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.source.version>1.7</java.source.version>
<java.target.version>1.7</java.target.version>
<java.source.version>1.8</java.source.version>
<java.target.version>1.8</java.target.version>
<java.encoding>UTF-8</java.encoding>
<maven.compiler.version>3.8.0</maven.compiler.version>
<maven.surefire.version>2.22.1</maven.surefire.version>


+ 0
- 5
sentinel-adapter/sentinel-api-gateway-adapter-common/pom.xml 查看文件

@@ -12,11 +12,6 @@
<artifactId>sentinel-api-gateway-adapter-common</artifactId>
<packaging>jar</packaging>

<properties>
<java.source.version>1.7</java.source.version>
<java.target.version>1.7</java.target.version>
</properties>

<dependencies>
<dependency>
<groupId>com.alibaba.csp</groupId>


+ 2
- 14
sentinel-adapter/sentinel-motan-adapter/pom.xml 查看文件

@@ -20,6 +20,7 @@
<groupId>com.alibaba.csp</groupId>
<artifactId>sentinel-core</artifactId>
</dependency>

<dependency>
<groupId>com.weibo</groupId>
<artifactId>motan-core</artifactId>
@@ -33,18 +34,5 @@
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.version}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>${java.encoding}</encoding>
</configuration>
</plugin>
</plugins>
</build>

</project>

+ 0
- 2
sentinel-adapter/sentinel-reactor-adapter/README.md 查看文件

@@ -1,7 +1,5 @@
# Sentinel Reactor Adapter

> Note: this module requires Java 8 or later version.

Sentinel provides integration module for [Reactor](https://projectreactor.io/).

Add the following dependency in `pom.xml` (if you are using Maven):


+ 0
- 2
sentinel-adapter/sentinel-spring-cloud-gateway-adapter/README.md 查看文件

@@ -1,7 +1,5 @@
# Sentinel Spring Cloud Gateway Adapter

> Note: this module requires Java 8 or later version.

Sentinel provides integration module with Spring Cloud Gateway.
The integration module is based on the Sentinel Reactor Adapter.



+ 0
- 2
sentinel-adapter/sentinel-spring-webflux-adapter/README.md 查看文件

@@ -1,7 +1,5 @@
# Sentinel Spring WebFlux Adapter

> Note: this module requires Java 8 or later version.

Sentinel provides integration module with Spring WebFlux, so reactive web applications can also leverage Sentinel's flow control
and circuit breaking to achieve reliability. The integration module is based on the Sentinel Reactor Adapter.



+ 0
- 11
sentinel-benchmark/pom.xml 查看文件

@@ -40,22 +40,11 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jmh.version>1.21</jmh.version>
<javac.target>1.8</javac.target>
<uberjar.name>benchmarks</uberjar.name>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.version}</version>
<configuration>
<compilerVersion>${javac.target}</compilerVersion>
<source>${javac.target}</source>
<target>${javac.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>


+ 0
- 3
sentinel-cluster/pom.xml 查看文件

@@ -13,9 +13,6 @@
<description>The parent module of Sentinel cluster server</description>

<properties>
<java.source.version>1.7</java.source.version>
<java.target.version>1.7</java.target.version>

<netty.version>4.1.31.Final</netty.version>
</properties>



+ 1
- 5
sentinel-cluster/sentinel-cluster-server-default/src/main/java/com/alibaba/csp/sentinel/cluster/server/processor/RequestProcessorProvider.java 查看文件

@@ -59,11 +59,7 @@ public final class RequestProcessorProvider {
}

static void addProcessorIfAbsent(int type, RequestProcessor processor) {
// TBD: use putIfAbsent in JDK 1.8.
if (PROCESSOR_MAP.containsKey(type)) {
return;
}
PROCESSOR_MAP.put(type, processor);
PROCESSOR_MAP.putIfAbsent(type, processor);
}

static void addProcessor(int type, RequestProcessor processor) {


+ 0
- 11
sentinel-dashboard/pom.xml 查看文件

@@ -13,8 +13,6 @@
<packaging>jar</packaging>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<spring.boot.version>2.0.5.RELEASE</spring.boot.version>
<curator.version>4.0.1</curator.version>
</properties>
@@ -158,15 +156,6 @@
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>


+ 0
- 5
sentinel-demo/pom.xml 查看文件

@@ -12,11 +12,6 @@
<packaging>pom</packaging>
<name>sentinel-demo</name>

<properties>
<java.source.version>1.8</java.source.version>
<java.target.version>1.8</java.target.version>
</properties>

<modules>
<module>sentinel-demo-basic</module>
<module>sentinel-demo-dynamic-file-rule</module>


+ 0
- 2
sentinel-demo/sentinel-demo-apollo-datasource/pom.xml 查看文件

@@ -12,8 +12,6 @@
<artifactId>sentinel-demo-apollo-datasource</artifactId>

<properties>
<java.source.version>1.8</java.source.version>
<java.target.version>1.8</java.target.version>
<log4j2.version>2.9.1</log4j2.version>
<slf4j.version>1.7.25</slf4j.version>
</properties>


+ 0
- 14
sentinel-demo/sentinel-demo-dubbo/pom.xml 查看文件

@@ -50,18 +50,4 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.version}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>${java.encoding}</encoding>
</configuration>
</plugin>
</plugins>
</build>
</project>

+ 0
- 15
sentinel-demo/sentinel-demo-dynamic-file-rule/pom.xml 查看文件

@@ -30,19 +30,4 @@
</dependency>
</dependencies>

<build>
<finalName>sentinel-demo-dynamic-file-rule</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.version}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>${java.encoding}</encoding>
</configuration>
</plugin>
</plugins>
</build>
</project>

+ 0
- 18
sentinel-demo/sentinel-demo-etcd-datasource/pom.xml 查看文件

@@ -12,37 +12,19 @@
<artifactId>sentinel-demo-etcd-datasource</artifactId>

<dependencies>

<dependency>
<groupId>com.alibaba.csp</groupId>
<artifactId>sentinel-core</artifactId>
</dependency>

<dependency>
<groupId>com.alibaba.csp</groupId>
<artifactId>sentinel-datasource-etcd</artifactId>
</dependency>


<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
</dependency>

</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.version}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>${java.encoding}</encoding>
</configuration>
</plugin>
</plugins>
</build>
</project>

+ 0
- 15
sentinel-demo/sentinel-demo-motan/pom.xml 查看文件

@@ -50,19 +50,4 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.version}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>${java.encoding}</encoding>
</configuration>
</plugin>
</plugins>
</build>

</project>

+ 0
- 14
sentinel-demo/sentinel-demo-nacos-datasource/pom.xml 查看文件

@@ -37,18 +37,4 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.version}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>${java.encoding}</encoding>
</configuration>
</plugin>
</plugins>
</build>
</project>

+ 0
- 5
sentinel-demo/sentinel-demo-parameter-flow-control/pom.xml 查看文件

@@ -11,11 +11,6 @@

<artifactId>sentinel-demo-parameter-flow-control</artifactId>

<properties>
<java.source.version>1.8</java.source.version>
<java.target.version>1.8</java.target.version>
</properties>

<dependencies>
<dependency>
<groupId>com.alibaba.csp</groupId>


+ 0
- 14
sentinel-demo/sentinel-demo-rocketmq/pom.xml 查看文件

@@ -19,18 +19,4 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.version}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>${java.encoding}</encoding>
</configuration>
</plugin>
</plugins>
</build>
</project>

+ 0
- 5
sentinel-demo/sentinel-demo-spring-cloud-gateway/pom.xml 查看文件

@@ -11,11 +11,6 @@

<artifactId>sentinel-demo-spring-cloud-gateway</artifactId>

<properties>
<java.source.version>1.8</java.source.version>
<java.target.version>1.8</java.target.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>


+ 0
- 15
sentinel-demo/sentinel-demo-zookeeper-datasource/pom.xml 查看文件

@@ -54,19 +54,4 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.version}</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>${java.encoding}</encoding>
</configuration>
</plugin>
</plugins>
</build>

</project>

+ 0
- 2
sentinel-extension/sentinel-datasource-consul/README.md 查看文件

@@ -3,8 +3,6 @@
Sentinel DataSource Consul provides integration with Consul. The data source leverages blocking query (backed by
long polling) of Consul.

> **NOTE**: This module requires JDK 1.8 or later.

## Usage

To use Sentinel DataSource Consul, you could add the following dependency:


+ 0
- 2
sentinel-extension/sentinel-datasource-etcd/README.md 查看文件

@@ -3,8 +3,6 @@
Sentinel DataSource Etcd provides integration with etcd so that etcd
can be the dynamic rule data source of Sentinel. The data source uses push model (watcher).

> **NOTE**: This module requires JDK 1.8 or later.

To use Sentinel DataSource Etcd, you should add the following dependency:

```xml


+ 1
- 1
sentinel-extension/sentinel-datasource-redis/README.md 查看文件

@@ -2,7 +2,7 @@

Sentinel DataSource Redis provides integration with Redis. The data source leverages Redis pub-sub feature to implement push model (listener).

The data source uses [Lettuce](https://lettuce.io/) as the Redis client internal. Requires JDK 1.8 or later.
The data source uses [Lettuce](https://lettuce.io/) as the Redis client, which requires JDK 1.8 or later.

> **NOTE**: Currently we do not support Redis Cluster now.



+ 0
- 2
sentinel-extension/sentinel-datasource-zookeeper/pom.xml 查看文件

@@ -13,8 +13,6 @@
<packaging>jar</packaging>

<properties>
<java.source.version>1.7</java.source.version>
<java.target.version>1.7</java.target.version>
<zookeeper.version>3.4.14</zookeeper.version>
<curator.version>4.0.1</curator.version>
<curator.test.version>2.12.0</curator.test.version>


+ 0
- 2
sentinel-logging/sentinel-logging-slf4j/pom.xml 查看文件

@@ -13,8 +13,6 @@
<packaging>jar</packaging>

<properties>
<java.source.version>1.7</java.source.version>
<java.target.version>1.7</java.target.version>
<slf4j.version>1.7.25</slf4j.version>
<slf4j-test.version>1.2.0</slf4j-test.version>
</properties>


Loading…
取消
儲存