@@ -3,50 +3,22 @@ plugins {
3
3
id ' distribution'
4
4
id ' idea'
5
5
id ' eclipse'
6
- id ' com.github.johnrengelman.shadow ' version ' 6.1.0 '
6
+ id " org.omegat.gradle " version " 1.4.2 "
7
7
}
8
8
9
- repositories {
10
- maven {
11
- url " https://dl.bintray.com/omegat-org/maven"
12
- }
13
- jcenter()
14
- }
15
-
16
- dependencies {
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'
21
-
22
- implementation ' commons-cli:commons-cli:1.4'
9
+ omegat {
10
+ version = " 5.4.1"
11
+ pluginClass = pluginMainClass
23
12
}
24
13
14
+ sourceCompatibility = JavaVersion . VERSION_1_8
15
+ targetCompatibility = JavaVersion . VERSION_1_8
25
16
26
- tasks. withType(JavaCompile ) {
27
- options. compilerArgs << " -Xlint:deprecation" << " -Xlint:unchecked"
28
- }
29
-
30
- jar {
31
- manifest {
32
- // plugin's main class name is defined in gradle.properties file.
33
- attributes(
34
- " OmegaT-Plugins" : pluginMainClass,
35
- " Plugin-Version" : project. version,
36
- " Plugin-Name" : pluginName,
37
- " Plugin-Author" : pluginAuthor,
38
- " Plugin-Description" : pluginDescription,
39
- " Main-Class" : pluginMainClass,
40
- // Used to access the name/version inside the plugin
41
- " Implementation-Title" : pluginName,
42
- " Implementation-Version" : project. version
43
- )
44
- }
45
- }
46
-
47
- shadowJar {
48
- // remove the '-all' suffix
49
- classifier = ' '
17
+ dependencies {
18
+ packIntoJar ' commons-cli:commons-cli:1.4'
19
+ implementation ' commons-io:commons-io:2.7'
20
+ implementation ' commons-lang:commons-lang:2.6'
21
+ implementation ' org.omegat:lib-mnemonics:1.0'
50
22
}
51
23
52
24
distributions {
0 commit comments