-
Notifications
You must be signed in to change notification settings - Fork 51
Update to Platform 2.7.3 and Support Java 21 #13
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| <parent> | ||
| <groupId>org.openmrs.module</groupId> | ||
| <artifactId>calculation</artifactId> | ||
| <version>1.3.1-SNAPSHOT</version> | ||
| <version>2.0.0-SNAPSHOT</version> | ||
| </parent> | ||
|
|
||
| <artifactId>calculation-omod</artifactId> | ||
|
|
@@ -71,6 +71,13 @@ | |
|
|
||
| <!-- End OpenMRS core --> | ||
|
|
||
| <dependency> | ||
| <groupId>org.openmrs.module</groupId> | ||
| <artifactId>legacyui-omod</artifactId> | ||
| <version>1.22.0</version> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't we add scope? |
||
| <scope>provided</scope> | ||
| </dependency> | ||
|
|
||
| </dependencies> | ||
|
|
||
| <build> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
|
|
||
| <groupId>org.openmrs.module</groupId> | ||
| <artifactId>calculation</artifactId> | ||
| <version>1.3.1-SNAPSHOT</version> | ||
| <version>2.0.0-SNAPSHOT</version> | ||
| <packaging>pom</packaging> | ||
| <name>Calculation</name> | ||
| <description>Provides a framework for OpenMRS developers to author simple or complex calculations to produce a particular piece of data for a single patient or a cohort of patients</description> | ||
|
|
@@ -34,9 +34,9 @@ | |
| </modules> | ||
|
|
||
| <properties> | ||
| <openMRSVersion>1.9.9</openMRSVersion> | ||
| <openMRSVersion>2.7.3</openMRSVersion> | ||
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| <groovyVersion>1.8.7</groovyVersion> | ||
| <groovyVersion>2.4.21</groovyVersion> | ||
| </properties> | ||
|
|
||
| <dependencyManagement> | ||
|
|
@@ -89,20 +89,12 @@ | |
| </dependency> | ||
|
|
||
| <!-- End OpenMRS core --> | ||
|
|
||
| <dependency> | ||
| <groupId>org.mockito</groupId> | ||
| <artifactId>mockito-all</artifactId> | ||
| <version>1.8.5</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>org.codehaus.groovy</groupId> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason why you changed it from
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, org.codehaus.groovy has been relocated to org.apache.groovy. https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-all
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which one are we using in platform 2.7.3?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. org.codehaus.groovy:2.4.21. Should I update it there or remove it from here?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can update the one in core
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you also update the version? |
||
| <artifactId>groovy-all</artifactId> | ||
| <version>${groovyVersion}</version> | ||
| <type>jar</type> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The same goes for changing jar to pom
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| <scope>provided</scope> | ||
wikumChamith marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <type>jar</type> | ||
| </dependency> | ||
|
|
||
| </dependencies> | ||
|
|
@@ -115,8 +107,8 @@ | |
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <configuration> | ||
| <target>1.6</target> | ||
| <source>1.6</source> | ||
| <target>21</target> | ||
| <source>21</source> | ||
| </configuration> | ||
| </plugin> | ||
| <plugin> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find this to be a very inefficient replacement when compared to the original implementation: https://github.com/openmrs/openmrs-core/blob/1.12.x/api/src/main/java/org/openmrs/api/db/hibernate/HibernatePatientSetDAO.java#L1092-L1141
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we update this to do a Hibernate query?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whatever you find better than the current code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dkayiwa, does performance matter much in this case since it's only used in tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a very good point and you are indeed correct. 😊