Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.x - 基于jdk17和spring boot3 #922

Merged
merged 8 commits into from
Aug 21, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Maven Central Repository
uses: actions/setup-java@v2
with:
java-version: '8'
java-version: '17'
distribution: 'adopt'
server-id: ossrh
server-username: MAVEN_USERNAME
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Maven Central Repository
uses: actions/setup-java@v2
with:
java-version: '8'
java-version: '17'
distribution: 'adopt'
- name: Run the Maven verify phase
run: mvn --batch-mode --update-snapshots -P dev test
6 changes: 3 additions & 3 deletions all/mapper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
<dependencies>
<!--必须依赖-->
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>javax.persistence-api</artifactId>
<groupId>jakarta.persistence</groupId>
<artifactId>jakarta.persistence-api</artifactId>
</dependency>
<dependency>
<groupId>tk.mybatis</groupId>
Expand Down Expand Up @@ -79,7 +79,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.3.0</version>
<version>3.6.0</version>
<executions>
<execution>
<phase>package</phase>
Expand Down
2 changes: 1 addition & 1 deletion all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.1.0</version>
<version>1.6.0</version>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>bom</flattenMode>
Expand Down
10 changes: 5 additions & 5 deletions base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
<dependencies>
<!--必须依赖-->
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>javax.persistence-api</artifactId>
<groupId>jakarta.persistence</groupId>
<artifactId>jakarta.persistence-api</artifactId>
</dependency>

<dependency>
Expand All @@ -58,9 +58,9 @@
</dependency>

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.21</version>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>8.0.33</version>
<scope>test</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion base/src/test/java/tk/mybatis/mapper/base/Country.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

package tk.mybatis.mapper.base;

import javax.persistence.Id;
import jakarta.persistence.Id;
import java.io.Serializable;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import jakarta.persistence.Id;
import java.io.Serializable;

/**
Expand Down
2 changes: 1 addition & 1 deletion base/src/test/java/tk/mybatis/mapper/base/genid/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import jakarta.persistence.Id;

/**
* @author liuzh
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tk.mybatis.mapper.defaultenumtypehandler;

import javax.persistence.Id;
import jakarta.persistence.Id;
import java.io.Serializable;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package tk.mybatis.mapper.generatedvalue;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import jakarta.persistence.Column;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

/**
* @author liuzh
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tk.mybatis.mapper.generatedvalue;

import javax.persistence.*;
import jakarta.persistence.*;

/**
* @author liuzh
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tk.mybatis.mapper.generatedvalue;

import javax.persistence.*;
import jakarta.persistence.*;

/**
* @author liuzh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import tk.mybatis.mapper.mapperhelper.FieldHelper;
import tk.mybatis.mapper.model.Country;

import javax.persistence.Id;
import jakarta.persistence.Id;
import java.beans.IntrospectionException;
import java.util.List;

Expand Down
4 changes: 2 additions & 2 deletions base/src/test/java/tk/mybatis/mapper/helper/FieldTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
import tk.mybatis.mapper.mapperhelper.FieldHelper;
import tk.mybatis.mapper.model.Country;

import javax.persistence.Entity;
import javax.persistence.Id;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package tk.mybatis.mapper.issues._216_datetime;

import javax.persistence.Id;
import javax.persistence.Table;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import java.io.Serializable;
import java.util.Date;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package tk.mybatis.mapper.issues._216_datetime;

import javax.persistence.Id;
import javax.persistence.Table;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import org.apache.ibatis.type.JdbcType;
import tk.mybatis.mapper.annotation.ColumnType;

import javax.persistence.Id;
import javax.persistence.Table;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import java.io.Serializable;
import java.util.Date;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import jakarta.persistence.Column;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

/**
* @author liuzh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.IdentityDialect;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import jakarta.persistence.Column;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

/**
* @author liuzh
Expand Down
6 changes: 3 additions & 3 deletions base/src/test/java/tk/mybatis/mapper/keysql/UserSqlAfter.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import jakarta.persistence.Column;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

/**
* @author liuzh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import javax.persistence.Id;
import javax.persistence.Table;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

/**
* @author liuzh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import tk.mybatis.mapper.annotation.LogicDelete;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import jakarta.persistence.Column;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;

public class BaseLogicDelete {

Expand Down
4 changes: 2 additions & 2 deletions base/src/test/java/tk/mybatis/mapper/model/Country.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
import tk.mybatis.mapper.annotation.Order;
import tk.mybatis.mapper.entity.IDynamicTableName;

import javax.persistence.Column;
import javax.persistence.Transient;
import jakarta.persistence.Column;
import jakarta.persistence.Transient;
import java.io.Serializable;
import java.util.List;

Expand Down
6 changes: 3 additions & 3 deletions base/src/test/java/tk/mybatis/mapper/model/Country2.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

package tk.mybatis.mapper.model;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;

/**
* Description: Country
Expand Down
6 changes: 3 additions & 3 deletions base/src/test/java/tk/mybatis/mapper/model/CountryI.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;

/**
* Description: Country
Expand Down
6 changes: 3 additions & 3 deletions base/src/test/java/tk/mybatis/mapper/model/CountryJDBC.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

package tk.mybatis.mapper.model;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

/**
* Description: Country
Expand Down
4 changes: 2 additions & 2 deletions base/src/test/java/tk/mybatis/mapper/model/CountryT.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

package tk.mybatis.mapper.model;

import javax.persistence.Id;
import javax.persistence.Transient;
import jakarta.persistence.Id;
import jakarta.persistence.Transient;

/**
* Description: Country
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import tk.mybatis.mapper.annotation.Version;

import javax.persistence.Table;
import jakarta.persistence.Table;

/**
* Description: Country
Expand Down
4 changes: 2 additions & 2 deletions base/src/test/java/tk/mybatis/mapper/model/Entity.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

import tk.mybatis.mapper.annotation.Order;

import javax.persistence.Id;
import javax.persistence.Transient;
import jakarta.persistence.Id;
import jakarta.persistence.Transient;
import java.io.Serializable;

/**
Expand Down
2 changes: 1 addition & 1 deletion base/src/test/java/tk/mybatis/mapper/model/TbUser.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tk.mybatis.mapper.model;

import javax.persistence.*;
import jakarta.persistence.*;

@Table(name = "tb_user")
public class TbUser {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package tk.mybatis.mapper.model;

import javax.persistence.Column;
import javax.persistence.Table;
import jakarta.persistence.Column;
import jakarta.persistence.Table;

@Table(name = "tb_user")
public class TbUserLogicDelete extends BaseLogicDelete {
Expand Down
6 changes: 3 additions & 3 deletions base/src/test/java/tk/mybatis/mapper/model/UserInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

package tk.mybatis.mapper.model;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import java.io.Serializable;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

package tk.mybatis.mapper.model;

import javax.persistence.*;
import jakarta.persistence.*;
import java.io.Serializable;

/**
Expand Down
6 changes: 3 additions & 3 deletions base/src/test/java/tk/mybatis/mapper/model/UserInfoMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

package tk.mybatis.mapper.model;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import java.io.Serializable;
import java.util.HashMap;

Expand Down
6 changes: 3 additions & 3 deletions base/src/test/java/tk/mybatis/mapper/model/UserLogin.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

package tk.mybatis.mapper.model;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import java.util.Date;

/**
Expand Down
Loading
Loading