release 1.3.6

This commit is contained in:
linpeilie 2024-01-07 17:13:13 +08:00
parent f5e48f9b1f
commit 240e6e0f80
11 changed files with 126 additions and 30 deletions

View File

@ -0,0 +1,22 @@
name: Close inactive issues
on:
schedule:
- cron: "30 1 * * *"
jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 30
days-before-issue-close: 14
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -62,36 +62,31 @@ footer:
<dependency> <dependency>
<groupId>io.github.linpeilie</groupId> <groupId>io.github.linpeilie</groupId>
<artifactId>mapstruct-plus-spring-boot-starter</artifactId> <artifactId>mapstruct-plus-spring-boot-starter</artifactId>
<version>1.3.5</version> <version>1.3.6</version>
</dependency> </dependency>
``` ```
- gradle - gradle
```groovy ```groovy
implementation group: 'io.github.linpeilie', name: 'mapstruct-plus-spring-boot-starter', version: '1.3.5' implementation group: 'io.github.linpeilie', name: 'mapstruct-plus-spring-boot-starter', version: '1.3.6'
``` ```
## 更新日志 ## 更新日志
### 1.3.6
- 兼容内部类转换
- feature : AutoMapping 注解中的 targetClass 支持配置父类
- [issue#I8QPRO](https://gitee.com/easii/mapstruct-plus/issues/I8QPRO) : 框架自动生成的 AutoMapperConfig 和 AutoMapMapper 包和类名支持配置
- [issue#I8T7EF](https://gitee.com/easii/mapstruct-plus/issues/I8T7EF) : 支持在父类中配置的 AutoMapping 注解
### 1.3.5 ### 1.3.5
- AutoMapping、ReverseAutoMapping 支持配置在方法上面; - AutoMapping、ReverseAutoMapping 支持配置在方法上面;
- AutoMapping、ReverseAutoMapping 支持 defaultExpression 和 conditionExpression 属性 - AutoMapping、ReverseAutoMapping 支持 defaultExpression 和 conditionExpression 属性
### 1.3.4
……什么都没更新腾讯云maven源同步的jar有问题只能重新发个新包
### 1.3.3
- fixbug: 修复 win JDK8 编译报错问题
### 1.3.2
- 不可变对象支持,可以使用任意包下的 `Immutable` 标注类型为不可变类
- 全面适配 IDEA 部分编译问题,使用更加流畅丝滑
…… ……
## 代码仓库 ## 代码仓库

View File

@ -58,32 +58,30 @@ fotter:
<dependency> <dependency>
<groupId>io.github.linpeilie</groupId> <groupId>io.github.linpeilie</groupId>
<artifactId>mapstruct-plus-spring-boot-starter</artifactId> <artifactId>mapstruct-plus-spring-boot-starter</artifactId>
<version>1.3.5</version> <version>1.3.6</version>
</dependency> </dependency>
``` ```
- gradle - gradle
```groovy ```groovy
implementation group: 'io.github.linpeilie', name: 'mapstruct-plus-spring-boot-starter', version: '1.3.5' implementation group: 'io.github.linpeilie', name: 'mapstruct-plus-spring-boot-starter', version: '1.3.6'
``` ```
## Change Log ## Change Log
### 1.3.6
- Compatible with internal class conversion.
- The targetClass in the AutoMapping annotation supports configuring the parent class.
- AutoMapperConfig and AutoMapMapperConfig package and class name generated automatically by the framework support configuration.
- Supports AutoMapping annotations configured in the parent class.
### 1.3.5 ### 1.3.5
- `@AutoMapping``@ReversedAutoMapping` support is configured on top of methods. - `@AutoMapping``@ReversedAutoMapping` support is configured on top of methods.
- `@AutoMapping``@ReverseAutoMapping` support the defaultExpression and conditionExpression properties - `@AutoMapping``@ReverseAutoMapping` support the defaultExpression and conditionExpression properties
### 1.3.3
- fixbug: fixed compilation error on win jdk8
### 1.3.2
- Support Immutable object, you can use the `@Immutable` annotation type under any package as an immutable class
- fully adapt the IDEA part of the compilation problem, use more smooth silky
…… ……
## Code Warehouse ## Code Warehouse

View File

@ -163,4 +163,31 @@ eg:
- **Description**the class name of MapConvertMapperAdapter - **Description**the class name of MapConvertMapperAdapter
- **Type**`String` - **Type**`String`
- **Default**MapConvertMapperAdapter - **Default**MapConvertMapperAdapter
- **Compile Parameter**`-Amapstruct.plus.mapAdapterClassName` - **Compile Parameter**`-Amapstruct.plus.mapAdapterClassName`
### autoConfigPackage
> since `1.3.6`
- **Description**The package path of the automatically generated configuration class --- `AutoMapperConfig`/`AutoMapMapperConfig` --- from the MapStructPlus framework.
- **Type**`String`
- **Default**io.github.linpeilie
- **Compile Parameter**`-Amapstruct.plus.autoConfigPackage`
### autoMapperConfigClassName
> since `1.3.6`
- **Description**MapStructPlus framework automatically generates the name of the configuration class(transformation between configuration objects)
- **Type**`String`
- **Default**AutoMapperConfig
- **Compile Parameter**`-Amapstruct.plus.autoMapperConfigClassName`
### autoMapMapperConfigClassName
> since `1.3.6`
- **Description**MapStructPlus framework automatically generates the name of the configuration class(which configures the transformation between the Map and the object)
- **Type**`String`
- **Default**AutoMapMapperConfig
- **Compile Parameter**`-Amapstruct.plus.autoMapMapperConfigClassName`

View File

@ -34,6 +34,12 @@ when using the `@AutoMapping` annotation, configure the `targetClass` attribute
If `targetClass` is not specified when the `@AutoMapping` annotation is configured, the current rule applies to all class conversions. If `targetClass` is not specified when the `@AutoMapping` annotation is configured, the current rule applies to all class conversions.
:::info
`targetClass` also supports the configuration parent class, which applies to this rule when the target class is a subclass of the configured `targetClass`.
> This feature is supported from 1.3.6
:::
eg eg
```java ```java

View File

@ -6,6 +6,13 @@ category:
description: MapStructPlus release log description: MapStructPlus release log
--- ---
### 1.3.6
- Compatible with internal class conversion.
- The targetClass in the AutoMapping annotation supports configuring the parent class.
- AutoMapperConfig and AutoMapMapperConfig package and class name generated automatically by the framework support configuration.
- Supports AutoMapping annotations configured in the parent class.
### 1.3.5 ### 1.3.5
- AutoMapping、ReverseAutoMapping 支持配置在方法上面; - AutoMapping、ReverseAutoMapping 支持配置在方法上面;

View File

@ -160,4 +160,31 @@ public class MapStructPlusConfiguration {
- **说明**MapConvertMapperAdapter 类名 - **说明**MapConvertMapperAdapter 类名
- **类型**`String` - **类型**`String`
- **默认值**MapConvertMapperAdapter - **默认值**MapConvertMapperAdapter
- **对应编译参数**`-Amapstruct.plus.mapAdapterClassName` - **对应编译参数**`-Amapstruct.plus.mapAdapterClassName`
### autoConfigPackage
> since `1.3.6`
- **说明**MapStructPlus 框架自动生成的配置类 --- `AutoMapperConfig`/`AutoMapMapperConfig` 所在的包路径
- **类型**`String`
- **默认值**io.github.linpeilie
- **对应编译参数**`-Amapstruct.plus.autoConfigPackage`
### autoMapperConfigClassName
> since `1.3.6`
- **说明**MapStructPlus 框架自动生成的的配置类(配置对象之间的转换)类名
- **类型**`String`
- **默认值**AutoMapperConfig
- **对应编译参数**`-Amapstruct.plus.autoMapperConfigClassName`
### autoMapMapperConfigClassName
> since `1.3.6`
- **说明**MapStructPlus 框架自动生成的配置类配置Map与对象之间的转换类名
- **类型**`String`
- **默认值**AutoMapMapperConfig
- **对应编译参数**`-Amapstruct.plus.autoMapMapperConfigClassName`

View File

@ -33,6 +33,13 @@ public class User {
如果在配置 `@AutoMapping` 注解时,没有指定 `targetClass` 时,则当前规则,会应用于与所有类转换。 如果在配置 `@AutoMapping` 注解时,没有指定 `targetClass` 时,则当前规则,会应用于与所有类转换。
:::info
`targetClass` 同时支持配置父类,当目标类是所配置的 `targetClass` 的子类时,即可应用于该规则。
> 该特性从 1.3.6 开始支持
:::
例如: 例如:
```java ```java

View File

@ -6,6 +6,13 @@ category:
description: MapStructPlus release log description: MapStructPlus release log
--- ---
### 1.3.6
- 兼容内部类转换
- feature : AutoMapping 注解中的 targetClass 支持配置父类
- [issue#I8QPRO](https://gitee.com/easii/mapstruct-plus/issues/I8QPRO) : 框架自动生成的 AutoMapperConfig 和 AutoMapMapper 包和类名支持配置
- [issue#I8T7EF](https://gitee.com/easii/mapstruct-plus/issues/I8T7EF) : 支持在父类中配置的 AutoMapping 注解
### 1.3.5 ### 1.3.5
- AutoMapping、ReverseAutoMapping 支持配置在方法上面; - AutoMapping、ReverseAutoMapping 支持配置在方法上面;

View File

@ -18,7 +18,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<mapstruct.version>1.5.1.Final</mapstruct.version> <mapstruct.version>1.5.1.Final</mapstruct.version>
<mapstruct-plus.version>1.3.6-SNAPSHOT</mapstruct-plus.version> <mapstruct-plus.version>1.3.6</mapstruct-plus.version>
<lombok.version>1.18.22</lombok.version> <lombok.version>1.18.22</lombok.version>
</properties> </properties>

View File

@ -17,7 +17,7 @@
</modules> </modules>
<properties> <properties>
<mapstruct-plus.version>1.3.6-SNAPSHOT</mapstruct-plus.version> <mapstruct-plus.version>1.3.6</mapstruct-plus.version>
<maven.compiler.source>8</maven.compiler.source> <maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target> <maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>