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 75A15200CB0 for ; Fri, 23 Jun 2017 20:04:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 74BE1160BE5; Fri, 23 Jun 2017 18:04:05 +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 BABC4160BE2 for ; Fri, 23 Jun 2017 20:04:04 +0200 (CEST) Received: (qmail 29295 invoked by uid 500); 23 Jun 2017 18:04:03 -0000 Mailing-List: contact notifications-help@yetus.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@yetus.apache.org Delivered-To: mailing list notifications@yetus.apache.org Received: (qmail 29286 invoked by uid 99); 23 Jun 2017 18:04:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jun 2017 18:04:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CBE4DC669E for ; Fri, 23 Jun 2017 18:04:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id SuRiokY4MOb7 for ; Fri, 23 Jun 2017 18:04:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 213405FAEA for ; Fri, 23 Jun 2017 18:04:01 +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 72276E0634 for ; Fri, 23 Jun 2017 18:04:00 +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 2F5EF2193F for ; Fri, 23 Jun 2017 18:04:00 +0000 (UTC) Date: Fri, 23 Jun 2017 18:04:00 +0000 (UTC) From: "Grant Henke (JIRA)" To: notifications@yetus.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YETUS-524) audience-annotations can not be used as a dependency in a gradle build MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 23 Jun 2017 18:04:05 -0000 [ https://issues.apache.org/jira/browse/YETUS-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Grant Henke updated YETUS-524: ------------------------------ Attachment: YETUS-524.00.patch > audience-annotations can not be used as a dependency in a gradle build > ---------------------------------------------------------------------- > > Key: YETUS-524 > URL: https://issues.apache.org/jira/browse/YETUS-524 > Project: Yetus > Issue Type: Bug > Components: Audience Annotations > Affects Versions: 0.4.0 > Reporter: Grant Henke > Fix For: 0.5.0 > > Attachments: YETUS-524.00.patch > > > The Yetus audience-annotations module uses a jdk profile in the parent yetus-project pom to define the tool.jar to use in the dependency management section: > {code:title=audience-annotations/pom.xml} > ... > > > > jdk.tools > jdk.tools > system > > true > > > ... > {code} > {code:title=yetus-project/pom.xml} > ... > > > jdk1.7 > > 1.7 > > > > > jdk.tools > jdk.tools > 1.7 > system > ${java.home}/../lib/tools.jar > > > > > ... > {code} > This causes issues when trying to download the maven dependency via a gradle project because gradle does not support jdk profile activation and views profile activation requirements as a reproducibility anti-pattern to be avoided. ([source|https://blog.gradle.org/maven-pom-profiles]). > The issue seen in a gradle build is below: > {noformat} > > Could not resolve org.apache.yetus:audience-annotations:0.4.0. > Required by: ... > > Could not resolve org.apache.yetus:audience-annotations:0.4.0. > > Could not parse POM https://repo1.maven.org/maven2/org/apache/yetus/audience-annotations/0.4.0/audience-annotations-0.4.0.pom > > Unable to resolve version for dependency 'jdk.tools:jdk.tools:jar' > {noformat} > This occurs because without any default version and no jdk profile activated jdk.tools is an invalid dependency. Given that its optional, it could simply be ignored. However, gradle has no way to force this even if setting the transitive = false property. > This is easily fixed by adding a default dependency when no jdk profile is activated. -- This message was sent by Atlassian JIRA (v6.4.14#64029)