Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No value has been specified for property 'mainClassName' #628

Closed
filtastisch opened this issue Jan 2, 2021 · 1 comment
Closed

No value has been specified for property 'mainClassName' #628

filtastisch opened this issue Jan 2, 2021 · 1 comment

Comments

@filtastisch
Copy link

filtastisch commented Jan 2, 2021

I'm trying to build an executable Jar with ShadowJar, but everytime it throws the error:

A problem was found with the configuration of task ':shadowJar' (type 'ShadowJar').
> No value has been specified for property 'mainClassName'.

So, i really dont know what to do.
Here my build.grandle:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
    }
}

plugins {
    id 'java'
    id 'application'
    id 'com.github.johnrengelman.shadow' version '2.0.4'
}

mainClassName = "de.filtastisch.discord.beatbot.Main"

group 'de.filtastisch.discord'
version '1.0-SNAPSHOT'

sourceCompatibility = 1.8

repositories {
    mavenCentral()
    jcenter()
}

dependencies {
    compile 'net.dv8tion:JDA:4.2.0_225'
}
@sergeykad
Copy link

Duplicate of #609

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants