Skip to content
This repository was archived by the owner on May 12, 2022. It is now read-only.

Commit 80a3284

Browse files
committed
assemble.gradle now sets default mainClassName if not provided.
1 parent 7fde0d6 commit 80a3284

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ apply plugin: 'idea'
2020
apply plugin: 'signing'
2121
apply plugin: 'propsUtil'
2222

23-
mainClassName = [group, project.name, 'Main'].join('.')
24-
2523
apply from: 'project/util.gradle'
2624
apply from: 'project/assemble.gradle'
2725
apply from: 'project/scala.gradle'

project/assemble.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
sourceCompatibility = JavaVersion.VERSION_1_7
22
targetCompatibility = JavaVersion.VERSION_1_7
33

4+
if (hasProperty('mainClassName') && !property('mainClassName')) {
5+
mainClassName = [group, project.name, 'Main'].join('.')
6+
}
7+
48
ext.sharedManifest = manifest {
59
attributes \
610
'Implementation-Title': project.name,

0 commit comments

Comments
 (0)