Giter Club home page Giter Club logo

grails-web-profile-command-demo's Introduction

Grails Profile Demo

Grails profile demo, use org.grails.internal.grails-plugin-publish to publish it. When upgrade to Grails 5.1.2, build profile fail. This demo project reproduce the errors.

* What went wrong:
Execution failed for task ':compileProfile'.
> Receiver class org.grails.cli.profile.commands.script.GroovyScriptCommandTransform does not define or inherit an implementation of the resolved method 'abstract java.lang.Object getProperty(java.lang.String)' of interface groovy.lang.GroovyObject.

Update changes 4.0.x...master

Grails Version

  • Grails 4.0.13
  • Grails 5.1.2
  • Java openjdk version "11.0.14" 2022-01-18 LTS

Usage

Create a profile project web-profile-command-demo

sdk use grails 4.0.13
grails create-profile web-profile-command-demo

When build this profile, there is a bug here, grails profile publish plugin should be org.grails.internal.grails-profile-publish, not org.grails.grails-profile-publish

apply plugin:"org.grails.internal.grails-plugin-publish"

Create a command in commands directory,

description( "Hello world" ) {
    usage "grails hello [NAME]"
    argument name:'Name', description:"The name of the man", required: false
}

console.updateStatus "Hello ${commandLine.remainingArgs[0] ?: 'World'}"

Then publish it to local maven repository

./gradlew install

Build susscessful!

Build and Install

git clone https://github.com/rainboyan/grails-profile-command-demo.git
cd grails-profile-command-demo
./gradlew install

Links

grails-web-profile-command-demo's People

Contributors

rainboyan avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

osscontributor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.