Skip to content

Commit 60bf29f

Browse files
Merge pull request #19 from martinbonnin/fixes
Kotlin plugins: add side panel + cosmetic fixes
2 parents f9de6bf + f4c0c3b commit 60bf29f

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

.devcontainer/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ mkdocs-render-swagger-plugin==0.1.1
1515
mkdocs-pdf==0.1.1
1616
mkdocs-with-pdf==0.9.3
1717
livereload==2.6.3
18-
lxml==4.9.3
18+
lxml==5.3.0
1919
click==8.1.7
2020
dacite==1.8.1
2121
ghp-import==2.1.0

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ temp_dir
1111

1212
.DS_Store
1313

14+
pyvenv.cfg
1415
.venv/

docs/plugin-development/kotlin-plugins.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,18 +142,19 @@ If you are used to writing `build.gradle.kts` files, you may use the `kotlin-dsl
142142
`kotlin-dsl` configures the Kotlin compiler so that you can use precompiled scripts plugins and/or write similar syntax in your regular `.kt` files.
143143

144144
The `kotlin-dls` plugin:
145+
145146
* applies `"java-gradle-plugin"`.
146147
* applies `kotlin-embedded` to use the same Kotlin embeeded version as your Gradle distribution.
147148
* applies the ``kotlin-dsl-precompiled-script-plugins`` allowing to use `build.gradle.kts` files.
148149
* adds `gradleKotlinDsl()` to the `compileOnly` configuration.
149150
* configures the `sam-with-receiver` Kotlin compiler plugin to transform `it.` usages into `this.`.
150151
* configures the `kotlin-assignment` Kotlin compiler plugin to allow setting `Property` with the `=` operator.
151-
* sets Kotlin `apiVersion` and `languageVersion` according to Gradle [compatibility [atrix](https://docs.gradle.org/current/userguide/compatibility.html#kotlin).
152+
* sets Kotlin `apiVersion` and `languageVersion` according to Gradle [compatibility Matrix](https://docs.gradle.org/current/userguide/compatibility.html#kotlin).
152153
* adds the `-Xsam-conversions=class` compiler option.
153154
* adds others compiler options for compatibility:
154-
** `-java-parameters` to support https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Parameter.html[Java 8 Parameter] class and getting method parameters through reflection
155-
** `-Xjvm-default=all` to add link:https://kotlinlang.org/docs/java-to-kotlin-interop.html#default-methods-in-interfaces[Default methods in interfaces]
156-
** `-Xjsr305=strict` for https://kotlinlang.org/docs/java-interop.html#compiler-configuration[increased null safety]
155+
* `-java-parameters` to support [Java 8 Parameter](https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Parameter.html) class and getting method parameters through reflection
156+
* `-Xjvm-default=all` to add [Default methods in interfaces](https://kotlinlang.org/docs/java-to-kotlin-interop.html#default-methods-in-interfaces)
157+
* `-Xjsr305=strict` for [increased null safety](https://kotlinlang.org/docs/java-interop.html#compiler-configuration)
157158

158159
This is a significant departure from the baseline Kotlin configuration so be aware of the tradeoffs when using `kotlin-dsl`.
159160

mkdocs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ nav:
3535
- Gradle for Kotlin: kotlin/README.md
3636
- Gradle for Android: android/README.md
3737
- Troubleshooting Gradle: troubleshooting/README.md
38-
- Plugin Development: plugin-development/README.md
38+
- Plugin Development:
39+
- Summary: plugin-development/README.md
40+
- Kotlin plugin development: plugin-development/kotlin-plugins.md
3941

4042
# Theme
4143
theme:

0 commit comments

Comments
 (0)