11plugins {
22 id ' java'
33 id ' distribution'
4- id ' maven'
54 id ' idea'
65 id ' eclipse'
6+ id ' com.github.johnrengelman.shadow' version ' 6.1.0'
77}
88
99repositories {
@@ -13,28 +13,13 @@ repositories {
1313 jcenter()
1414}
1515
16- def compileDependencies = [
17- ' org.omegat:omegat:4.1.3-02' ,
18- ' commons-io:commons-io:2.4' ,
19- ' commons-lang:commons-lang:2.6'
20- ]
21-
22- def testDependencies = [
23- ' junit:junit:4.12' ,
24- ' xmlunit:xmlunit:1.6' ,
25- ' org.madlonkay.supertmxmerge:supertmxmerge:2.0.1'
26- ]
27-
2816dependencies {
17+ compileOnly ' org.omegat:omegat:5.4.1'
18+ compileOnly ' commons-io:commons-io:2.7'
19+ compileOnly ' commons-lang:commons-lang:2.6'
20+ compileOnly ' org.omegat:lib-mnemonics:1.0'
2921
30- compileDependencies. each {
31- compileOnly it
32- testImplementation it
33- }
34-
35- testDependencies. each {
36- testImplementation it
37- }
22+ implementation ' commons-cli:commons-cli:1.4'
3823}
3924
4025
@@ -47,24 +32,21 @@ jar {
4732 // plugin's main class name is defined in gradle.properties file.
4833 attributes(
4934 " OmegaT-Plugins" : pluginMainClass,
50- " Plugin-Version" : version,
35+ " Plugin-Version" : project . version,
5136 " Plugin-Name" : pluginName,
5237 " Plugin-Author" : pluginAuthor,
5338 " Plugin-Description" : pluginDescription,
5439 " Main-Class" : pluginMainClass,
5540 // Used to access the name/version inside the plugin
5641 " Implementation-Title" : pluginName,
57- " Implementation-Version" : version
42+ " Implementation-Version" : project . version
5843 )
5944 }
6045}
6146
62- artifacts {
63- archives jar
64- }
65-
66- distTar {
67- compression = Compression . GZIP
47+ shadowJar {
48+ // remove the '-all' suffix
49+ classifier = ' '
6850}
6951
7052distributions {
0 commit comments