Commit 9a5e7c9
authored
Unified release workflow for shaded and thin JARs (#1073)
## Summary
This PR implements a unified release workflow that publishes both the
shaded uber JAR and thin JAR to Maven Central in a single GitHub Actions
workflow.
## Changes
1. **Added `build-helper-maven-plugin`** to `pom.xml`:
- Attaches the unshaded JAR with `-thin` classifier before the shade
plugin runs
- Preserves the original JAR as `databricks-jdbc-${VERSION}-thin.jar`
2. **Updated `.github/workflows/release.yml`**:
- Added GPG configuration for signing
- Kept existing step to deploy shaded JAR (main artifact)
- Added new step to deploy thin JAR as separate artifact with custom POM
3. **Removed `.github/workflows/release-thin.yml`**:
- No longer needed - both JARs now published in single unified workflow
## Published Artifacts
- **Shaded JAR**: `com.databricks:databricks-jdbc:3.0.1` (37MB, includes
all dependencies)
- **Thin JAR**: `com.databricks:databricks-jdbc-thin:3.0.1` (2.4MB,
driver classes only)
## Testing
```bash
mvn clean && mvn -B -DskipTests package
# Verified both JARs created successfully:
# - target/databricks-jdbc-3.0.1.jar (37MB shaded)
# - target/databricks-jdbc-3.0.1-thin.jar (2.4MB thin)
```
## Backward Compatibility
✅ Existing users are unaffected - the main artifact remains the shaded
uber JAR
---
NO_CHANGELOG=true
---------
Signed-off-by: Gopal Lal <gopal.lal@databricks.com>1 parent 5d10d37 commit 9a5e7c9
3 files changed
Lines changed: 51 additions & 69 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
| |||
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
42 | 66 | | |
43 | 67 | | |
44 | 68 | | |
45 | 69 | | |
46 | | - | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
477 | 501 | | |
478 | 502 | | |
479 | 503 | | |
| |||
0 commit comments