Jakarta EE 9 migration
Upgrades many dependency declarations; removes old EJB 2.x support and outdated Servlet-based integrations (Commons FileUpload, FreeMarker JSP support, Tiles). Closes gh-22093 Closes gh-25354 Closes gh-26185 Closes gh-27423 See gh-27424
This commit is contained in:
@@ -49,7 +49,7 @@ class StandardStereotypesProvider implements StereotypesProvider {
|
||||
}
|
||||
for (AnnotationMirror annotation : this.typeHelper.getAllAnnotationMirrors(element)) {
|
||||
String type = this.typeHelper.getType(annotation);
|
||||
if (type.startsWith("javax.")) {
|
||||
if (type.startsWith("jakarta.")) {
|
||||
stereotypes.add(type);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,14 +21,13 @@ import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Path;
|
||||
|
||||
import javax.annotation.ManagedBean;
|
||||
import javax.inject.Named;
|
||||
import javax.persistence.Converter;
|
||||
import javax.persistence.Embeddable;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.MappedSuperclass;
|
||||
import javax.transaction.Transactional;
|
||||
|
||||
import jakarta.annotation.ManagedBean;
|
||||
import jakarta.inject.Named;
|
||||
import jakarta.persistence.Converter;
|
||||
import jakarta.persistence.Embeddable;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.MappedSuperclass;
|
||||
import jakarta.transaction.Transactional;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.context.index.sample.cdi;
|
||||
|
||||
import javax.annotation.ManagedBean;
|
||||
import jakarta.annotation.ManagedBean;
|
||||
|
||||
/**
|
||||
* Test candidate for a CDI {@link ManagedBean}.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.context.index.sample.cdi;
|
||||
|
||||
import javax.inject.Named;
|
||||
import jakarta.inject.Named;
|
||||
|
||||
/**
|
||||
* Test candidate for a CDI {@link Named} bean.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.context.index.sample.cdi;
|
||||
|
||||
import javax.transaction.Transactional;
|
||||
import jakarta.transaction.Transactional;
|
||||
|
||||
/**
|
||||
* Test candidate for {@link Transactional}. This verifies that the annotation processor
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.context.index.sample.jpa;
|
||||
|
||||
import javax.persistence.Converter;
|
||||
import jakarta.persistence.Converter;
|
||||
|
||||
/**
|
||||
* Test candidate for {@link Converter}.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.context.index.sample.jpa;
|
||||
|
||||
import javax.persistence.Embeddable;
|
||||
import jakarta.persistence.Embeddable;
|
||||
|
||||
/**
|
||||
* Test candidate for {@link Embeddable}.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.context.index.sample.jpa;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import jakarta.persistence.Entity;
|
||||
|
||||
/**
|
||||
* Test candidate for {@link Entity}.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.context.index.sample.jpa;
|
||||
|
||||
import javax.persistence.MappedSuperclass;
|
||||
import jakarta.persistence.MappedSuperclass;
|
||||
|
||||
/**
|
||||
* Test candidate for {@link MappedSuperclass}.
|
||||
|
||||
Reference in New Issue
Block a user