Skip to content

Commit 7cb9362

Browse files
authored
Merge pull request #9 from y-ok/fix/release-0.2.0-plugin-publish
fix: publish plugin artifact for 0.2.0 release
2 parents 476c957 + c2149ac commit 7cb9362

2 files changed

Lines changed: 34 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ jobs:
5858
server-username: GITHUB_ACTOR
5959
server-password: GITHUB_TOKEN
6060

61-
- name: Build and deploy Maven package
62-
run: mvn -B clean deploy -Dmaven.test.skip=true -pl flexdblink
61+
- name: Build and deploy Maven packages
62+
run: mvn -B clean deploy -Dmaven.test.skip=true
6363
env:
6464
GITHUB_ACTOR: ${{ github.actor }}
6565
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,25 @@ dump:
409409

410410
---
411411

412+
## Published Maven Artifacts
413+
414+
This repository publishes Maven artifacts via GitHub Packages for `y-ok/FlexDBLink`.
415+
Configure GitHub Packages access for this repository in your build environment before resolving these artifacts.
416+
Package overview: [GitHub Packages](https://github.com/y-ok?tab=packages&repo_name=FlexDBLink)
417+
418+
| Artifact | Purpose | Notes |
419+
| ----- | ----- | ----- |
420+
| `io.github.yok:flexdblink` | Core library artifact with the JUnit 5 extension (`@LoadData`) | Use this dependency when consuming FlexDBLink from tests or Spring-based test suites |
421+
| `io.github.yok:flexdblink-maven-plugin` | Maven plugin artifact for `load` / `dump` | Use this artifact inside Maven plugin configuration |
422+
423+
---
424+
412425
## Maven Plugin (`flexdblink-maven-plugin`)
413426

427+
`flexdblink-maven-plugin` is a published GitHub Packages artifact for this repository. Use the plugin
428+
coordinates shown in the `POM Plugin Example` section below, and make sure GitHub Packages access is
429+
configured in your build environment before resolving the plugin.
430+
414431
FlexDBLink can also be used as a Maven plugin wrapper for `load` and `dump`, while reusing the
415432
existing core logic (`DataLoader` / `DataDumper`).
416433

@@ -502,6 +519,21 @@ If needed, also run `Maven: Reload Projects`.
502519

503520
## JUnit 5 Extension (`@LoadData`)
504521

522+
### Maven Dependency
523+
524+
`io.github.yok:flexdblink` is the published artifact that provides the JUnit 5 extension. Resolve
525+
this dependency from GitHub Packages for this repository after configuring GitHub Packages access in
526+
your build environment.
527+
528+
```xml
529+
<dependency>
530+
<groupId>io.github.yok</groupId>
531+
<artifactId>flexdblink</artifactId>
532+
<version>${flexdblink.version}</version>
533+
<scope>test</scope>
534+
</dependency>
535+
```
536+
505537
Simply annotate your test with `@LoadData` to automatically inject the dataset before the test and roll it back on completion.
506538
This integrates with Spring Test transaction management (`@Transactional`), ensuring the DB state is reliably restored after each test method.
507539

0 commit comments

Comments
 (0)