Skip to content

Commit c48b45f

Browse files
committed
Provide dynamic modules WebSection and WebItem in this plugin
1 parent 7394484 commit c48b45f

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

plugin/src/main/groovy/org/grails/plugins/modules/DynamicModulesGrailsPlugin.groovy

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2023 the original author or authors.
2+
* Copyright 2022-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,13 +15,30 @@
1515
*/
1616
package org.grails.plugins.modules
1717

18-
import grails.plugins.Plugin
18+
import groovy.transform.CompileStatic
19+
20+
import grails.plugins.descriptors.WebItemModuleDescriptor
21+
import grails.plugins.descriptors.WebSectionModuleDescriptor
22+
import grails.plugins.DynamicPlugin
1923
import grails.util.GrailsUtil
2024

21-
class DynamicModulesGrailsPlugin extends Plugin {
25+
/**
26+
* Provide Dynamic Modules for {@link DynamicPlugin}.
27+
*
28+
* @author Michael Yan
29+
* @since 1.0
30+
*/
31+
@CompileStatic
32+
class DynamicModulesGrailsPlugin extends DynamicPlugin {
2233

2334
def version = '1.0.0-SNAPSHOT'
2435
def grailsVersion = "2023.0.0 > *"
36+
37+
def providedModules = [
38+
WebItemModuleDescriptor,
39+
WebSectionModuleDescriptor
40+
]
41+
2542
def title = 'Grace Dynamic Modules Plugin'
2643
def author = 'Michael Yan'
2744
def authorEmail = '[email protected]'

0 commit comments

Comments
 (0)