Skip to content

Commit e897730

Browse files
committed
Fix build.gradle file for new Gradle version
1 parent 9067795 commit e897730

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

build.gradle

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
plugins {
22
id 'java'
3+
id 'application'
34
}
45

5-
group 'ru.exlmoto.jiconcreator'
6-
version '1.0'
7-
8-
sourceCompatibility = 1.8
6+
group = 'ru.exlmoto.jiconcreator'
7+
version = '1.0'
8+
sourceCompatibility = '1.8'
99

1010
repositories {
1111
jcenter()
1212
google()
13+
mavenCentral()
1314
}
1415

15-
// Create the "fat" JAR-package with all dependencies
16+
mainClassName = 'ru.exlmoto.jiconcreator.JIconCreatorGui'
17+
1618
jar {
1719
manifest {
18-
attributes 'Main-Class': 'ru.exlmoto.jiconcreator.JIconCreatorGui'
19-
}
20-
from {
21-
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
20+
attributes 'Main-Class': mainClassName
2221
}
2322
}

0 commit comments

Comments
 (0)