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

Add gradle verification xml to generated release. #62

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

lpusok
Copy link
Contributor

@lpusok lpusok commented Nov 22, 2024

Creates gradle-verification.xml and adds it to the release.

@@ -29,13 +29,15 @@ var (
)

type Preferences struct {
IsOfflineMode bool
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's the purpose of this? This is now always true


# add plugin with CLI
cd "$SAMPLE_PATH"
/tmp/bin/bitrise-build-cache-cli enable-for add-gradle-deps
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the enable-for a leftover?

}

func init() {
enableForCmd.AddCommand(addGradleDeps)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not the root command?

return fmt.Errorf("generate bitrise-build-cache.init.gradle.kts: %w", err)
}

logger.Infof("(i) Write ~/.gradle/init.d/bitrise-build-cache.init.gradle.kts")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is now duplicated code, have you considered extracting these?


- Create a ~/.gradle/init.d/bitrise-build-cache.init.gradle.kts file with the necessary configs. This file will be overwritten.

The gradle.properties file will be created if it doesn't exist.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this a leftover? I haven't found the relevant code for these

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.

2 participants