Gradle build fails for jhipster microservice application. Reason:
* Where:
Script '<cut>/xxxxx/gradle/profile_dev.gradle' line: 28
* What went wrong:
A problem occurred evaluating script.
> Could not find property 'GulpTask' on root project 'xxxxx'.
Since you cannot run gradle build (even gradle clean), it's obviously blocker type of error.
JHipster Generator v3.1.0
.yo-rc.json
file generated in the root folder{
"generator-jhipster": {
"jhipsterVersion": "3.1.0",
"baseName": "jhipsteruservice1",
"packageName": "com.mycompany.myapp",
"packageFolder": "com/mycompany/myapp",
"serverPort": "10001",
"authenticationType": "jwt",
"hibernateCache": "no",
"databaseType": "no",
"devDatabaseType": "no",
"prodDatabaseType": "no",
"searchEngine": "no",
"buildTool": "gradle",
"jwtSecretKey": "<cut>",
"enableTranslation": false,
"applicationType": "microservice",
"testFrameworks": [],
"jhiPrefix": "jhi",
"skipClient": true,
"skipUserManagement": true,
"clusteredHttpSession": "no",
"websocket": "no",
"enableSocialSignIn": false
}
}
entityName.json
files generated in the .jhipster
directoryNo entity generated
cat /etc/*-release:
Fedora release 23 (Twenty Three)
NAME=Fedora
VERSION="23 (Twenty Three)"
ID=fedora
VERSION_ID=23
PRETTY_NAME="Fedora 23 (Twenty Three)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:23"
HOME_URL="https://fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=23
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=23
PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy
Fedora release 23 (Twenty Three)
Fedora release 23 (Twenty Three)
Browser not involved here
Steps:
which generates error described above
Since I'm not aware of full jhipster generation process, I cannot provide 100% correct suggestion, but i guess that, since it's uService generator, you don't need Gulp part so fix would be or delete gulpConstantDev task on line 28 together with line 46 (gradle/profile_dev.gradle) or to apply proper gulp plugin if it's needed for overall.
Thx
Ok ill take look. I guess there ia PR open which should fix this
@deepu105 I fixed it some time ago, but maybe there is something different when using microservices I didn't see.
@atomfrede i compare to gradle/profile_pord.gradle, there is no gulpTask, so i delete gulpTask in profile_dev.gradle. i think you maybe just forgot to delete gulpTask on microservice application generation.
@xjiaoyang It is fixed in latest master. Gulp Task is only added to profile_dev.gradle
if skipClient
equals false
.
Most helpful comment
@deepu105 I fixed it some time ago, but maybe there is something different when using microservices I didn't see.