fix: missing publish plugin for boot 4 support module #1003
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
[English]
The
spring-data-jpa-boot4-supportmodule failed to publish because thecloseAndReleaseStagingRepositorytask was missing.Initially, I thought this was due to a lack of publish permissions, but upon further investigation, I discovered that the
nexus-publishplugin and its configuration were missing in the module's build script.Additionally, the module lacked its own Gradle wrapper, which caused inconvenience when opening it as a standalone project in an IDE.
This PR fixes the configuration to enable proper publishing and improves IDE compatibility.
[Korean]
spring-data-jpa-boot4-support모듈 배포 시closeAndReleaseStagingRepository태스크를 찾을 수 없어 실패하는 문제가 있었습니다.처음에는 publish 권한이 없어서 발생한 문제인 줄 알았으나, 확인해 보니 해당 모듈의 빌드 스크립트에
nexus-publish플러그인과 관련 설정이 누락된 것이 원인이었습니다.또한, 해당 모듈에 Gradle wrapper가 포함되어 있지 않아 IDE에서 독립적인 프로젝트로 열 때 불편함이 있었습니다.
이에 정상적인 배포가 가능하도록 설정을 수정하고, IDE 호환성을 개선하였습니다.
Modifications
[English]
nexus-publishplugin tosupport/spring-data-jpa-boot4/build.gradle.kts.nexusPublishingblock insupport/spring-data-jpa-boot4/build.gradle.ktsto support Sonatype staging repositories.gradlew,gradle-wrapper.jar, etc.) tosupport/spring-data-jpa-boot4/for better IDE support and standalone build capability.libs.versions.toml.[Korean]
support/spring-data-jpa-boot4/build.gradle.kts에nexus-publish플러그인을 적용했습니다.support/spring-data-jpa-boot4/build.gradle.kts에 Sonatype 스테이징 리포지토리 지원을 위한nexusPublishing설정을 추가했습니다.support/spring-data-jpa-boot4/경로에 Gradle Wrapper 파일들(gradlew,gradle-wrapper.jar등)을 추가했습니다.libs.versions.toml에 JUnit 6 의존성을 추가했습니다.Result
[English]
The
closeAndReleaseStagingRepositorytask is now correctly recognized.Also, the project can be correctly recognized by the IDE.
I have attached the execution result of the Gradle task in the screenshot below.
[Korean]
이제
closeAndReleaseStagingRepository태스크가 정상적으로 인식되는 것을 확인했습니다.또한, IDE에서도 프로젝트가 정상적으로 인식됩니다.
Gradle task 수행 결과는 아래 스크린샷으로 첨부합니다.