How to use grails.plugin.location?

前端 未结 1 1554
不思量自难忘°
不思量自难忘° 2020-12-01 15:14

I have a plugin project which I created as grails create-plugin myPlugin. I also created a \'normal\' grails project as grails create-app myPluginDemo

相关标签:
1条回答
  • 2020-12-01 15:37

    grails.plugin.location is not a dependency resolution, so it goes outside grails.project.dependency.resolution.

    It should be like below, if both myPluginDemo and myPlugin are in the same directory. Moreover, this will not install the plugin into the app, but the application will refer to the file system for the plugin which is convenient in development mode. In order to use the packaged plugin it has to be referred in plugins inside grails.project.dependency.resolution

    grails.plugin.location.myPlugin = "../myPlugin"
    grails.project.dependency.resolution = {
        repositories {
    
        }
        dependencies {
    
        }
        plugins {
    
        }
    }
    
    0 讨论(0)
提交回复
热议问题