Skip to content

some options moved from gradle.properties to GRADLE_OPTS #1470 #1472

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

Merged
merged 19 commits into from
Jan 26, 2023

Conversation

bissquit
Copy link
Member

@bissquit bissquit commented Dec 7, 2022

Description

org.gradle.daemon=false - moved to GRADLE_OPTS but this option is not needed because we explicitly run gradle with --no-daemon option. Should I remove --no-daemon or leave it as is?
org.gradle.parallel=false - moved to GRADLE_OPTS
kotlin.compiler.execution.strategy=in-process - moved to GRADLE_OPTS
org.gradle.caching=false - removed completely because we don't have caches on runners by default. To obtain cache we should use actions/cache@v3 and in those cases we explicitly run gradle with --build-cache option

Fixes #1470

Type of Change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Regression and integration tests

No tests needed

Automated Testing

Run workflow from a branch

Manual Scenario

Not applicable

Checklist (remove irrelevant options):

  • check automatic tests result
  • run additional tests if needed

@bissquit bissquit self-assigned this Dec 7, 2022
org.gradle.jvmargs="-XX:MaxHeapSize=6144m"
kotlin.compiler.execution.strategy=in-process
org.gradle.caching=false

# configuration for local compilation - much faster
#org.gradle.daemon=true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we enable the properties and overload them as Gradle environment options?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GRADLE_OPTS environment variable has lower priority than gradle.properties file

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should use GRADLE_OPTS here if they present?

@denis-fokin denis-fokin self-requested a review December 16, 2022 12:08
@denis-fokin denis-fokin marked this pull request as draft December 16, 2022 12:08
# overrided by some parameters in CI, read below about each option

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Overriden", not "overrided"

@bissquit bissquit marked this pull request as ready for review January 23, 2023 11:12
…egor-vasiliev/1470-move-gradle-properties
@alisevych alisevych added comp-infrastructure Infrastructure issues ctg-bug-fix PR is fixing a bug labels Jan 24, 2023
…egor-vasiliev/1470-move-gradle-properties
Copy link
Member

@viktoriia-fomina viktoriia-fomina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bissquit bissquit merged commit 03cd979 into main Jan 26, 2023
@bissquit bissquit deleted the egor-vasiliev/1470-move-gradle-properties branch January 26, 2023 10:15
@alisevych alisevych added this to the 2023.03 Release milestone Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-infrastructure Infrastructure issues ctg-bug-fix PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move options from gradle.properties to GRADLE_OPTS env
5 participants