GH-1141 - Fix Kotlin examples for module and named interfaces declarations and dependencies.

Signed-off-by: daniil.tsaryov@jetbrains.com
This commit is contained in:
Daniil Tsarev
2025-04-03 17:49:48 +02:00
committed by Oliver Drotbohm
parent 21b1c0fc97
commit c9ad2b8453

View File

@@ -193,10 +193,16 @@ Kotlin::
+
[source, kotlin, role="secondary", chomp="none"]
----
@org.springframework.modulith.ApplicationModule(
package example.inventory
import org.springframework.modulith.ApplicationModule
import org.springframework.modulith.PackageInfo
@ApplicationModule(
type = Type.OPEN
)
package example.inventory
@PackageInfo
class ModuleMetadata {}
----
======
@@ -309,10 +315,16 @@ Kotlin::
+
[source, kotlin, role="secondary", chomp="none"]
----
@org.springframework.modulith.ApplicationModule(
package example.inventory
import org.springframework.modulith.ApplicationModule
import org.springframework.modulith.PackageInfo
@ApplicationModule(
allowedDependencies = "order :: spi"
)
package example.inventory
@PackageInfo
class ModuleMetadata {}
----
======
@@ -338,10 +350,16 @@ Kotlin::
+
[source, kotlin, role="secondary", chomp="none"]
----
@org.springframework.modulith.ApplicationModule(
package example.inventory
import org.springframework.modulith.ApplicationModule
import org.springframework.modulith.PackageInfo
@ApplicationModule(
allowedDependencies = "order :: *"
)
package example.inventory
@PackageInfo
class ModuleMetadata {}
----
======