Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 67401200C42 for ; Sat, 25 Mar 2017 08:23:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 65DF8160B88; Sat, 25 Mar 2017 07:23:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A9E1D160B7B for ; Sat, 25 Mar 2017 08:23:45 +0100 (CET) Received: (qmail 38562 invoked by uid 500); 25 Mar 2017 07:23:44 -0000 Mailing-List: contact notifications-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list notifications@ofbiz.apache.org Received: (qmail 38552 invoked by uid 99); 25 Mar 2017 07:23:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Mar 2017 07:23:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 616D8181BC0 for ; Sat, 25 Mar 2017 07:23:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Vu2p1E6OYgi5 for ; Sat, 25 Mar 2017 07:23:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 4BDDD5FB02 for ; Sat, 25 Mar 2017 07:23:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6769AE06CD for ; Sat, 25 Mar 2017 07:23:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A576F24067 for ; Sat, 25 Mar 2017 07:23:41 +0000 (UTC) Date: Sat, 25 Mar 2017 07:23:41 +0000 (UTC) From: "Swapnil M Mane (JIRA)" To: notifications@ofbiz.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (OFBIZ-9273) The createTenant Gradle task fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 25 Mar 2017 07:23:46 -0000 [ 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)