Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 0 additions & 83 deletions logic-ide/pom-xml-flattened

This file was deleted.

12 changes: 0 additions & 12 deletions logic-ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@
<properties>
<java.version>17</java.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.7.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
Expand All @@ -42,7 +31,6 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.7.2</version>
</dependency>
<!-- 在 pom.xml 中添加 -->
<dependency>
Expand Down
2 changes: 0 additions & 2 deletions logic-sdk/pom-xml-flattened
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
<version>2.7.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
<version>2.7.2</version>
</dependency>
<dependency>
<groupId>org.redisson</groupId>
Expand Down
2 changes: 0 additions & 2 deletions logic-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
<version>2.7.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
<version>2.7.2</version>
</dependency>
<dependency>
<groupId>org.redisson</groupId>
Expand Down
30 changes: 28 additions & 2 deletions pom-xml-flattened
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@
<logic-ide.version>0.10-SNAPSHOT</logic-ide.version>
<logic-runtime.version>0.10-SNAPSHOT</logic-runtime.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
Expand All @@ -43,12 +54,10 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>2.7.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>2.7.2</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down Expand Up @@ -93,4 +102,21 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>spring-boot-2</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<spring-boot.version>2.7.2</spring-boot.version>
</properties>
</profile>
<profile>
<id>spring-boot-3</id>
<properties>
<spring-boot.version>3.2.5</spring-boot.version>
</properties>
</profile>
</profiles>
</project>
30 changes: 28 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<modules>
<module>logic-runtime</module>
<module>logic-sdk</module>
Expand Down Expand Up @@ -65,13 +76,11 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>2.7.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<version>2.7.2</version>
</dependency>
</dependencies>
<build>
Expand Down Expand Up @@ -117,4 +126,21 @@
<!-- </plugin>-->
</plugins>
</build>
<profiles>
<profile>
<id>spring-boot-2</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<spring-boot.version>2.7.2</spring-boot.version>
</properties>
</profile>
<profile>
<id>spring-boot-3</id>
<properties>
<spring-boot.version>3.2.5</spring-boot.version>
</properties>
</profile>
</profiles>
</project>
18 changes: 18 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,24 @@ mvn spring-boot:run

访问 http://localhost:8888 查看管理界面。

## 本地兼容性验证

项目引入了 `spring-boot-2`(默认启用)与 `spring-boot-3` 两个 Maven Profile,用于分别拉起 Spring Boot 2.7.x 与 3.2.x 的依赖栈来编译和验证 `logic-ide` 模块及其依赖。

一键执行两个 Profile 构建可运行以下脚本:

```bash
./scripts/verify-compatibility.sh
```

脚本会先后执行 `clean verify`,覆盖 `spring-boot-2` 与 `spring-boot-3` 两个 Profile;传入的额外参数会直接透传给 Maven。

如需单独验证某个 Profile,可手动执行:

```bash
./mvnw -pl logic-ide -am clean verify -Pspring-boot-3
```

### Maven 依赖

```xml
Expand Down
Loading
Loading