You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by "wagnersillva (via GitHub)" <gi...@apache.org> on 2025/04/11 12:31:32 UTC

[I] Grails 3.5 - Error compileGsonViews [grails-core]

wagnersillva opened a new issue, #14128:
URL: https://github.com/apache/grails-core/issues/14128

   ### Expected Behavior
   
   I have a problema when try to build my grails application, I use grails version 3.5 and java version 1.8. The error show when try proccess the task :server:compileGsonViews.
   
   this is a console error:
   
   > Task :server:compileGsonViews FAILED
   Task ':server:compileGsonViews' is not up-to-date because:
     Task has failed previously.
   All input files are considered out-of-date for incremental task ':server:compileGsonViews'.
   
   All input files are considered out-of-date for incremental task ':server:compileGsonViews'.
   Starting process 'command C:\Users\me\.jdks\corretto-1.8.0_422\bin\java.exe'.... 
   Successfully started process 'command 'C:\Users\me\.jdks\corretto-1.8.0_422\bin\java.exe''
   
   Exception in thread "main" org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
   server_class1_index_gson: 1: unable to resolve class br.com.project.model.Classe1
    @ line 1, column 1.
      import br.com.project.model.Classe1
      ^
   
   server_class1_index_gson: 2: unable to resolve class br.com.project.model.Class2
    @ line 2, column 1.
      import br.com.project.model.Class2
      ^
   
   
   And this is my index.gson:
   
   
   import br.com.project.model.Class1
   import br.com.project.model.Class2
   
   model{
   	List<Class1> entities
   	List<Class2> class2List
   	Integer total
   }
   
   json {
   	total total
   	entities g.render(template: "class1", collection: entities, var: "class1")
   	organizacoes g.render(template: "class2", collection: class2List, var: "class2")
   }
   
   
   ### Actual Behaviour
   
   _No response_
   
   ### Steps To Reproduce
   
   _No response_
   
   ### Environment Information
   
   - OS Windows 11
   - Java 8 -> corretto-1.8.0_422
   
   ### Example Application
   
   _No response_
   
   ### Version
   
   3.5


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@grails.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Grails 3.5 - Error compileGsonViews [grails-core]

Posted by "wagnersillva (via GitHub)" <gi...@apache.org>.
wagnersillva commented on issue #14128:
URL: https://github.com/apache/grails-core/issues/14128#issuecomment-2803455208

   Was resolved! 
   
   The problem was of IDE support.
   
   I use Intellij and it support gradle by version 4.5, and my project use version 3.5. So, when I try to build and generate a war file, was broken because of version 4.5 used by IDE.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@grails.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Grails 3.5 - Error compileGsonViews [grails-core]

Posted by "wagnersillva (via GitHub)" <gi...@apache.org>.
wagnersillva closed issue #14128: Grails 3.5 - Error compileGsonViews
URL: https://github.com/apache/grails-core/issues/14128


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@grails.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Grails 3.5 - Error compileGsonViews [grails-core]

Posted by "jdaugherty (via GitHub)" <gi...@apache.org>.
jdaugherty commented on issue #14128:
URL: https://github.com/apache/grails-core/issues/14128#issuecomment-2797055355

   Can you please provide an example project demonstrating this behavior?  We can't debug classpath issues without one.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@grails.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org