File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
grails-shell/src/main/groovy/org/grails/cli/profile Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616package org.grails.cli.profile
17-
1817import grails.util.CosineSimilarity
19- import grails.util.Environment
18+ import groovy.transform.CompileDynamic
2019import groovy.transform.CompileStatic
2120import jline.console.completer.ArgumentCompleter
2221import jline.console.completer.Completer
23- import org.grails.build.parsing.CommandLine
2422import org.grails.build.parsing.ScriptNameResolver
2523import org.grails.cli.interactive.completers.StringsCompleter
2624import org.grails.cli.profile.commands.CommandRegistry
2725import org.grails.config.NavigableMap
28- import org.yaml.snakeyaml.Yaml ;
29-
26+ import org.yaml.snakeyaml.Yaml
3027/**
3128 * Simple disk based implementation of the {@link Profile} interface
3229 *
@@ -175,6 +172,7 @@ class DefaultProfile implements Profile {
175172 }
176173 }
177174
175+ @CompileDynamic
178176 private void initialize (ProfileRepository repository ) {
179177 parentProfiles = []
180178 File profileYml = new File (profileDir, " profile.yml" )
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616package org.grails.cli.profile.commands.factory
17-
1817import groovy.json.JsonParserType
1918import groovy.json.JsonSlurper
19+ import groovy.transform.CompileDynamic
2020import groovy.transform.CompileStatic
2121import org.grails.cli.profile.Command
2222import org.grails.cli.profile.Profile
2323import org.grails.cli.profile.commands.DefaultMultiStepCommand
2424import org.grails.io.support.Resource
2525import org.yaml.snakeyaml.Yaml
26-
27- import java.util.regex.Pattern
28-
29-
3026/**
3127 * A {@link CommandFactory} that can discover commands defined in YAML or JSON
3228 *
@@ -42,6 +38,7 @@ class YamlCommandFactory extends ResourceResolvingCommandFactory<Map> {
4238 final Collection<String > matchingFileExtensions = [" yml" , " json" ]
4339 final String fileNamePattern = / ^.*\. (yml|json)$/
4440
41+ @CompileDynamic
4542 @Override
4643 protected Map readCommandFile (Resource resource ) {
4744 Map data
You can’t perform that action at this time.
0 commit comments