From users-return-3846-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Wed Dec 19 22:23:44 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3495C180670 for ; Wed, 19 Dec 2018 22:23:44 +0100 (CET) Received: (qmail 42651 invoked by uid 500); 19 Dec 2018 21:23:43 -0000 Mailing-List: contact users-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.apache.org Delivered-To: mailing list users@groovy.apache.org Received: (qmail 42639 invoked by uid 99); 19 Dec 2018 21:23:43 -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; Wed, 19 Dec 2018 21:23:43 +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 9A912180DB2 for ; Wed, 19 Dec 2018 21:23:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.202 X-Spam-Level: X-Spam-Status: No, score=-0.202 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id KCRu9nbiwzwa for ; Wed, 19 Dec 2018 21:23:41 +0000 (UTC) Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id C53A060F08 for ; Wed, 19 Dec 2018 21:23:40 +0000 (UTC) Received: by mail-qk1-f179.google.com with SMTP id 68so12557785qke.9 for ; Wed, 19 Dec 2018 13:23:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=VUelJ6NUoAMr4mJXBsgMFovjjeL2LhnEV3QzR9zRui4=; b=HVl4AnMHBrwn+me0rDoCcebVnulQ4OMAB8JAKtjLneXkFkP2af9kfTCA2s/ONLR9NE uVliXKFKdHay48a6oGxSySDyDegKHR/gcnBcLuJNINo6Kfj/4aovjqZ0KAni9OZ0kZTr tf26gd/rBGr3lOm57ie50edntWmTQ0d7fimA52aPcgtf6qYCJ1cYi05t+82BCX5bfv/5 UoJLcB2l3X55n+2vRUznhWUaiHBPIFv7XOgAvz7alQgEerOyBeYtRGlmSHzSwQzWlPyQ St8ZSxzO1XkUkRwLbTTZgyxp5GR+wtXpfX82UpyYkM7lVJBfuNmT92K+VelY3+A7ScXr RE1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=VUelJ6NUoAMr4mJXBsgMFovjjeL2LhnEV3QzR9zRui4=; b=VWw8HgiYeCGaCsNBxfNnzQfwgR9EcF2JCmA3sgrnHlQ7EOC40hZEvVMRorfvyc4K+W LzL9vD542Ibt2k91LUPRGrcdF/YlFtV32AGy8FC1y80JYG/pHExdFG7GiZn3c8J3d3OB +S/VlvAlfbjTXep3SF8KnnYhPPaYR/jnkSwiJmsqXNX+n3NLClWAt/2DX1zkAVtMwlt5 WMSuzqlHYk+DKCjtDSYIl8tp8awn+s/rVWSFoyFANktrTts/nueeBlGutZQ6PW98T3nC Jt3JG+gOtlYpdGr00I2WESE7CfwEeaeFCTqj+SWlf4V+H8OrNGTei0xV5zEHqnRxCMfb h/xQ== X-Gm-Message-State: AA+aEWYAtNqy1xpHXJe8+2fKsSfMrR55bg8VpweWInjPlfYrsnYLs84w kx2mFdQ96qJ9XIYPEE+46CTyeYEh X-Google-Smtp-Source: AFSGD/VKEojqmNSNTAj2reaxg3X0g1zLMI9q9bCrnQY/lf2WYPalxY1fRsYHamIKycDbtNnEDg5E/w== X-Received: by 2002:a37:c8c:: with SMTP id 134mr856579qkm.303.1545254613093; Wed, 19 Dec 2018 13:23:33 -0800 (PST) Received: from [192.168.1.7] (dynamic-acs-24-154-202-70.zoominternet.net. [24.154.202.70]) by smtp.gmail.com with ESMTPSA id m1sm3518135qkh.15.2018.12.19.13.23.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Dec 2018 13:23:31 -0800 (PST) From: James Kleeh Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: What is the best replacement for running scripts using groovy-all? Date: Wed, 19 Dec 2018 16:23:30 -0500 References: <0FD9E849-3DCE-4C8E-A568-2C37B17CBD4B@anc.org> To: users@groovy.apache.org In-Reply-To: Message-Id: <5CC06898-C7B7-416D-B808-A04E967D14F1@gmail.com> X-Mailer: Apple Mail (2.3445.102.3) Paul, The best solution is to use Maven or Gradle to create an all-in-one = (fat) jar that you can ship and run with java -jar Gradle has a shadow plugin and Maven has a shade plugin to do just that. James > On Dec 19, 2018, at 4:19 PM, Paul Moore wrote: >=20 > On Wed, 19 Dec 2018 at 20:18, S=C3=B8ren Berg Glasius = wrote: >>=20 >> Hi Paul, >>=20 >> This is where The @Grab anotation comes in handy: = http://docs.groovy-lang.org/latest/html/documentation/grape.html >>=20 >> It wil automatically download your dependencies and it works in = Groovy scripts too. >=20 > Thanks - yes, I've seen @Grab, and used it while testing. But the > problem is that it puts the dependency files "somewhere", but not > alongside the script. I need to ship the script and its dependencies > to another machine with no web access, so I need better control over > where the dependencies end up. (I could probably hunt out where the > files downloaded by @Grab went, but it would be a completely manual > task to locate them all and copy them, and mistakes would happen - so > I'd prefer something automated. >=20 > Paul