File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,12 @@ compile 'io.github.cdimascio:dotenv-java:2.2.4'
5151implementation 'io.github.cdimascio:dotenv-java:2.2.4'
5252```
5353
54+ ### Gradle Kotlin DSL
55+
56+ ``` kotlin
57+ implementation(" io.github.cdimascio:dotenv-java:2.2.4" )
58+ ```
59+
5460Looking for the Kotlin variant? ** get [ dotenv-kotlin] ( https://github.com/cdimascio/dotenv-kotlin ) ** .
5561
5662## Usage
Original file line number Diff line number Diff line change 6262
6363 <junit .version>4.13.2</junit .version>
6464
65+ <maven .enforcer.plugin>3.1.0</maven .enforcer.plugin>
66+ <maven .compiler.plugin>3.5.1</maven .compiler.plugin>
6567 <maven .source.plugin>3.0.1</maven .source.plugin>
6668 <maven .javadoc.plugin>3.2.0</maven .javadoc.plugin>
6769 <maven .surefire.plugin>2.22.0</maven .surefire.plugin>
9597 <sourceDirectory >${project.basedir} /src/main/java</sourceDirectory >
9698 <plugins >
9799
100+ <plugin >
101+ <groupId >org.apache.maven.plugins</groupId >
102+ <artifactId >maven-enforcer-plugin</artifactId >
103+ <version >${maven.enforcer.plugin} </version >
104+ <executions >
105+ <execution >
106+ <id >display-info</id >
107+ <phase >validate</phase >
108+ <goals >
109+ <goal >display-info</goal >
110+ </goals >
111+ </execution >
112+ <execution >
113+ <id >enforce-java</id >
114+ <goals >
115+ <goal >enforce</goal >
116+ </goals >
117+ <configuration >
118+ <rules >
119+ <requireJavaVersion >
120+ <version >11</version >
121+ </requireJavaVersion >
122+ </rules >
123+ </configuration >
124+ </execution >
125+ </executions >
126+ </plugin >
127+
98128 <!-- compile java 1.8 for lib and java 11 for tests-->
99129 <plugin >
100130 <groupId >org.apache.maven.plugins</groupId >
101131 <artifactId >maven-compiler-plugin</artifactId >
102- <version >3.5.1 </version >
132+ <version >${maven.compiler.plugin} </version >
103133 <configuration >
104134 <source >${compile.source} </source >
105135 <target >${compile.source} </target >
You can’t perform that action at this time.
0 commit comments