Skip to content

Commit 8894ba3

Browse files
committed
Add manifest with main class to built jar
1 parent 1e363a1 commit 8894ba3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'java'
3+
id 'application'
34
id 'eclipse'
45
}
56

@@ -16,6 +17,12 @@ dependencies {
1617
implementation 'org.json:json:20220924'
1718
}
1819

20+
jar {
21+
manifest {
22+
attributes('Main-Class': 'lbq.jsongen.Main')
23+
}
24+
}
25+
1926
artifacts {
2027
archives jar
2128
}

0 commit comments

Comments
 (0)