-
Notifications
You must be signed in to change notification settings - Fork 178
add jar build #2473
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
base: webapi-3.0
Are you sure you want to change the base?
add jar build #2473
Conversation
|
The change will break existing Dockerfile and build procedure. It should be updated: |
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.
Pull request overview
This pull request modernizes the OHDSI WebAPI project by transitioning from WAR-based deployment to an executable Spring Boot JAR with embedded Tomcat as the primary packaging format. The changes aim to simplify deployment by eliminating the need for external application servers while maintaining backward compatibility through a Maven profile for WAR packaging.
Key Changes:
- Switched default packaging from WAR to executable JAR with embedded Tomcat server
- Updated WebApi class to use standard SpringApplication.run() instead of SpringBootServletInitializer
- Added comprehensive Quick Start Guide and deployment documentation to README
- Modified Docker build to run the executable JAR directly instead of exploded WAR structure
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/main/java/org/ohdsi/webapi/WebApi.java | Removed SpringBootServletInitializer extension and WAR-specific initialization code, converting to standalone JAR application entry point |
| pom.xml | Changed packaging type from WAR to JAR, removed provided scopes from Tomcat dependencies, added WAR profile for legacy deployment support |
| README.md | Added extensive Quick Start Guide, deployment options, configuration examples, and troubleshooting sections for JAR-based deployment |
| Dockerfile | Simplified to copy and execute the JAR file directly instead of exploding WAR contents |
| .github/workflows/release.yaml | Updated to build and upload both JAR and WAR artifacts to GitHub releases |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This pull request modernizes the OHDSI WebAPI project by switching its primary packaging from a deployable WAR to an executable Spring Boot JAR with embedded Tomcat, and updates the build, Docker, and documentation accordingly. The changes simplify deployment (no external app server required), streamline configuration, and improve the developer experience. WAR packaging is still available via a Maven profile for legacy use cases.