Skip to content

feat(gradle-plugin): read CLI credentials from a dotenv file via posthog.dotenvFile - #651

Merged
ablaszkiewicz merged 1 commit into
mainfrom
ab/feat/gradle-plugin-dotenv-file
Jul 23, 2026
Merged

feat(gradle-plugin): read CLI credentials from a dotenv file via posthog.dotenvFile#651
ablaszkiewicz merged 1 commit into
mainfrom
ab/feat/gradle-plugin-dotenv-file

Conversation

@ablaszkiewicz

@ablaszkiewicz ablaszkiewicz commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Adds a posthog.dotenvFile gradle property (and a postHogDotenvFile task property). The resolved path reaches posthog-cli (>= 0.8.4) as POSTHOG_CLI_DOTENV_FILE on the upload tasks, so credentials no longer have to live in the Gradle daemon's environment. No test infra exists in the plugin module — verified via ./gradlew -p posthog-android-gradle-plugin build.

Better explanation here - PostHog/posthog-js#4219.

Tested locally. Works great!

🤖 Generated with Claude Code

…hog.dotenvFile

The gradle property (relative paths resolved against the root project) is
passed to the upload tasks as POSTHOG_CLI_DOTENV_FILE, so credentials no
longer have to live in the Gradle daemon's environment. Also settable per
task via the new postHogDotenvFile property.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "feat(gradle-plugin): read CLI credential..." | Re-trigger Greptile

@ioannisj ioannisj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LG

@ablaszkiewicz
ablaszkiewicz merged commit 3ef3756 into main Jul 23, 2026
16 checks passed
@ablaszkiewicz
ablaszkiewicz deleted the ab/feat/gradle-plugin-dotenv-file branch July 23, 2026 10:01
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