File tree 2 files changed +37
-1
lines changed
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'
51
51
implementation 'io.github.cdimascio:dotenv-java:2.2.4'
52
52
```
53
53
54
+ ### Gradle Kotlin DSL
55
+
56
+ ``` kotlin
57
+ implementation(" io.github.cdimascio:dotenv-java:2.2.4" )
58
+ ```
59
+
54
60
Looking for the Kotlin variant? ** get [ dotenv-kotlin] ( https://github.com/cdimascio/dotenv-kotlin ) ** .
55
61
56
62
## Usage
Original file line number Diff line number Diff line change 62
62
63
63
<junit .version>4.13.2</junit .version>
64
64
65
+ <maven .enforcer.plugin>3.1.0</maven .enforcer.plugin>
66
+ <maven .compiler.plugin>3.5.1</maven .compiler.plugin>
65
67
<maven .source.plugin>3.0.1</maven .source.plugin>
66
68
<maven .javadoc.plugin>3.2.0</maven .javadoc.plugin>
67
69
<maven .surefire.plugin>2.22.0</maven .surefire.plugin>
95
97
<sourceDirectory >${project.basedir} /src/main/java</sourceDirectory >
96
98
<plugins >
97
99
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
+
98
128
<!-- compile java 1.8 for lib and java 11 for tests-->
99
129
<plugin >
100
130
<groupId >org.apache.maven.plugins</groupId >
101
131
<artifactId >maven-compiler-plugin</artifactId >
102
- <version >3.5.1 </version >
132
+ <version >${maven.compiler.plugin} </version >
103
133
<configuration >
104
134
<source >${compile.source} </source >
105
135
<target >${compile.source} </target >
You can’t perform that action at this time.
0 commit comments