Skip to content

Fix/core build error#8

Merged
qowlgur121 merged 2 commits into
developfrom
fix/core-build-error
Aug 11, 2025
Merged

Fix/core build error#8
qowlgur121 merged 2 commits into
developfrom
fix/core-build-error

Conversation

@Yoo-SH

@Yoo-SH Yoo-SH commented Aug 10, 2025

Copy link
Copy Markdown
Member

Summary of Changes

Fixed critical build errors preventing the application from starting properly:

  • Resolved OpenAPI version configuration issue that was causing build failures
  • Fixed JPA auditing handler duplication error in Spring configuration

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Test addition

Related Issues

Addresses build errors and database connection issues that were preventing application startup.

Testing Instructions

  1. Ensure Docker containers are running: docker-compose up -d postgres elasticsearch minio
  2. Build the application: ./gradlew clean build
  3. Run the application from IDE or using: ./gradlew bootRun
  4. Verify the application starts successfully without build errors
  5. Check that the application connects to PostgreSQL database without authentication errors

Screenshots (if applicable)

N/A - Backend configuration fixes

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Additional Notes

  • Fixed OpenAPI version build error that was preventing compilation
  • Resolved JpaAuditingHandler duplication issue in Spring configuration
  • These changes are essential for the application to start and run properly in the development environment
  • All Docker services (PostgreSQL, Elasticsearch, MinIO) are now properly accessible from the application

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes critical build errors that were preventing the application from starting properly. The changes address two main issues: an OpenAPI version configuration problem and a JPA auditing handler duplication error in Spring configuration.

  • Downgraded SpringDoc OpenAPI from version 2.7.0 to 2.6.0 to resolve build failures
  • Removed @EnableJpaAuditing annotation from the main application class to fix Spring configuration duplication

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
core/build.gradle Downgraded SpringDoc OpenAPI version from 2.7.0 to 2.6.0
core/src/main/java/com/opencontext/OpenContextApplication.java Removed @EnableJpaAuditing annotation and its import

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.scheduling.annotation.EnableAsync;

Copilot AI Aug 10, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The removal of @EnableJpaAuditing suggests it's configured elsewhere to avoid duplication. Consider adding a comment explaining where JPA auditing is configured instead, to help future developers understand the application's auditing setup.

Suggested change
// Note: JPA auditing is enabled in AuditingConfig.java to avoid duplication of @EnableJpaAuditing.

Copilot uses AI. Check for mistakes.
@qowlgur121
qowlgur121 merged commit 4348552 into develop Aug 11, 2025
@Yoo-SH Yoo-SH mentioned this pull request Aug 21, 2025
53 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants