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 Github workflow to the Redis DB bal persist client #3

Conversation

dinukaamarasinghe817
Copy link
Contributor

@dinukaamarasinghe817 dinukaamarasinghe817 commented Feb 29, 2024

Purpose

The purpose is to add the initial GitHub workflow

@dinukaamarasinghe817 dinukaamarasinghe817 changed the title Add Github workflow Add Github workflow to the Redis DB bal persist client Feb 29, 2024
gradle.properties Outdated Show resolved Hide resolved
daneshk
daneshk previously approved these changes Feb 29, 2024
Copy link
Member

@daneshk daneshk left a comment

Choose a reason for hiding this comment

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

LGTM

build.gradle Outdated
Comment on lines 20 to 23
id "com.github.spotbugs" version "${githubSpotbugsVersion}"
id "com.github.johnrengelman.shadow" version "${githubJohnrengelmanShadowVersion}"
id "de.undercouch.download" version "${underCouchDownloadVersion}"
id "net.researchgate.release" version "${researchgateReleaseVersion}"
Copy link
Member

Choose a reason for hiding this comment

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

Shall we move the plugin management to the settings.gradle file? Check this out:

Notice that the plugin versions are handled in the settings.gradle file while the build.gradle files are just using those plugins, not handling the versions.

build.gradle Outdated

def packageName = "persist.redis"

ext.ballerinaLangVersion = project.ballerinaLangVersion
Copy link
Member

Choose a reason for hiding this comment

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

We don't need this ext definition.

Comment on lines 42 to 58
# Transitive Dependencies
# Level 01
stdlibConstraintVersion=1.4.0

#Level 02
stdlibCryptoVersion=2.5.0
stdlibTaskVersion=2.5.0

# Level 03
stdlibCacheVersion=3.7.0
stdlibMimeVersion=2.9.0
stdlibUuidVersion=1.7.0

# Level 04
stdlibAuthVersion=2.10.0
stdlibJwtVersion=2.10.0
stdlibOAuth2Version=2.10.0
Copy link
Member

Choose a reason for hiding this comment

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

When it comes to dependency management in the gradle.properties, it doesn't make much sense to differentiate the direct and transitive dependencies. IMO, it is better to just put them together by grouping them using the level.

Copy link
Member

Choose a reason for hiding this comment

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

We can remove this file.

@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
Copy link
Member

Choose a reason for hiding this comment

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

Let's use Gradle 8.2.1 version. Note that changing the version will require you to update the wrapper jar as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All the suggestions have been addressed in 500fc9b

@dinukaamarasinghe817 dinukaamarasinghe817 force-pushed the github-workflow branch 4 times, most recently from f4e04ec to c7c12f4 Compare March 1, 2024 05:49
Copy link
Member

Choose a reason for hiding this comment

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

Let's use the centralized workflow templates for these workflows.

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.

4 participants