[
https://issues.apache.org/jira/browse/OFBIZ-9273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15941620#comment-15941620 ]
Swapnil M Mane commented on OFBIZ-9273:
---------------------------------------
I faced the same while creating the new plugin.
As per the exploration, this issue is due creation of build.gradle file in plugin (with empty gradle task defined in it)
{code}
dependencies {
//Examples of compile-time and runtime dependencies
//pluginLibsCompile 'junit:junit-dep:4.10'
//pluginLibsRuntime 'junit:junit-dep:4.10'
}
task install {
doLast {
// Install logic for this plugin
}
}
task uninstall {
doLast {
// uninstall logic for this plugin
}
}
{code}
To avoid the build fail, here are the 3 proposals.
1.) Comment the complete newly created build.gradle file.
{code}
/*
dependencies {
//Examples of compile-time and runtime dependencies
//pluginLibsCompile 'junit:junit-dep:4.10'
//pluginLibsRuntime 'junit:junit-dep:4.10'
}
task install {
doLast {
// Install logic for this plugin
}
}
task uninstall {
doLast {
// uninstall logic for this plugin
}
}
*/
{code}
For this we will need to edit the template
ofbiz-framework/framework/resources/templates/build.gradle
2.) Create empty build.gradle file
For this again we will need to edit the template
ofbiz-framework/framework/resources/templates/build.gradle
3.) Don't create any build.gradle file.
I would like to know the opinion from the community on this.
Thanks!
> The createTenant Gradle task fails
> ----------------------------------
>
> Key: OFBIZ-9273
> URL:
https://issues.apache.org/jira/browse/OFBIZ-9273> Project: OFBiz
> Issue Type: Bug
> Components: Gradle
> Affects Versions: Trunk
> Reporter: Jacques Le Roux
> Assignee: Jacques Le Roux
> Fix For: Upcoming Release
>
>
> When you enter
> bq. gradlew createTenant -PtenantId=test
> you get
> {code}
> FAILURE: Build failed with an exception.
> * Where:
> Build file 'C:\projectsASF\ofbiz-framework\build.gradle' line: 764
> * What went wrong:
> A problem occurred evaluating root project 'ofbiz'.
> > Could not get unknown property 'pluginId' for task ':installAllPlugins' of type org.gradle.api.DefaultTask.
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)