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

TransmogirfAI build issues #189

Closed
janardh461 opened this issue Dec 3, 2018 · 2 comments
Closed

TransmogirfAI build issues #189

janardh461 opened this issue Dec 3, 2018 · 2 comments

Comments

@janardh461
Copy link

Alternatively you can disable this build feature completely by removing this line https://github.com/salesforce/TransmogrifAI/blob/master/build.gradle#L26
from your build.gradle file.

I have commented line 26 and tried to build again:. Now the build fails at line 164.
The trace is given below:

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/cuda/TransmogrifAI/build.gradle' line: 164
  • What went wrong:
    A problem occurred evaluating root project 'transmogrifai'.

Could not get unknown property 'createVersionProperties' for root project 'transmogrifai' of type org.gradle.api.Project.

In Line 164 , I find the following
Line 164:
if (System.getenv("CI") != 'true') {
jar.dependsOn(createVersionProperties)
}

I set the envirnment variable CI to false. Then I get the following error at line 231:

shadowJar.dependsOn(createVersionProperties)

The variable createVersionProperties is is required by the script. Please help me to find out the most viable solution to work around this problem,.

@tovbinm
Copy link
Collaborator

tovbinm commented Dec 5, 2018

You can completely remove the following lines from build.gradle:

  1. Line 26 - apply from: 'gradle/version-properties.gradle'
  2. Lines 163-165:
if (System.getenv("CI") != 'true') {
   jar.dependsOn(createVersionProperties)
}
  1. Line 231 - shadowJar.dependsOn(createVersionProperties)

@tovbinm
Copy link
Collaborator

tovbinm commented Dec 6, 2018

I pushed a fix to master branch to avoid failing on missing git command.

@tovbinm tovbinm closed this as completed Dec 6, 2018
@tovbinm tovbinm mentioned this issue Jul 11, 2019
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

2 participants