Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ lib/*.jar

# Mac OS
.DS_*
.intellijPlatform
8 changes: 5 additions & 3 deletions AUTHORS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Authors

**Env File** is written and maintained by [Borys Pierov](https://github.com/Ashald).
**Env File-cm** is maintained by [chris moran](https://github.com/cmmoran).

Special thanks to [Oleg Khromov](https://github.com/olgert) and [Rostyslav Bryzgunov](https://github.com/kottenator)
who helped with testing and provided feedback during early stages of development.
**Env File** was originally written and maintained by [Borys Pierov](https://github.com/Ashald).

Special thanks to [Borys Pierov](https://github.com/Ashald) (original creator).

# Contributors
* [Borys Pierov](https://github.com/Ashald)
* [aviyam181199](https://github.com/aviyam181199)
* [Yoan Thiebault](https://github.com/yoanthiebault)
* [Stanislav Savulchik](https://github.com/savulchik)
Expand Down
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning].

## 4.1.0 - 2026-01-15

### Changed

- "i'll take it from here"
- Upgraded Gradle IntelliJ plugin to v2
- Updated platform version from 2022.2 to 2022.3 as it's the minimum version for v2 of the Gradle IntelliJ plugin

## 4.0.0 - 2026-01-15

### Changed

- Updated Gradle plugin from 1.9.0 to 1.17.4
- Updated platform version from 2022.2 to 2024.1
- Extended IDE compatibility range to support versions 241-253.* (2024.1 through 2025.3.x)
- Upgraded Gradle wrapper from 7.5.1 to 8.5

### Fixed

- Compatibility with IntelliJ IDEA 2025.x versions ([#248])

## 3.4.2 - 2023-12-25

### Fixed

- Bump `org.apache.commons:commons-text` to `1.10.0'

## 4.0.0 - 2026-01-15

### Changed
Expand Down
69 changes: 0 additions & 69 deletions build.gradle

This file was deleted.

95 changes: 95 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
import java.io.ByteArrayOutputStream

plugins {
id("java")
id("idea")
id("org.jetbrains.intellij.platform") version "2.2.1"
}

group = "com.cmmoran"

// Native versioning: Get version from Git tags or fallback to 'unspecified'
fun getProjectVersion(): String {
return try {
val stdout = ByteArrayOutputStream()
exec {
commandLine("git", "describe", "--tags", "--always", "--dirty")
standardOutput = stdout
}
stdout.toString().trim().replaceFirst("^v".toRegex(), "")
} catch (_: Exception) {
"0.0.1-SNAPSHOT"
}
}

version = getProjectVersion()

// Helper to access 'jetbrains' extra property in a type-safe way
val jetbrains: Map<String, String> by extra

allprojects {
apply(plugin = "java")

// Use toolchains to ensure the correct JDK is used for compilation
extensions.configure<JavaPluginExtension> {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}

repositories {
mavenCentral()
}

project.version = rootProject.version

extra["jetbrains"] = mapOf(
"version" to "2025.1.1",
"pycharm" to "PythonCore:242.21829.142",
"rubymine" to "org.jetbrains.plugins.ruby:242.21829.142",
"goland" to "org.jetbrains.plugins.go:242.21829.142",
"scala" to "org.intellij.scala:2024.2.25"
)
}

repositories {
intellijPlatform {
defaultRepositories()
}
}

intellijPlatform {
projectName.set("envfile")
buildSearchableOptions.set(false)

pluginConfiguration {
name.set("envfile")

ideaVersion {
sinceBuild.set("253")
untilBuild.set("999")
}
}

pluginVerification {
ides {
ide("IC", jetbrains["version"]!!)
}
}
}

dependencies {
intellijPlatform {
intellijIdeaCommunity(jetbrains["version"]!!)
bundledPlugin("com.intellij.java")
}

implementation(project(":envfile-products-idea"))
implementation(project(":envfile-products-pycharm"))
implementation(project(":envfile-products-rubymine"))
implementation(project(":envfile-products-goland"))
}

tasks.wrapper {
gradleVersion = "8.5"
}
18 changes: 0 additions & 18 deletions modules/core/build.gradle

This file was deleted.

18 changes: 18 additions & 0 deletions modules/core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
plugins {
id("java")
}

dependencies {
implementation("org.jetbrains:annotations:23.0.0")
implementation("org.yaml:snakeyaml:2.5")

implementation("com.google.guava:guava:33.5.0-jre")

compileOnly("org.projectlombok:lombok:1.18.42")
annotationProcessor("org.projectlombok:lombok:1.18.42")

testImplementation("junit:junit:4.13.2")

testCompileOnly("org.projectlombok:lombok:1.18.42")
testAnnotationProcessor("org.projectlombok:lombok:1.18.42")
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package net.ashald.envfile;
package com.cmmoran.envfile;

import net.ashald.envfile.exceptions.EnvFileException;
import com.cmmoran.envfile.exceptions.EnvFileException;

import java.io.File;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.ashald.envfile;
package com.cmmoran.envfile;

import java.util.Map;
import java.util.function.Consumer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.ashald.envfile.exceptions;
package com.cmmoran.envfile.exceptions;


public class EnvFileException extends Exception {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.ashald.envfile.exceptions;
package com.cmmoran.envfile.exceptions;


public class InvalidEnvFileException extends EnvFileException {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package net.ashald.envfile.providers;
package com.cmmoran.envfile.providers;

import lombok.Builder;
import lombok.NonNull;
import lombok.Value;
import lombok.val;
import net.ashald.envfile.exceptions.InvalidEnvFileException;
import com.cmmoran.envfile.exceptions.InvalidEnvFileException;

import java.io.BufferedReader;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package net.ashald.envfile.providers;
package com.cmmoran.envfile.providers;

import net.ashald.envfile.exceptions.InvalidEnvFileException;
import com.cmmoran.envfile.exceptions.InvalidEnvFileException;

import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package net.ashald.envfile.providers;
package com.cmmoran.envfile.providers;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import net.ashald.envfile.exceptions.InvalidEnvFileException;
import com.cmmoran.envfile.exceptions.InvalidEnvFileException;

import java.io.File;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package net.ashald.envfile.providers;
package com.cmmoran.envfile.providers;

import lombok.Builder;
import lombok.val;
import net.ashald.envfile.EnvVarsProvider;
import net.ashald.envfile.exceptions.EnvFileException;
import net.ashald.envfile.exceptions.InvalidEnvFileException;
import com.cmmoran.envfile.EnvVarsProvider;
import com.cmmoran.envfile.exceptions.EnvFileException;
import com.cmmoran.envfile.exceptions.InvalidEnvFileException;
import org.jetbrains.annotations.NotNull;

import java.io.File;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package net.ashald.envfile.providers.dotenv;
package com.cmmoran.envfile.providers.dotenv;

import java.util.regex.Matcher;
import java.util.regex.Pattern;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import net.ashald.envfile.providers.EnvFileParser;
import com.cmmoran.envfile.providers.EnvFileParser;

import java.util.LinkedHashMap;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package net.ashald.envfile.providers.dotenv;
package com.cmmoran.envfile.providers.dotenv;

import net.ashald.envfile.EnvVarsProvider;
import net.ashald.envfile.EnvVarsProviderFactory;
import net.ashald.envfile.providers.EnvFileExecutor;
import net.ashald.envfile.providers.EnvFileReader;
import net.ashald.envfile.providers.SingleFileEnvVarsProvider;
import com.cmmoran.envfile.EnvVarsProvider;
import com.cmmoran.envfile.EnvVarsProviderFactory;
import com.cmmoran.envfile.providers.EnvFileExecutor;
import com.cmmoran.envfile.providers.EnvFileReader;
import com.cmmoran.envfile.providers.SingleFileEnvVarsProvider;
import org.jetbrains.annotations.NotNull;

import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package net.ashald.envfile.providers.runconfig;
package com.cmmoran.envfile.providers.runconfig;

import lombok.AllArgsConstructor;
import net.ashald.envfile.EnvVarsProvider;
import net.ashald.envfile.exceptions.InvalidEnvFileException;
import com.cmmoran.envfile.EnvVarsProvider;
import com.cmmoran.envfile.exceptions.InvalidEnvFileException;

import java.io.File;
import java.util.HashMap;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package net.ashald.envfile.providers.runconfig;
package com.cmmoran.envfile.providers.runconfig;

import net.ashald.envfile.EnvVarsProvider;
import net.ashald.envfile.EnvVarsProviderFactory;
import com.cmmoran.envfile.EnvVarsProvider;
import com.cmmoran.envfile.EnvVarsProviderFactory;
import org.jetbrains.annotations.NotNull;

import java.util.Map;
Expand Down
Loading