Skip to content

Grails 4.0.0.RC2 - Compile issue with profile "plugin" andgrails create-service command  #11342

Closed
@puneetbehl

Description

@puneetbehl

Task List

  • Steps to reproduce provided
  • Stacktrace (if present) provided
  • Example that reproduces the problem uploaded to Github
  • Full description of the issue provided (see below)

Steps to Reproduce

  1. Create a new Grails plugin. (grails create-app example.myplugin --profile=plugin.
  2. Create a new service via command grails create-service example.BookService
  3. Execute ./gradlew compileGroovy.

Expected Behaviour

Project should compile successfully.

Actual Behaviour

> Task :compileGroovy FAILED
startup failed:
/private/tmp/plugin/grails-app/services/demo/BookService.groovy: 3: unable to resolve class grails.gorm.transactions.Transactional
 @ line 3, column 1.
   import grails.gorm.transactions.Transactional
   ^

1 error

Environment Information

  • Operating System: macOS Mojave (Version 10.14.5)
  • Grails Version: 4.0.0.RC2
  • JDK Version: 1.8
  • Container Version (If Applicable): N/A

Example Project

See https://travis-ci.org/grails-profiles-tests/plugin/builds/543070082

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions