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

The 'version.json' file is being created in the wrong path #38

Open
mainmethod0126 opened this issue Oct 31, 2023 · 0 comments
Open

The 'version.json' file is being created in the wrong path #38

mainmethod0126 opened this issue Oct 31, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mainmethod0126
Copy link
Owner

The version.json file should be created in the project root directory, but it is currently being created in the app folder.

Previously, the new SemanticVersionFile(versionFilePath); statement was executed in the BuildAndVersioning.init() function. However, in the current version, the new SemanticVersionFile(versionFilePath); statement is executed in the BuildAndVersioning constructor. This means that the file is created immediately in the BuildAndVersioning buildAndVersioning = project.getTasks().create("BuildAndVersioning",BuildAndVersioning.class); statement. The path at this point is the path of the build.gradle file. To fix this, we need to change the code so that the new SemanticVersionFile(versionFilePath); statement is executed in the buildAndVersioning.doExcute() method, as it was in the previous version.

image

image

image

@mainmethod0126 mainmethod0126 added the bug Something isn't working label Oct 31, 2023
@mainmethod0126 mainmethod0126 self-assigned this Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant