Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate DataSource.groovy and Config.groovy #1

Open
ghost opened this issue Mar 15, 2015 · 0 comments
Open

migrate DataSource.groovy and Config.groovy #1

ghost opened this issue Mar 15, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 15, 2015

It seems that it might be possible to automate the migration of these by appending the contents of DataSource.groovy to Config.groovy and storing the result in the Grails 3 app in grails-app/conf/application.groovy.

However, it's not clear whether this is likely to work. If so, should we remove the grails-app/conf/application.yml config file that's created by default?

Some care should be taken when concatenating the 2 config files, because any imports in the second file will need to be removed and added to the top of the resulting file.

Given that the log4j config in Config.groovy needs to be migrated to logback.groovy, it seems unlikely that it will be possible to fully automate this task, and parially automating automating it seems like asking for trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants