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

Build failure with message "Could not get unknown property 'gpr.user' for root project 'mbeddr.formal'" #72

Open
ahmedwaqar opened this issue Apr 26, 2023 · 9 comments

Comments

@ahmedwaqar
Copy link

I clone the repo and started to build by executing ./gradlew at the terminal and the build fails with the following message:

Configure project :
Local build detected, version will be SNAPSHOT

FAILURE: Build failed with an exception.

  • Where:
    Build file '<Local_PATH_omitted>/mbeddr.formal/build.gradle.kts' line: 128

  • What went wrong:
    Could not get unknown property 'gpr.user' for root project 'mbeddr.formal' of type org.gradle.api.Project.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 328ms_

@ratiud
Copy link
Contributor

ratiud commented Apr 27, 2023

you need to configure gradle.properties as described in the readme.md - https://github.com/mbeddr/mbeddr.formal/blob/master/README.md

you also need to set in gradle.properties the following two variables (defined also in gradle.properties.example)

github_username=
github_token=

@ahmedwaqar
Copy link
Author

The build fails with the same error message after specifying the GitHub credentials. Is there a way I can debug the build file.

@danielratiu
Copy link
Member

danielratiu commented Apr 27, 2023 via email

@ahmedwaqar
Copy link
Author

Thanks. Now I got the following error:

Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

Configure project :
Local build detected, version will be SNAPSHOT

Task :build_allScripts FAILED
Buildfile: /home/waqar/Documents/misc/tools/mbeddr.formal/build/scripts/build_all_scripts.xml
Trying to override old definition of datatype module

BUILD FAILED
/home/waqar/Documents/misc/tools/mbeddr.formal/build/scripts/build_all_scripts.xml:48: Problem: failed to create task or type generator-settings
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.

Total time: 0 seconds

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':build_allScripts'.

Process 'command '/usr/lib/jvm/jdk-11/bin/java'' finished with non-zero exit value 1

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 4s
5 actionable tasks: 3 executed, 2 up-to-date

@danielratiu
Copy link
Member

danielratiu commented Apr 27, 2023 via email

@ahmedwaqar
Copy link
Author

ahmedwaqar commented Apr 28, 2023

Thanks. I was using MPS_2021.2 as instructed in the README. However, when I changed to MPS_2021_3_2 the build is successful. After that, I followed the instruction with MPS and set the path variable mbeddr.formal.home to the cloned repo. When building the com.mpsbasic, I got the following error:

Java library jar should be extracted into build script: ${mpsbasics.code}/solutions/com.mpsbasics.docx4j.lib/lib/checker-qual-2.8.1.jar
-- -- was input node: [modules] BuildMps_Solution "com.mpsbasics.docx4j.lib"[4653181259421558709] in com.mpsbasics.build.build@0
-- was template node: r:54537613-52b5-40a8-b223-e87f0960b04f(jetbrains.mps.build.mps.generator.template.main@generator)/3189788309732145594
Java library jar should be extracted into build script: ${mpsbasics.code}/solutions/com.mpsbasics.docx4j.lib/lib/commons-compress-1.21.jar

@danielratiu
Copy link
Member

danielratiu commented Apr 28, 2023 via email

@ahmedwaqar
Copy link
Author

Okay. I can open the tutorial project and browse through the code. However, I couldn't get the same FASTEN environment and features as in First steps and the integration of NuSMV when starting MPS.

Is this environment only available for Windows? It appears that I may have to switch to Windows to get going with FASTEN.

@danielratiu
Copy link
Member

danielratiu commented Apr 28, 2023 via email

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