Repository: cdimascio/java-dotenv
Branch: master
Commit: f7d0ceffb8f1
Files: 2
Total size: 9.6 KB
Directory structure:
gitextract_8wss0pkc/
├── README.md
└── pom.xml
================================================
FILE CONTENTS
================================================
================================================
FILE: README.md
================================================
# java-dotenv
### This package has been renamed to [dotenv-kotlin](https://github.com/cdimascio/dotenv-kotlin)
<p align="left">
<a href="https://github.com/cdimascio/dotenv-kotlin"><img src="https://raw.githubusercontent.com/cdimascio/dotenv-kotlin/master/assets/kotlin-dotenv-logo.png" alt="dotenv" width="250" /></a>
</p>
### Looking for a pure Java version, see [dotenv-java](https://github.com/cdimascio/dotenv-java)
<p align="left">
<a href="https://github.com/cdimascio/dotenv-java"><img src="https://raw.githubusercontent.com/cdimascio/dotenv-java/master/assets/dotenv-java-logo.png" alt="dotenv-java" width="260" /></a>
</p>
### Why?
To avoid confusion.
java-dotenv was implemented in Kotlin. This meant that Java-only users would end up pulling in some Kotlin deps. In order to keep the package size as small as possible for Java-only users, we've rewritten the dotenv core in Java.
The [dotenv-java](https://github.com/cdimascio/dotenv-java) project contains the pure Java variant. It implements the same API as the original java-dotenv (with the exception of the Kotlin DSL
The [dotenv-kotlin](https://github.com/cdimascio/dotenv-kotlin) project is almost identical to the previous java-dotenv package. The only difference is that its core is provided by [dotenv-java](https://github.com/cdimascio/dotenv-java). It continues to provide functionality similar to before and includes the Kotlin DSL
### Latest versions of java-dotenv
The last version of java-dotenv is `5.2.2`. It is available on MavenCentral and JCenter
We recommend you use **dotenv-java** or **dotenv-kotlin** instead.
### Maven
```xml
<dependency>
<groupId>io.github.cdimascio</groupId>
<artifactId>java-dotenv</artifactId>
<version>5.2.2</version>
</dependency>
```
### Gradle
```groovy
implementation 'io.github.cdimascio:java-dotenv:5.2.2'
```
================================================
FILE: pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<name>java-dotenv</name>
<description>Environment based config for the JVM</description>
<url>https://github.com/cdimascio/java-dotenv</url>
<groupId>io.github.cdimascio</groupId>
<artifactId>java-dotenv</artifactId>
<version>5.2.2</version>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
</licenses>
<organization>
<name>Carmine DiMascio OSS</name>
<url>https://github.com/cdimascio</url>
</organization>
<scm>
<connection>scm:github:https://github.com/cdimascio/java-dotenv</connection>
<developerConnection>scm:github:https://github.com/cdimascio/java-dotenv</developerConnection>
<tag>master</tag>
<url>https://github.com/cdimascio/java-dotenv</url>
</scm>
<developers>
<developer>
<id>cdimascio</id>
<name>Carmine DiMascio</name>
<email>cdimascio@gmail.com</email>
<url>https://www.github.com/cdimascio</url>
<organization>Carmine DiMascio OSS</organization>
<organizationUrl>https://www.github.com/cdimascio</organizationUrl>
<roles>
<role>developer</role>
</roles>
<timezone>America/New_York</timezone>
</developer>
</developers>
<properties>
<kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<kotlin.version>1.4.0</kotlin.version>
<main.class>io.cdimascio.DotenvKt</main.class>
<junit.version>4.12</junit.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.source.plugin>3.0.1</maven.source.plugin>
<maven.javadoc.plugin>3.0.0</maven.javadoc.plugin>
<dokka.version>0.9.18</dokka.version>
<bintray.subject>cdimascio</bintray.subject>
<bintray.repo>maven</bintray.repo>
<bintray.package>java-dotenv</bintray.package>
</properties>
<pluginRepositories>
<pluginRepository>
<id>jcenter</id>
<name>JCenter</name>
<url>https://jcenter.bintray.com/</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>${kotlin.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test-junit</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
<plugins>
<plugin>
<artifactId>kotlin-maven-plugin</artifactId>
<groupId>org.jetbrains.kotlin</groupId>
<version>${kotlin.version}</version>
<executions>
<execution>
<id>compile</id>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>test-compile</id>
<goals>
<goal>test-compile</goal>
</goals>
<configuration>
<sourceDirs>
<sourceDir>${project.basedir}/src/test/kotlin</sourceDir>
<sourceDir>${project.basedir}/src/test/java</sourceDir>
</sourceDirs>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>${main.class}</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20.1</version>
<configuration>
<workingDirectory>${project.basedir}</workingDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven.source.plugin}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin}</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
<version>${dokka.version}</version>
<executions>
<execution>
<phase>pre-site</phase>
<goals>
<goal>dokka</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.6.201602180812</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.3.0</version>
<configuration>
<repoToken>i3Bl4av26PMqZNekY8X3Jt7t6YhwFXKFu</repoToken>
</configuration>
</plugin>
</plugins>
</build>
</project>
gitextract_8wss0pkc/ ├── README.md └── pom.xml
Condensed preview — 2 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (10K chars).
[
{
"path": "README.md",
"chars": 1859,
"preview": "# java-dotenv\n\n### This package has been renamed to [dotenv-kotlin](https://github.com/cdimascio/dotenv-kotlin)\n\n<p alig"
},
{
"path": "pom.xml",
"chars": 7945,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
}
]
About this extraction
This page contains the full source code of the cdimascio/java-dotenv GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 2 files (9.6 KB), approximately 2.3k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.