license agreement question in gradle build

when trying to run a cuba project in a ci environment, there is an input prompt that the license agreement should be accepted - which lets the build fail:

[ant:input] ================================================================
[ant:input] Do you accept the terms of CUBA license agreement
[ant:input] published at ?
[ant:input] (Y - yes, N - no)
[ant:input] ================================================================
:app-core:assemble FAILED
FAILURE: Build failed with an exception.
* What went wrong:
1 warning
:app-core:compileGroovywarning: Supported source version 'RELEASE_6' from annotation processor 'org.apache.openjpa.persistence.meta.AnnotationProcessor6' less than -source '1.7'
1 warning
:app-core:processResources UP-TO-DATE
:app-core:sourceJar UP-TO-DATE
Execution failed for task ':app-core:assemble'.
> No such property: licenseAgreement for class: org.gradle.api.internal.project.DefaultAntBuilder
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 9.76 secs

Do you guys know about any flag that tells gradle to auto answer these kind of user inputs? I did not find a lot about this in the net, only some strage SO entries:

where i’m not really aware of how to get this going with gradle (because the answers are for plain ant)?
You probably solved this issue aready for a ci env, right?

a little hint would be great.


1 Like

Just create the ~/.haulmont/ file with the content:


Sorry for that, we’ll put it in the docs.

thanks, that worked! (i had the same problem :slight_smile: )

Hello Konstantin,

thanks, it worked well. Strangely enough, at another hosted ci service (, that i tried - it worked out off the box, without creating the file.


it worked out off the box
Really strange, maybe you had run the build manually before?

BTW, we’ve included this info to the docs.