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

Problem Creating Artifacts With grailsw #13731

Open
osscontributor opened this issue Oct 5, 2024 · 0 comments
Open

Problem Creating Artifacts With grailsw #13731

osscontributor opened this issue Oct 5, 2024 · 0 comments

Comments

@osscontributor
Copy link
Member

Expected Behavior

./grailsw create-service Widget should create WidgetService in the application's default package.

Actual Behaviour

./grailsw create-service Widget creates the service in an invalid package.

Steps To Reproduce

Create an application using the Forge UI which includes the Grails Wrapper feature:

Screenshot 2024-10-05 at 7 56 41 AM

In the generated app run ./grailsw create-service ...

$ [] sdk use java 11.0.17-zulu 

Using java version 11.0.17-zulu in this shell.
$ [] 
$ [] 
$ [] git clone [email protected]:osscontributor/grailswdemo.git && cd grailswdemo && ./grailsw create-service Widget
Cloning into 'grailswdemo'...
remote: Enumerating objects: 123, done.
remote: Counting objects: 100% (123/123), done.
remote: Compressing objects: 100% (92/92), done.
remote: Total 123 (delta 16), reused 123 (delta 16), pack-reused 0 (from 0)
Receiving objects: 100% (123/123), 783.40 KiB | 2.61 MiB/s, done.
| Resolving Dependencies. Please wait...
> Task :buildSrc:compileJava NO-SOURCE
> Task :buildSrc:compileGroovy NO-SOURCE
> Task :buildSrc:processResources NO-SOURCE
> Task :buildSrc:classes UP-TO-DATE
> Task :buildSrc:jar
> Task :buildSrc:assemble
> Task :buildSrc:compileTestJava NO-SOURCE
> Task :buildSrc:compileTestGroovy NO-SOURCE
> Task :buildSrc:processTestResources NO-SOURCE
> Task :buildSrc:testClasses UP-TO-DATE
> Task :buildSrc:test NO-SOURCE
> Task :buildSrc:check UP-TO-DATE
> Task :buildSrc:build

CONFIGURE SUCCESSFUL in 3s
1 actionable task: 1 executed
| Created grails-app/services/@artifact.package.path@/WidgetService.groovy
| Created src/test/groovy/@artifact.package.path@/WidgetServiceSpec.groovy
$ [main] 
$ [main] 
$ [main] cat grails-app/services/@artifact.package.path@/WidgetService.groovy
@artifact.package@
import grails.gorm.transactions.Transactional

@Transactional
class WidgetService {

    def serviceMethod() {

    }
}

Environment Information

No response

Example Application

https://github.com/osscontributor/grailswdemo

Version

6.2.1

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

1 participant