这是我的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
,但是:
如您所见,我得到了:
在build / libs / frontoffice.jar中没有主清单属性
有什么想法吗?
答案 0 :(得分:0)
默认情况下,jar
任务不会生成任何清单。将此添加到您的build.gradle
中:
jar {
manifest {
attributes(
'Main-Class': 'package.of.YourMainClass'
)
}
}