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

Gradle - Allow not using the -b parameter #631

Merged
merged 2 commits into from Feb 21, 2022

Conversation

yahavi
Copy link
Member

@yahavi yahavi commented Feb 14, 2022


Resolves #583

Backgroud
-b flag is depracated and will be removed in Gradle 8.

The problem
There are 2 path parameters provided to the user: rootDir and buildFile.
Currently, the Jenkins Artifactory plugin concatenates them to 1 path variable and passes it to Gradle as the following:
gradle clean aP -b <rootDir>/<buildFile>.
No matter what, it always provides the -b parameter to Gradle.

The solution
Use the -b parameter for buildFile and -p parameter for rootDir:
gradle clean ap -b <buildFile> -p <rootDir>.
This way, when the buildFile parameter doesn't being provided, the -b flag is not in use.
Users who want to migrate to Gradle 8, just need to make sure to not provide the buildFile parameter, because it same as running gradle with -b.

@yahavi yahavi merged commit 4474e00 into jfrog:master Feb 21, 2022
@yahavi yahavi deleted the optional-gradle-build branch February 21, 2022 15:31
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

Successfully merging this pull request may close these issues.

Gradle 8 depreciates the build file location
2 participants