Giter Site home page Giter Site logo

Comments (4)

NielsDoucet avatar NielsDoucet commented on June 1, 2024 1

We have a privately hosted repository which mirrors maven-central. And we would like to use it for downloading allure's package.
Currently this is impossible as you cannot supply basic authentication for the download (as previously reported in a comment: allure-framework/allure2#832 (comment)).

If allure would leverage gradle's functionality for downloading packages, our use case would be supported as well.

from allure-gradle.

vlsi avatar vlsi commented on June 1, 2024

This PR leverages Gradle dependency resolution for allure-commandline download: #61
So both dependency cahcing and dependency verification would work.

Please feel free to try it and provide feedback

from allure-gradle.

marcel-richter avatar marcel-richter commented on June 1, 2024

Hi,

I stumbled over this thread facing the same problem that I want to use a maven proxy and try to avoid using a http proxy.
Somehow I found myself unable to configure the download extension because it seems not to be available during configuration phase. In the end nothing works for me so I configured my build the following way and it works like a charm.

plugins {
  id 'java'
  id 'io.qameta.allure' version '2.8.1'
}

repositories {
  maven {
    url 'https://maven.example.com/proxy'
  }
}

configurations {
  allureCommandline
}

dependencies {
    allureCommandline group: "io.qameta.allure", name: "allure-commandline", version: "2.14.0", ext: "zip"
}

task getAllure(type: Copy)  {
  from zipTree(configurations.allureCommandline.singleFile)
  into "${rootDir}/.allure"
  doLast {
    downloadAllure.enabled = false
  }
}

test.finalizedBy('getAllure')
getAllure.finalizedBy('allureReport')

Just want to share this in case someone else run into the same trouble...

Would be nice if this is the standard behaviour.
Anyways, @vlsi thanks for this great plugin.

BR

from allure-gradle.

vlsi avatar vlsi commented on June 1, 2024

Implemented in #61

from allure-gradle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.