Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Proget: Gradle connector?

    Scheduled Pinned Locked Moved Support
    6 Posts 2 Posters 22 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • MaxCasconeM Offline
      MaxCascone
      last edited by

      I have connectors set up for Chocolatey, nuget, and Docker public feeds (docker isn't working). I would like to set up a connector to services.gradle.org so i can point my gradle builds' distributionUrl at a proget feed instead of the external feed. I don't see a gradle type in the connector setup pane, is there a way to do this?
      Thanks!

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        Hi @mcascone ,

        I'm almost certain that you can just set up a Maven feed/connector for this purpose -- please let us know, I'd love to update the docs to clarify.

        You probaly won't be able to "see" the packages from searching (this requires an index that many repos don't have), but only navigating to artifacts directly.

        Cheers,
        Alana

        1 Reply Last reply Reply Quote 0
        • MaxCasconeM Offline
          MaxCascone
          last edited by MaxCascone

          Hi, thanks. I'm not sure I've done it correctly, but it doesn't appear to be working.

          I have the connector pointing at https://services.gradle.org/distributions/ and am using the connector in a new feed, public-gradle.

          If I search for "gradle" it finds no matches.

          I'm also getting a certificate error when running gradle, but i don't know if that's coming from my connection to proget or proget's connection to gradle.org.

          Downloading https://proget.mycompany.com/maven2/public-gradle/gradle-7.3-bin.zip
          
          Exception in thread "main" javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
          
          atrippA 1 Reply Last reply Reply Quote 0
          • atrippA Offline
            atripp inedo-engineer @MaxCascone
            last edited by

            Hi @mcascone

            Looking closer, it doesn't appear that https://services.gradle.org/distributions/ is a maven repository after all (no folder structure, missing metadata xml files)? It looks just a regular web page (HTML) with links to files that can be downloaded (i.e. there's no API)

            This seems like something you should make an asset directory for (but obviously a connector wouldn't be possible, since there's no API ). They probably just prepend distributionUrl to a known file name, like gradle-7.3-bin.zip?

            The error is definitely related to the SSL/HTTPS connection from Java (Gradle) to IIS (ProGet). It's certainly something you need to configure in Java, but I'm afraid I have no idea how to do that -- it does seem to be a common question people ask about (found on Stack overflow -- https://stackoverflow.com/questions/9210514/unable-to-find-valid-certification-path-to-requested-target-error-even-after-c)

            After you fix that, you could make an asset directory probably. Please let us know, would be nice to document!

            Cheers.
            Alana

            1 Reply Last reply Reply Quote 0
            • MaxCasconeM Offline
              MaxCascone
              last edited by

              That makes sense. Is there any way to import files into an Asset Dir from a URL - so I don't have to download the file and import it to ProGet manually?

              atrippA 1 Reply Last reply Reply Quote 0
              • atrippA Offline
                atripp inedo-engineer @MaxCascone
                last edited by

                Hi @mcascone,

                We don't have that functionality in ProGet, but it should be pretty easy to do with a pair of Invoke-WebRequest PowerShell commands :)

                You could probably parse/scrape the HTML and download / upload in bulk as well.

                Please share the script if you end up doing that, it might be useful for other usecases as well!

                Cheers,
                Alana

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 1 / 1
                • First post
                  Last post
                Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation