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

Mark StoneTask as cacheable and resolve some dbapp integration issues #515

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

wdziemia
Copy link
Contributor

No description provided.

Comment on lines -5 to -7
alias(dropboxJavaSdkLibs.plugins.maven.publish.plugin)
alias(dropboxJavaSdkLibs.plugins.gradle.version.plugin)
alias(dropboxJavaSdkLibs.plugins.dependency.guard)
Copy link
Contributor Author

@wdziemia wdziemia Nov 30, 2023

Choose a reason for hiding this comment

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

dbapp already has these on classpath so alias fails because each include a version and plugin block cannot handle this.

Comment on lines +31 to +36
String versionName
if (project.hasProperty("VERSION_NAME")) {
versionName = "${project.property("VERSION_NAME")}"
} else {
versionName = project.version
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This project will use VERSION_NAME during publish, dbapp has no visibility on gradle.properties as it has its own. We use project.version as a fallback and set it within dbapp.

import org.gradle.process.ExecOperations
import java.io.File
import java.io.FileOutputStream
import javax.inject.Inject

@CacheableTask
Copy link
Contributor Author

Choose a reason for hiding this comment

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

With help of @devPalacio - marks this Task as cacheable which should increase build speeds

@wdziemia wdziemia merged commit 2337c07 into main Nov 30, 2023
3 checks passed
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.

None yet

3 participants