Skip to content

Commit

Permalink
update to jakarta
Browse files Browse the repository at this point in the history
  • Loading branch information
pahjbo committed Aug 14, 2023
1 parent af512b7 commit 8d16f27
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import org.gradle.kotlin.dsl.accessors.runtime.addDependencyTo

plugins {
id("net.ivoa.vo-dml.vodmltools") version "0.3.24"
id("net.ivoa.vo-dml.vodmltools") version "0.4.0"
`maven-publish`
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
signing
}

group = "org.javastro.ivoa.dm"
version = "0.3.3-SNAPSHOT"
version = "0.4.0-SNAPSHOT"


vodml {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import java.util.List;

import javax.xml.bind.JAXBException;
import jakarta.xml.bind.JAXBException;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
Expand Down Expand Up @@ -96,7 +96,7 @@ void proposalDmJPATest() {

}
protected ObservingProposal propDbInOut() {
javax.persistence.EntityManager em = setupH2Db(ProposalModel.pu_name());
jakarta.persistence.EntityManager em = setupH2Db(ProposalModel.pu_name());
em.getTransaction().begin();
final ObservingProposal proposal = ex.getProposal();
proposal.persistRefs(em);
Expand Down Expand Up @@ -142,7 +142,7 @@ void reviewJaxbTest() throws JAXBException,

@org.junit.jupiter.api.Test
void reviewDmJPATest() {
javax.persistence.EntityManager em = setupH2Db(ProposalModel.pu_name());
jakarta.persistence.EntityManager em = setupH2Db(ProposalModel.pu_name());
em.getTransaction().begin();

final ProposalCycle cycle = ex.getCycle();
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/org/ivoa/dm/proposal/prop/DataGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import java.util.HashMap;
import java.util.Map;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import jakarta.persistence.EntityManager;
import jakarta.persistence.EntityManagerFactory;
import jakarta.persistence.Persistence;

/**
* Creates some test data that can be imported via sql.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void testObservations() {
@org.junit.jupiter.api.Test
public void testDbCreate() {

javax.persistence.EntityManager em = setupH2Db(ProposalModel.pu_name());
jakarta.persistence.EntityManager em = setupH2Db(ProposalModel.pu_name());
em.getTransaction().begin();
final ObservingProposal proposal = ex.getProposal();
proposal.persistRefs(em);
Expand Down

0 comments on commit 8d16f27

Please sign in to comment.