Skip to content

Commit

Permalink
Deprecate grace-plugin-dynamic-modules
Browse files Browse the repository at this point in the history
* Add `@Deprecated`
* Update `README.md`
  • Loading branch information
rainboyan committed Aug 20, 2024
1 parent 1df7852 commit 3db429b
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 5 deletions.
6 changes: 6 additions & 0 deletions grace-plugin-dynamic-modules/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## grace-plugin-dynamic-modules

Grails Dynamic Modules Plugin (GDMP) offer new ways of creating modular and maintainable Grails applications.

A Grails plugin can implement one or more plugin modules to develop and extend Grails applications.
We can use Dynamic Modules to maximize the use of Grails plugins and create an open, shared, and reusable plugins and modules.

This plugin is deprecated since 2023.0.0, and has been moved to its own repository https://github.com/grace-plugins/dynamic-modules.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022-2023 the original author or authors.
* Copyright 2022-2024 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.
Expand Down Expand Up @@ -31,10 +31,12 @@ import org.grails.plugins.web.model.WebLink
*
* @author Michael Yan
* @since 2022.1.0
* @deprecated since 2023.0.0, in favor of org.graceframework.plugins:dynamic-modules
*/
@ToString(includeNames=true)
@TupleConstructor
@CompileStatic
@Deprecated(since = "2023.0.0")
class WebItemModuleDescriptor extends AbstractModuleDescriptor {

String section
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022-2023 the original author or authors.
* Copyright 2022-2024 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.
Expand Down Expand Up @@ -28,10 +28,12 @@ import grails.plugins.exceptions.PluginException
*
* @author Michael Yan
* @since 2022.1.0
* @deprecated since 2023.0.0, in favor of org.graceframework.plugins:dynamic-modules
*/
@ToString(includeNames=true)
@TupleConstructor
@CompileStatic
@Deprecated(since = "2023.0.0")
class WebSectionModuleDescriptor extends AbstractModuleDescriptor {

String location
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022-2023 the original author or authors.
* Copyright 2022-2024 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.
Expand All @@ -18,6 +18,11 @@ package org.grails.plugins.modules
import grails.plugins.Plugin
import grails.util.GrailsUtil

/**
* @since 2022.1.0
* @deprecated since 2023.0.0, in favor of org.graceframework.plugins:dynamic-modules
*/
@Deprecated(since = "2023.0.0")
class DynamicModulesGrailsPlugin extends Plugin {

def version = GrailsUtil.getGrailsVersion()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022-2023 the original author or authors.
* Copyright 2022-2024 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.
Expand Down Expand Up @@ -27,8 +27,10 @@ import grails.plugins.PluginManagerAware
*
* @author Michael Yan
* @since 2022.1.0
* @deprecated since 2023.0.0, in favor of org.graceframework.plugins:dynamic-modules
*/
@CompileStatic

class DefaultWebInterfaceManager implements WebInterfaceManager, PluginManagerAware {

private GrailsPluginManager pluginManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022-2023 the original author or authors.
* Copyright 2022-2024 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.
Expand All @@ -26,7 +26,9 @@
*
* @author Michael Yan
* @since 2022.1.0
* @deprecated since 2023.0.0, in favor of org.graceframework.plugins:dynamic-modules
*/
@Deprecated(since = "2023.0.0")
public interface WebInterfaceManager {

List<WebSectionModuleDescriptor> getSections(String location);
Expand Down

0 comments on commit 3db429b

Please sign in to comment.