From dev-return-88119-archive-asf-public=cust-asf.ponee.io@sling.apache.org Thu Apr 26 15:29:56 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 403F4180648 for ; Thu, 26 Apr 2018 15:29:56 +0200 (CEST) Received: (qmail 60902 invoked by uid 500); 26 Apr 2018 13:29:55 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 60886 invoked by uid 99); 26 Apr 2018 13:29:54 -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; Thu, 26 Apr 2018 13:29:54 +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 C25C118040C for ; Thu, 26 Apr 2018 13:29:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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-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 qyRjBm5X1Riq for ; Thu, 26 Apr 2018 13:29:51 +0000 (UTC) Received: from mail-wr0-f182.google.com (mail-wr0-f182.google.com [209.85.128.182]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id B4B8A5F5B2 for ; Thu, 26 Apr 2018 13:29:50 +0000 (UTC) Received: by mail-wr0-f182.google.com with SMTP id p5-v6so29024985wre.12 for ; Thu, 26 Apr 2018 06:29:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=TCv0KNK/+tz6pUuVXOhPl0YGEuMYyu0AY11n8/fwSN8=; b=k76u1dkO5b95yJ+HTpuGLBOD6x2qkDOMr7A5yUVkWVNHWkX6PlbOA2Zq7pFWMoUGOZ HeWFc6voVkEAsu3kppBjXXt7soNru/bHFGbr9jcOLWbmAYiQX1aLTFfe9hnmaSq5TeMu G3J7M5tfYshpX7r7Qed9oZwNMXx56LQjQpM7gVh+bfcglZoJ0UyFRaYnhwbvM+B5scBi 4sb7uVIx+/8yQznx5HoXkHCIcbYEMBOhwWTKQOeW1MlVK+uxOPVAjYo6KC1tpjPnGYd3 PJUQTBJmCvXYRdHZJEp4yPACjr7n8fCgFUjrsC9dQuwd+yvxQMzzbDYMi9+efEPlQSWW 0arw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=TCv0KNK/+tz6pUuVXOhPl0YGEuMYyu0AY11n8/fwSN8=; b=QPmBVdeExMIRulDs9+84B1BmE5SajSWJ+XMXRHGLQ7ZdK2OZzlI5QZHi4D11502lhr 8dkbDlxelFO9+u/4+cS7Vz6hzyny+o6na5fIKLsC/PsldwNU7z4ylU+I6qSmCttHVwLj Ux2JGOXfP76pW5W1b/0oQFUr9jMsk1tKji3BqEeNZ9C2Oui7arHLrVbUqltOMk4ic8bh 6M0sn3G1K739lAaH7+LTCCYwNJ+YJGpGm48hNA3kSGjS8IjfBl0KeO4zqHiN5DhFy08c pYXNiXaqs4ei0/F2Nqkk66/SzI7vusyfTDWqPGSTP5oX6u2AcaqJI3fn7tiYXBrXq9mK AhDA== X-Gm-Message-State: ALQs6tAQJUX3yUGKw1JUby9XP0sVIpX9pgXxUvvEMXW/v4AZqcHYhmcT aotVEiendY3AzV0KKUF9gRnr/BcZbiRwAF157Rc= X-Google-Smtp-Source: AIpwx4/TwXNju2n3ZG51SCybLpyVf83E9H0ysxGb72oUnZ3qmL3Z9Oobi8lfO7c1HrwwCchfTUTx/KsSTAshSMOCWdI= X-Received: by 2002:adf:c5d1:: with SMTP id v17-v6mr29302730wrg.45.1524749389473; Thu, 26 Apr 2018 06:29:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.140.72 with HTTP; Thu, 26 Apr 2018 06:29:28 -0700 (PDT) In-Reply-To: References: <0DBC177B-0CC0-4496-83CF-9F1E1EE7D44D@apache.org> From: Karl Pauls Date: Thu, 26 Apr 2018 15:29:28 +0200 Message-ID: Subject: Re: [proposal][osgi][scripting] redesigned scripts deployment and resolution To: Sling Developers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Apr 26, 2018 at 12:11 PM, Ioan Eugen Stan wrot= e: > Hello Radu, > > I've read the project description and I like the direction in which you > are going. I believe being able to add constraints to code will make > things more clear. > > I do wish to ask something: I like the idea described in Sling in 15 min > [1]. I believe it's a very powerful way of developing pages and working > only on layout. Is this something that is going to go away? I doubt it :-) > Will I be forced to push scripts only via a bundle? No, for now this is a pure add-on that will not impact anything but allow you to push scripts via bundles as well (in which case you get the ability to version your scripts and have them have dependencies). > If that is so, I > might suggest a solution where we can add Require/Provide to a JCR node > of a special type and that might be deployed as a bundle. I imagine that > such a node will mostly nly Require and not Provide a lot of things > since it's goal would be to render Pages. > > I hope I understood correctly the issue and I'm not barking up the wrong > tree :). I think the point here is that while the current way of having scripts in the repository is great for some things, it has drawbacks in some other areas (mostly when it comes to deployment and maintainability). This is an attempt to marry the two by still allowing you the former and providing an optional solution for the latter while maintaining full interoperability. regards, Karl > Regards, > > [1] > https://sling.apache.org/documentation/getting-started/discover-sling-in-= 15-minutes.html > > > On 26.04.2018 12:34, Radu Cotescu wrote: >> Hello Sling devs, >> >> Karl and I have been working for the past weeks on a new scripting proto= type that we've now pushed to the Whiteboard [1]. The module is an add-on t= hat allows developers to deploy scripts through bundles, with the following= core features: >> standalone module that doesn't require any changes in Sling's current AP= Is >> bundles that provide scripts are wired to this add-on and then the add-o= n registers servlets on behalf of the scripting bundles (one servlet / scri= pt) >> resource types can now be versioned (they're expressed as OSGi capabilit= ies) >> resource types can have explicit dependencies to other resource types, a= nd everything is controlled by the wiring provided by the OSGi framework >> For the full details please check the documentation provided at [1]. We'= re very interested in your opinions about this module, since we=E2=80=99d l= ike to integrate it into the next Sling Starter release. >> >> Thanks, >> Radu and Karl >> >> [1] - https://github.com/apache/sling-whiteboard/tree/master/scripting-r= esolver > > --=20 Karl Pauls karlpauls@gmail.com