Path: csiph.com!1.us.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!bofh.it!news.nic.it!robomod From: Sean Gilligan Newsgroups: linux.debian.maint.java Subject: =?UTF-8?Q?Using_Gradle_Build_Scans=e2=84=a2_with_Debian_Gradle_4=2e?= =?UTF-8?B?NC54?= Date: Thu, 28 Sep 2023 20:10:02 +0200 Message-ID: X-Mailbox-Line: From debian-java-request@lists.debian.org Thu Sep 28 18:04:55 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.012 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, BITCOIN_OBFU_SUBJ=1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001, SARE_HEAD_8BIT_SPAM=0.888] autolearn=no autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .msgilligan. - helo: .mail-pf1-x42a.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5 X-Gm-Message-State: AOJu0YyJH0+p8dzZGARVnHefgysSTyRmsPE84fTc1tfhRBPRrQmD+Qs3 pH2JS8U1gJpBGqMj3p5ySm5sG29k8gCzHVwDUtzcRQ== X-Google-SMTP-Source: AGHT+IFk1kJpdFv90h7HKV7ChwY5CmLVB5BC0Ky5Q6dKYHuIWFiQvdFKJahmQfp63mP0WlxCjRaQDw== X-Received: by 2002:a05:6a20:5611:b0:159:c918:1016 with SMTP id ir17-20020a056a20561100b00159c9181016mr1758040pzc.49.1695924272963; Thu, 28 Sep 2023 11:04:32 -0700 (PDT) MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailing-List: archive/latest/23385 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/840e791a-1c99-86a3-ed5e-842fd9a21a90@msgilligan.com Approved: robomod@news.nic.it Lines: 31 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 28 Sep 2023 11:04:31 -0700 X-Original-Message-ID: <840e791a-1c99-86a3-ed5e-842fd9a21a90@msgilligan.com> Xref: csiph.com linux.debian.maint.java:12703 Although Build Scans™ are a proprietary add-on to Gradle, they are very useful in a FOSS CI environment. They make it very easy to find all the information you need to troubleshoot a failing build or find ways to optimize build scripts. Unfortunately, the options for agreeing to the terms-of-service in a CI environment have been difficult to configure cleanly. (You also have to give them your email, which I don't mind doing but some may object.) I opened an issue with Gradle about programmatically agreeing to the TOS and Stefan Wolf from Gradle provided an initialization script that solves the problem: https://github.com/gradle/gradle/issues/26316#issuecomment-1739245349 The script works with Gradle 4.4.x (FrankenGradle) through 8.x (at least.) The nice thing about this solution is that the script lives in a separate file and is only activated with specific command line options: `--init-script build-scan-agree.gradle --scan` I've tested it with bitcoinj and created two PRs that use it. They provide examples of how to use it: GitHub Actions: https://github.com/bitcoinj/bitcoinj/pull/3289 GitLab CI: https://github.com/bitcoinj/bitcoinj/pull/3290 Regards, Sean