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 5CA85200AF5 for ; Thu, 2 Jun 2016 19:24:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5B31B160A51; Thu, 2 Jun 2016 17:24:23 +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 7BED7160A3E for ; Thu, 2 Jun 2016 19:24:22 +0200 (CEST) Received: (qmail 82769 invoked by uid 500); 2 Jun 2016 17:24:21 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 82755 invoked by uid 99); 2 Jun 2016 17:24:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2016 17:24:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1EB921A0742 for ; Thu, 2 Jun 2016 17:24:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id E3KgLuGyWI4r for ; Thu, 2 Jun 2016 17:24:19 +0000 (UTC) Received: from mail-vk0-f43.google.com (mail-vk0-f43.google.com [209.85.213.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 5CE325F240 for ; Thu, 2 Jun 2016 17:24:18 +0000 (UTC) Received: by mail-vk0-f43.google.com with SMTP id d127so80457452vkh.2 for ; Thu, 02 Jun 2016 10:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=2VFh8WMMNumQEfklOhzsov0x1hJhIwVVMNfgu+pIR+s=; b=OAuDtj8vR0C0BXb2jBGzmr4KBcuWAQOjs51B5UkfhjBokZ6ndFnu6SLB9rvF4Oi3Ag tbjSI/7P1pRo17DiAMEltUl4qFrlXKMiniDuOmB8PbORMGZghpc+mCudQHdoG2LeV2Yg 1bceC46jz7bROpe4BC5I+2Ib0FeN+GUbuCWCN+5CyfYU8GodgwssBqbmBWmpmGjnRnwl lhuXcxBCMMhf87lOeQRytJp69xH00oLDOyFnNucIFpx0gJhpxsKBXDzz9GZNNRmHQHBZ TMRNKOhZq1s6EJXidY2EwlUOcdkMTKUHXWz8pOz2C9LCAY7WRDMP6QCvURc1YOdLBcfG rOWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=2VFh8WMMNumQEfklOhzsov0x1hJhIwVVMNfgu+pIR+s=; b=PhDonBxiQPFemuEU0gJKbucFFWKfR9G6IjqzD5JhYfDOr7cLbwLJo6OAwl3RnyHGmm +RuuUZBtW9rn6l65V/fS7XAdxLD1z6wMAshPp/5jHJG/tPoHECtBOG3QXrZ/QFhON3sA qXyeaonTIWdsBCJlPXIu/G4mXiVd3Pvc8gDGBAsFiMuAjanlUMu7wbTHa0UKElrKrV0g A2eV5lSTYtkmYbxK4RQdRcJDHh11gUUBAoKcHdbYVxipRLR0ee2NAT+/MZuhs2zoJTrH VNAs5hMML/S0EvMy/4KdsxrwU8SLGKYm4cYoBuJIHLPeHOrevMvMMIq9ToxcrClLHNHO 92Fg== X-Gm-Message-State: ALyK8tKtbivYrKz/GX9vJXeBUCcQwLuJKGcQDQJDZWYi5Ik54KtuCIo/fKvaBQOICh0qQk/4eSitII2qYVrK0Q== MIME-Version: 1.0 X-Received: by 10.176.69.178 with SMTP id u47mr5279418uau.148.1464888251055; Thu, 02 Jun 2016 10:24:11 -0700 (PDT) Received: by 10.159.38.225 with HTTP; Thu, 2 Jun 2016 10:24:10 -0700 (PDT) In-Reply-To: References: <23E8655B-6C2F-4ADD-8C7E-D9E1776E2934@gmail.com> Date: Thu, 2 Jun 2016 12:24:10 -0500 Message-ID: Subject: Re: BOM dependency with gradle From: Matt Sicker To: Log4J Users List Content-Type: multipart/alternative; boundary=94eb2c11bd86d706db05344edf93 archived-at: Thu, 02 Jun 2016 17:24:23 -0000 --94eb2c11bd86d706db05344edf93 Content-Type: text/plain; charset=UTF-8 You can even put that log4jVersion property into gradle.properties. That's how I've been doing it. On 2 June 2016 at 11:42, Greg Thomas wrote: > Aha, I wasn't aware of that. A little bit of Googling later turns up > https://spring.io/blog/2015/02/23/better-dependency-management-for-gradle > which demonstrates a Gradle plugin that supports a BOM. > > That seems like overkill to me, I think I'll stick with ... > > def log4jVersion = '2.6' > compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: > "$log4jVersion" > compile group: 'org.apache.logging.log4j', name: 'log4j-core', > version: "$log4jVersion" > > which seems simpler and more obvious, tbh. > > Greg > > On 2 June 2016 at 17:36, Matt Sicker wrote: > > I'm not sure if BOMs work outside Maven as it's based on a Maven-specific > > feature that Ralph was involved in a while back. > > > > On 2 June 2016 at 10:13, Gary Gregory wrote: > > > >> On Jun 2, 2016 3:04 AM, "Greg Thomas" wrote: > >> > > >> > > I explicitly specify the version for log4j-api and log4j-core as > well. > >> > > >> > Doesn't that defeat the point of the BOM? > >> > >> It sure seems like it! > >> > >> Gary > >> > > >> > Greg > >> > > >> > On 2 June 2016 at 09:38, Remko Popma wrote: > >> > > I explicitly specify the version for log4j-api and log4j-core as > well. > >> > > > >> > > Sent from my iPhone > >> > > > >> > >> On 2016/06/02, at 17:03, Greg Thomas > wrote: > >> > >> > >> > >> Is there a correct syntax to use the BOM dependency with gradle? > >> > >> > >> > >> I've currently got the following ... > >> > >> > >> > >> compile group: 'org.apache.logging.log4j,' name: 'log4j-bom', > version: > >> '2.6' > >> > >> compile group: 'org.apache.logging.log4j', name: 'log4j-api' > >> > >> compile group: 'org.apache.logging.log4j', name: 'log4j-core' > >> > >> > >> > >> But dependency resolution fails ... > >> > >> > >> > >> C:\Greg\test>gradlew dependencies > >> > >> :dependencies > >> > >> > >> > >> ------------------------------------------------------------ > >> > >> Root project > >> > >> ------------------------------------------------------------ > >> > >> > >> > >> archives - Configuration for archive artifacts. > >> > >> No dependencies > >> > >> > >> > >> compile - Dependencies for source set 'main'. > >> > >> +--- org.apache.logging.log4j:log4j-bom:2.6 > >> > >> +--- org.apache.logging.log4j:log4j-api: FAILED > >> > >> +--- org.apache.logging.log4j:log4j-core: FAILED > >> > >> ... > >> > >> > >> > >> What's the right syntax, if it's even possible? > >> > >> > >> > >> Thanks, > >> > >> > >> > >> Greg > >> > >> > >> > >> > --------------------------------------------------------------------- > >> > >> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > >> > >> For additional commands, e-mail: > log4j-user-help@logging.apache.org > >> > >> > >> > > > >> > > > --------------------------------------------------------------------- > >> > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > >> > > For additional commands, e-mail: log4j-user-help@logging.apache.org > >> > > > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > >> > For additional commands, e-mail: log4j-user-help@logging.apache.org > >> > > >> > > > > > > > > -- > > Matt Sicker > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org > > -- Matt Sicker --94eb2c11bd86d706db05344edf93--