Skip to content

Commit aaa353d

Browse files
committed
Use shadow jar
1 parent 8894ba3 commit aaa353d

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/update.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: |
4141
cd BetterJSONs
4242
git pull
43-
java -jar ../build/libs/versionjsons-1.0.jar --update --path .
43+
java -jar ../build/libs/versionjsons-1.0-all.jar --update --path .
4444
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
4545
git config --global user.email "${{ env.CI_COMMIT_EMAIL }}"
4646
if [[ `git status --porcelain --untracked-files=no` ]]; then

build.gradle

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'java'
3+
id 'com.gradleup.shadow' version '8.3.0'
34
id 'application'
45
id 'eclipse'
56
}
@@ -12,15 +13,10 @@ group = 'lbq'
1213
archivesBaseName = 'versionjsons'
1314
version = '1.0'
1415
sourceCompatibility = 1.8
16+
mainClassName = 'lbq.jsongen.Main'
1517

1618
dependencies {
17-
implementation 'org.json:json:20220924'
18-
}
19-
20-
jar {
21-
manifest {
22-
attributes('Main-Class': 'lbq.jsongen.Main')
23-
}
19+
shadow 'org.json:json:20220924'
2420
}
2521

2622
artifacts {

0 commit comments

Comments
 (0)