Skip to content

Commit c9ad2b8

Browse files
dtsaryovodrotbohm
authored andcommitted
GH-1141 - Fix Kotlin examples for module and named interfaces declarations and dependencies.
Signed-off-by: daniil.tsaryov@jetbrains.com
1 parent 21b1c0f commit c9ad2b8

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

src/docs/antora/modules/ROOT/pages/fundamentals.adoc

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,16 @@ Kotlin::
193193
+
194194
[source, kotlin, role="secondary", chomp="none"]
195195
----
196-
@org.springframework.modulith.ApplicationModule(
196+
package example.inventory
197+
198+
import org.springframework.modulith.ApplicationModule
199+
import org.springframework.modulith.PackageInfo
200+
201+
@ApplicationModule(
197202
type = Type.OPEN
198203
)
199-
package example.inventory
204+
@PackageInfo
205+
class ModuleMetadata {}
200206
----
201207
======
202208

@@ -309,10 +315,16 @@ Kotlin::
309315
+
310316
[source, kotlin, role="secondary", chomp="none"]
311317
----
312-
@org.springframework.modulith.ApplicationModule(
318+
package example.inventory
319+
320+
import org.springframework.modulith.ApplicationModule
321+
import org.springframework.modulith.PackageInfo
322+
323+
@ApplicationModule(
313324
allowedDependencies = "order :: spi"
314325
)
315-
package example.inventory
326+
@PackageInfo
327+
class ModuleMetadata {}
316328
----
317329
======
318330

@@ -338,10 +350,16 @@ Kotlin::
338350
+
339351
[source, kotlin, role="secondary", chomp="none"]
340352
----
341-
@org.springframework.modulith.ApplicationModule(
353+
package example.inventory
354+
355+
import org.springframework.modulith.ApplicationModule
356+
import org.springframework.modulith.PackageInfo
357+
358+
@ApplicationModule(
342359
allowedDependencies = "order :: *"
343360
)
344-
package example.inventory
361+
@PackageInfo
362+
class ModuleMetadata {}
345363
----
346364
======
347365

0 commit comments

Comments
 (0)