-
Notifications
You must be signed in to change notification settings - Fork 2
/
CHANGELOG.md.in
454 lines (345 loc) · 10.5 KB
/
CHANGELOG.md.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
# Kradle
## Changelog
### Version ${kradleVersion} (${new Date().format("yyyy-MM-dd")})
#### Bugfixes
#### Additions
#### Changes
- __Breaking change__: Remove support for deprecated kradle-app and kradle-lib plugin
- __Breaking change__: Cut number of enabled features on all presets
- [Kotlin 1.9.20](https://kotlinlang.org/docs/whatsnew1920.html)
- Gradle 8.5
- Dependency updates
- `jvm`: Set default target JVM to 21
- `kotlin`: No longer set `-opt-in=kotlin.RequiresOptIn` compiler argument
### Version 2.5.0 (2023-11-01)
#### Additions
- New feature `logging`, including support for [log4j](https://logging.apache.org/log4j/2.x/) and [slf4j](https://www.slf4j.org/)
#### Changes
- [Kotlin 1.9.0](https://kotlinlang.org/docs/whatsnew19.html)
- [Gradle 8](https://gradle.org/whats-new/gradle-8/)
- Dependency updates
### Version 2.4.1 (2022-10-23)
#### Bugfixes
- `kotest`: Downgrade from 5.5.0 to 5.2.3 because of issues with Gradle test filters (`--test`)
- `bootstrap`: Fix code style for Spring Boot app
### Version 2.4.0 (2022-10-07)
#### Additions
- New feature `frameworks`, including support for [Spring Boot](https://spring.io/projects/spring-boot)
#### Changes
- [Kotlin 1.7.20](https://blog.jetbrains.com/kotlin/2022/09/kotlin-1-7-20-released/)
- Dependency updates
- `bootstrap`: Generate files based on enabled features
### Version 2.3.1 (2022-02-15)
#### Bugfixes
- Fix support for Gradle 7.4
### Version 2.3.0 (2022-02-14)
#### Bugfixes
- `kover`: Exclude `benchmark` sources from analysis
#### Additions
- New feature `scripts`
- New feature `buildProfiles`
- New feature `helm` ([Helm](https://helm.sh/))
- New alias `compile` for `classes`
- New alias `verify` for `check`
- New project property `gitBranchPrefix`
- `docker`: New task `pushImage`
- `docker`: New options `imageName`, `arguments` and `allowInsecureRegistries`
- `docker`: Add project property `imageName`
- `docker`: Add `jvmOptions` as alternative to `jvmOpts`
#### Changes
- `bootstrap`: Call `git add -u` when done
- `docker`: Use project name as default image name (instead of root project name)
- `package`: Use project name as default artifact name (instead of root project name)
- `detekt`: Config file is relative to project directory (instead of root project directory)
- `checkstyle`: Config file is relative to project directory (instead of root project directory)
- `generateLombokConfig`: Config file is generated in project directory (instead of root project directory)
- Look for _project.properties_ in project directory (instead of root project directory)
### Version 2.2.0 (2022-02-06)
#### Bugfixes
- `jvm`: Fix support for target JVM 8
- `benchmarks`: Fix pure Java projects with benchmarks enabled
- `docker`: Fix `buildImage` in combination with `startupScript` or `withJvmKill` (first image created was missing
extra files)
- `bootstrap`: Don't overwrite existing _App.kt_ or _App.java_ files
#### Additions
- New project properties: `mainClass` and `gitBranch`
- New feature `dependencies` (supersedes `dependencyUpdates`)
- New feature `codeCoverage` and task `analyzeTestCoverage`
- Add support for [Project Lombok](https://projectlombok.org/)
- Add support for [Kover](https://github.com/Kotlin/kotlinx-kover)
- `jacoco`: New option `excludes`
- `jacoco`: Add configuration to `codeCoverage`
Before
```kotlin
kradle {
jvm {
test {
withJacoco("0.8.7")
}
}
}
```
After
```kotlin
kradle {
jvm {
codeCoverage {
jacoco {
version("0.8.7")
}
}
}
}
```
- `test`: New task `runTests`
- `test`: New option `showStandardStreams`
- `test`: Set environment variables `KRADLE_PROJECT_DIR` and `KRADLE_PROJECT_ROOT_DIR`
- `test`: New options `useArchUnit` and `useTestcontainers`
- `test`: Add `test.withCustomTests` as alternative to `test.customTests`
- `test`: Alternative configuration for JUnit Jupiter
Before
```kotlin
kradle {
jvm {
test {
withJunitJupiter("5.8.2")
}
}
}
```
After
```kotlin
kradle {
jvm {
test {
// junitJupiter()
// junitJupiter(true)
// junitJupiter.enable()
// junitJupiter.enable { … }
junitJupiter {
version("5.8.2")
}
}
}
}
```
- `docker`: Add `test.withStartupScript` as alternative to `test.startupScript`
- `benchmark`: Alternative configuration for JMH version
Before
```kotlin
kradle {
benchmark {
jmhVersion("1.34")
}
}
```
After
```kotlin
kradle {
benchmark {
jmh {
version("1.34")
}
}
}
```
#### Changes
- Add possibility to disable linters and code analysis tools
- Use Kover as default for test coverage instead of JaCoCo
- Enable Lombok in all Java presets
- `jacoco`: Use one report task which handles all test source sets instead of one task per set
- `jacoco`: No longer create report after running tests
- `test`: Remove access to unit test classes from integration and functional tests
- `test`: Enable JUnit Jupiter per default
- `dev`: Rename environment variable DEV_MODE to KRADLE_DEV_MODE
- `docker`: Add [tini](https://github.com/krallin/tini) when using `startupScript` or `withJvmKill`
### Version 2.1.0 (2022-01-06)
#### Bugfixes
- `developmentMode`: Make sure `dev` works with Gradle toolchains
#### Additions
- New feature [Java development](README.md#feature-java) (linting, code analysis, bootstrapping, preview features)
- New task `kradleDump`
- `lint`, `codeAnalysis`: New option `ignoreFailures`
- `ktlint`: Rules are configurable
- `ktlint`, `detekt`: Alternative configuration
Before
```kotlin
kradle {
jvm {
kotlin {
lint {
ktlintVersion("0.43.2")
}
codeAnalysis {
detektConfigFile("detekt-config.yml")
detektVersion("1.19.0")
}
}
}
}
```
After
```kotlin
kradle {
jvm {
kotlin {
lint {
ktlint {
version("0.43.2")
}
}
codeAnalysis {
detekt {
version("1.19.0")
configFile("detekt-config.yml")
}
}
}
}
}
```
- `test`: Add support for [custom tests](README.md#feature-test)
- `test`: Alternative configuration
Before
```kotlin
kradle {
jvm {
test {
withIntegrationTests(true)
withFunctionalTests(true)
}
}
}
```
After
```kotlin
kradle {
jvm {
test {
integrationTests(true)
functionalTests(true)
}
}
}
```
- `docker`: Alternative configuration
Before
```
kradle {
jvm {
docker {
withAppSh(true)
ports.add(…)
}
}
}
```
After
```
kradle {
jvm {
docker {
startupScript(true)
ports(…)
}
}
}
```
#### Changes
- `ktlint`: Rule `no-wildcard-imports` is no longer disabled (it still is in presets)
- `showDependencyUpdates`: Exclude beta versions
- `test`: Recognize files ending with `Spec`
### Version 2.0.1 (2022-01-01)
#### Bugfixes
- `kradle` now works in combination with [Gradle toolchains](https://docs.gradle.org/current/userguide/toolchains.html)
### Version 2.0.0 (2021-12-29)
#### Bugfixes
- `bootstrap`: Fix for multi-project builds
- `showDependencyUpdates`: Fix regular expression for exclusion of alpha versions and RCs
#### Additions
- New plugin `net.bitsandbobs.kradle`, which combines the functionality of `kradle-app` and `kradle-lib`
- New configuration DSL (see [configuration reference](README.md#configuration-reference))
#### Changes
- `jvm`: Set default target JVM to 17
- Deprecate `kradle-app` and `kradle-lib`. They still work, but won't receive any new features. Consider
using `net.bitsandbobs.kradle` instead.
- __Breaking change__: [`disable`](https://github.com/mrkuz/kradle/tree/v1.2.0#blueprints) for `kradle-app`
and `kradle-lib` removed
### Version 1.2.0 (2021-09-23)
#### Bugfixes
- Fix package statement of main class generated by `bootstrap`
#### Additions
- Support use of `@JvmName`
- New option `jmhVersion`
- New option `detektVersion`
#### Changes
- The tasks `showDependencyUpdates`, `analyzeCode`, `analyzeDependencies`, `generateDocumentation`, `uberJar`
and `buildImage` are now independent tasks, not aliases
- Add `kotlin-reflect` to project dependencies
- Enable strict JSR-305 processing
- `DEV_MODE=true` is no longer set when launching the application with `run`
- `uberJar`: JAR is no longer minimized
- `generateBuildProperties`: Content of _build.properties_ changed
Before
```properties
version=…
timestamp=…
git.commit-id=…
```
After
```properties
project.name=…
project.group=…
project.version=…
build.timestamp=…
git.commit-id=…
```
### Version 1.1.0 (2021-09-09)
#### Additions
- New task `bootstrap`: Bootstraps new app/lib project
- New task `dev`: Runs the application and stops it when sources change (for automatic rebuilds and restarts)
- New task `generateGitignore`: Generates _.gitignore_
- Add source sets and tasks for integration and functional tests
- Syntactic sugar: Overload invoke operator for setting options
Before
```kotlin
kradle {
targetJvm.set("16")
}
```
After
```kotlin
kradle {
targetJvm("16")
}
```
- Add option for main class inside `kradle` configuration
Before
```kotlin
application {
mainClass.set("com.example.demo.AppKt")
}
```
After
```kotlin
kradle {
mainClass("com.example.demo.App")
}
```
- Add `jacocoVersion` to `test`
Before
```kotlin
kradle {
jacocoVersion("0.8.7")
}
```
After
```kotlin
kradle {
tests {
jacocoVersion("0.8.7")
}
}
```
#### Changes
- `generateDocumentation`: _module.md_ and _package.md_ can be placed inside source directories