diff --git a/build.gradle b/build.gradle index a0fa137..8349ec5 100644 --- a/build.gradle +++ b/build.gradle @@ -7,20 +7,20 @@ buildscript { jcenter() } dependencies { + classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4' classpath 'org.junit.platform:junit-platform-gradle-plugin:1.1.1' } } -// Warns: "- No value has been specified for property 'mainClassName'." -// Fix pending: https://github.com/johnrengelman/shadow/issues/336 -plugins { - id 'com.github.johnrengelman.shadow' version '2.0.3' -} - apply plugin: 'application' apply plugin: 'checkstyle' apply plugin: 'org.junit.platform.gradle.plugin' +// Warns: "- No value has been specified for property 'mainClassName'." +// Fix pending: https://github.com/johnrengelman/shadow/issues/336 +mainClassName = 'nl.knaw.huygens.lobsang.Server' +apply plugin: 'com.github.johnrengelman.shadow' + repositories { jcenter() } @@ -54,7 +54,6 @@ checkstyle { version = "${gitTag}" group = 'nl.knaw.huygens.lobsang' -mainClassName = 'nl.knaw.huygens.lobsang.Server' sourceCompatibility = 1.8 targetCompatibility = 1.8