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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to