https://github.com/firstdarkdev/dopple
A Gradle plugin that allows you to use SECRETS from doppler.com
https://github.com/firstdarkdev/dopple
doppler environment-variables gradle secrets
Last synced: 7 months ago
JSON representation
A Gradle plugin that allows you to use SECRETS from doppler.com
- Host: GitHub
- URL: https://github.com/firstdarkdev/dopple
- Owner: firstdarkdev
- License: mit
- Created: 2024-03-26T21:01:51.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-26T21:13:21.000Z (almost 2 years ago)
- Last Synced: 2025-06-25T03:07:41.447Z (7 months ago)
- Topics: doppler, environment-variables, gradle, secrets
- Language: Java
- Homepage:
- Size: 63.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
## Dopple
A simple gradle plugin that allows you to use secrets from [doppler.com](https://doppler.com) in a gradle project.
This is useful for people with multiple GitHub repos, CI projects, or local usage to manage their ENV variables from a central place.
***
### Setup
Groovy DSL
To use this plugin inside your project, first you have to add our maven.
To do this, open up `settings.gradle` and add the following:
```groovy
pluginManagement {
repositories {
gradlePluginPortal()
maven {
url "https://maven.firstdark.dev/releases"
}
}
}
```

Next, in your `build.gradle` add:
```groovy
plugins {
id "dev.firstdark.dopple" version "VERSION"
}
```
Replace VERSION with the version above.
Finally, add the following to your `build.gradle`:
```groovy
dopple {
serviceToken.set("TOKEN")
}
```
Kotlin DSL
To use this plugin inside your project, first you have to add our maven.
To do this, open up `settings.gradle.kts` and add the following:
```groovy
pluginManagement {
repositories {
gradlePluginPortal()
maven {
url = uri("https://maven.firstdark.dev/releases")
}
}
}
```
Next, in your `build.gradle.kts` add:

```kotlin
plugins {
id("dev.firstdark.dopple") version "VERSION"
}
```
Replace VERSION with the version above.
Finally, add the following to your `build.gradle.kts`:
```groovy
dopple {
serviceToken.set("TOKEN")
}
```
You can retrieve your service token from your [doppler](https://doppler.com) account.
---
### Usage
To get the value of a SECRET from doppler, simply use the following:
```groovy
dopple.get("KEY")
```
For example:
```groovy
publishing {
repositories {
maven {
url dopple.get('MAVEN_URL')
credentials {
username dopple.get('MAVEN_USER')
password dopple.get('MAVEN_PASS')
}
}
}
}
```
***
This plugin is licensed under MIT.
If you need any help, open an issue, or visit our [DISCORD](https://discord.firstdark.dev)