Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions grace-plugin-dynamic-modules/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ dependencies {
api project(":grace-api")
api project(":grace-bootstrap")
compileOnly project(":grace-plugin-api")

api libs.spring.boot.autoconfigure
annotationProcessor libs.spring.boot.autoconfigureProcessor
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Copyright 2022-2026 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.grails.plugins.modules;

import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

import org.grails.plugins.web.DefaultWebInterfaceManager;
import org.grails.plugins.web.WebInterfaceManager;

/**
* {@link EnableAutoConfiguration Auto-configuration} for Dynamic Modules.
*
* @author Michael Yan
* @since 2024.0.0
*/
@AutoConfiguration
public class DynamicModulesAutoConfiguration {

@Bean
@ConditionalOnMissingBean
public WebInterfaceManager webInterfaceManager() {
return new DefaultWebInterfaceManager();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,21 @@
*/
package org.grails.plugins.modules

import groovy.transform.CompileStatic

import grails.plugins.Plugin
import grails.util.GrailsUtil

/**
* @since 2022.1.0
*/
@CompileStatic
class DynamicModulesGrailsPlugin extends Plugin {

def version = GrailsUtil.getGrailsVersion()
def title = 'Grails Dynamic Modules Plugin'
def author = 'Michael Yan'
def authorEmail = 'rain@rainboyan.com'
def title = 'Grace Dynamic Modules Plugin'
def description = '''\
Grails Dynamic Modules Plugin offer new ways of creating modular and maintainable Grails applications.
Grace Dynamic Modules Plugin offer new ways of creating modular and maintainable Grace applications.
'''

Closure doWithSpring() {
{ ->
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.grails.plugins.modules.DynamicModulesAutoConfiguration