kumuluzee:无主要表现

时间:2019-03-27 14:54:32

标签: gradle java-ee microprofile kumuluzee

这是我的build.gradle

plugins {
    id: 'java'
}

dependencies {
    implementation 'com.kumuluz.ee:kumuluzee-core:3.1.0'
    implementation 'com.kumuluz.ee:kumuluzee-servlet-jetty:3.1.0'
    implementation 'com.kumuluz.ee:kumuluzee-microProfile-1.2:3.1.0'
    implementation 'com.kumuluz.ee:kumuluzee-jpa-hibernate:3.1.0'
    implementation 'com.kumuluz.ee:kumuluzee-bean-validation-hibernate-validator:3.1.0'
}

我成功运行了gradle build,但是:

enter image description here

如您所见,我得到了:

  

在build / libs / frontoffice.jar中没有主清单属性

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

默认情况下,jar任务不会生成任何清单。将此添加到您的build.gradle中:

jar {
    manifest {
        attributes(
            'Main-Class': 'package.of.YourMainClass'
        )
    }
}