ktor multiplatform dependencies problem for ktor_version 1.0.0-beta-3/beta-4











up vote
0
down vote

favorite












I am currently doing a multiplaform project. Web Front end is implemented in kotlin-react, backend is implemented with ktor, android is the lovely kotlin, and the desktop is implemeted using tornadoFX.



I have my multiplatform modules set up but can't seem to find a way to include the io.ktor:ktor-client:1.0.0-beta-4 gradle dependencies to work on all different platforms, I even tried adding





  1. io.ktor:ktor-client-core:$ktor_version to my common module's dependencies


  2. io.ktor:ktor-client-core-jvm:$ktor_version to my jvm module's dependencies


  3. io.ktor:ktor-client-core-js:$ktor_version to my js module's dependencies


  4. io.ktor:ktor-client-android:$ktor_version to my android module's dependencies


Nothing seems to work whats ever, IntelliJ seems to download the respective dependencies but gradle build says this



FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':asoftlibs:asoft-view:asoft-view-cmn:compileKotlinCommon'.
> Could not resolve all files for configuration ':asoftlibs:asoft-view:asoft-view-cmn:compileClasspath'.
> Could not find io.ktor:ktor-client-core:1.0.0-beta-4.
Searched in the following locations:
https://repo.maven.apache.org/maven2/io/ktor/ktor-client-core/1.0.0-beta-4/ktor-client-core-1.0.0-beta-4.pom
https://repo.maven.apache.org/maven2/io/ktor/ktor-client-core/1.0.0-beta-4/ktor-client-core-1.0.0-beta-4.jar
Required by:
project :asoftlibs:asoft-view:asoft-view-cmn > project :asoftlibs:asoft-core:asoft-core-cmn

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s
16 actionable tasks: 1 executed, 15 up-to-date


After going through github issues, I realized it was a migration of the libraries to the multiplatform conversions. Problem is I still don't know how to include these liblaries individually into my project



An assistance would be helpful










share|improve this question


























    up vote
    0
    down vote

    favorite












    I am currently doing a multiplaform project. Web Front end is implemented in kotlin-react, backend is implemented with ktor, android is the lovely kotlin, and the desktop is implemeted using tornadoFX.



    I have my multiplatform modules set up but can't seem to find a way to include the io.ktor:ktor-client:1.0.0-beta-4 gradle dependencies to work on all different platforms, I even tried adding





    1. io.ktor:ktor-client-core:$ktor_version to my common module's dependencies


    2. io.ktor:ktor-client-core-jvm:$ktor_version to my jvm module's dependencies


    3. io.ktor:ktor-client-core-js:$ktor_version to my js module's dependencies


    4. io.ktor:ktor-client-android:$ktor_version to my android module's dependencies


    Nothing seems to work whats ever, IntelliJ seems to download the respective dependencies but gradle build says this



    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':asoftlibs:asoft-view:asoft-view-cmn:compileKotlinCommon'.
    > Could not resolve all files for configuration ':asoftlibs:asoft-view:asoft-view-cmn:compileClasspath'.
    > Could not find io.ktor:ktor-client-core:1.0.0-beta-4.
    Searched in the following locations:
    https://repo.maven.apache.org/maven2/io/ktor/ktor-client-core/1.0.0-beta-4/ktor-client-core-1.0.0-beta-4.pom
    https://repo.maven.apache.org/maven2/io/ktor/ktor-client-core/1.0.0-beta-4/ktor-client-core-1.0.0-beta-4.jar
    Required by:
    project :asoftlibs:asoft-view:asoft-view-cmn > project :asoftlibs:asoft-core:asoft-core-cmn

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https://help.gradle.org

    BUILD FAILED in 2s
    16 actionable tasks: 1 executed, 15 up-to-date


    After going through github issues, I realized it was a migration of the libraries to the multiplatform conversions. Problem is I still don't know how to include these liblaries individually into my project



    An assistance would be helpful










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am currently doing a multiplaform project. Web Front end is implemented in kotlin-react, backend is implemented with ktor, android is the lovely kotlin, and the desktop is implemeted using tornadoFX.



      I have my multiplatform modules set up but can't seem to find a way to include the io.ktor:ktor-client:1.0.0-beta-4 gradle dependencies to work on all different platforms, I even tried adding





      1. io.ktor:ktor-client-core:$ktor_version to my common module's dependencies


      2. io.ktor:ktor-client-core-jvm:$ktor_version to my jvm module's dependencies


      3. io.ktor:ktor-client-core-js:$ktor_version to my js module's dependencies


      4. io.ktor:ktor-client-android:$ktor_version to my android module's dependencies


      Nothing seems to work whats ever, IntelliJ seems to download the respective dependencies but gradle build says this



      FAILURE: Build failed with an exception.

      * What went wrong:
      Execution failed for task ':asoftlibs:asoft-view:asoft-view-cmn:compileKotlinCommon'.
      > Could not resolve all files for configuration ':asoftlibs:asoft-view:asoft-view-cmn:compileClasspath'.
      > Could not find io.ktor:ktor-client-core:1.0.0-beta-4.
      Searched in the following locations:
      https://repo.maven.apache.org/maven2/io/ktor/ktor-client-core/1.0.0-beta-4/ktor-client-core-1.0.0-beta-4.pom
      https://repo.maven.apache.org/maven2/io/ktor/ktor-client-core/1.0.0-beta-4/ktor-client-core-1.0.0-beta-4.jar
      Required by:
      project :asoftlibs:asoft-view:asoft-view-cmn > project :asoftlibs:asoft-core:asoft-core-cmn

      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

      * Get more help at https://help.gradle.org

      BUILD FAILED in 2s
      16 actionable tasks: 1 executed, 15 up-to-date


      After going through github issues, I realized it was a migration of the libraries to the multiplatform conversions. Problem is I still don't know how to include these liblaries individually into my project



      An assistance would be helpful










      share|improve this question













      I am currently doing a multiplaform project. Web Front end is implemented in kotlin-react, backend is implemented with ktor, android is the lovely kotlin, and the desktop is implemeted using tornadoFX.



      I have my multiplatform modules set up but can't seem to find a way to include the io.ktor:ktor-client:1.0.0-beta-4 gradle dependencies to work on all different platforms, I even tried adding





      1. io.ktor:ktor-client-core:$ktor_version to my common module's dependencies


      2. io.ktor:ktor-client-core-jvm:$ktor_version to my jvm module's dependencies


      3. io.ktor:ktor-client-core-js:$ktor_version to my js module's dependencies


      4. io.ktor:ktor-client-android:$ktor_version to my android module's dependencies


      Nothing seems to work whats ever, IntelliJ seems to download the respective dependencies but gradle build says this



      FAILURE: Build failed with an exception.

      * What went wrong:
      Execution failed for task ':asoftlibs:asoft-view:asoft-view-cmn:compileKotlinCommon'.
      > Could not resolve all files for configuration ':asoftlibs:asoft-view:asoft-view-cmn:compileClasspath'.
      > Could not find io.ktor:ktor-client-core:1.0.0-beta-4.
      Searched in the following locations:
      https://repo.maven.apache.org/maven2/io/ktor/ktor-client-core/1.0.0-beta-4/ktor-client-core-1.0.0-beta-4.pom
      https://repo.maven.apache.org/maven2/io/ktor/ktor-client-core/1.0.0-beta-4/ktor-client-core-1.0.0-beta-4.jar
      Required by:
      project :asoftlibs:asoft-view:asoft-view-cmn > project :asoftlibs:asoft-core:asoft-core-cmn

      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

      * Get more help at https://help.gradle.org

      BUILD FAILED in 2s
      16 actionable tasks: 1 executed, 15 up-to-date


      After going through github issues, I realized it was a migration of the libraries to the multiplatform conversions. Problem is I still don't know how to include these liblaries individually into my project



      An assistance would be helpful







      gradle kotlin ktor






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 15 at 1:41









      andylamax

      29412




      29412
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Please check the repository section of your build script.



          It should contain the ktor repository:



          repositories {
          ...
          maven { url "https://dl.bintray.com/kotlin/ktor" }
          }


          You could read official documentation for the multiplatform client: https://ktor.io/clients/http-client/multiplatform.html






          share|improve this answer





















          • I already had that in build.gradle it ddnt work. It has something to do with versions I think
            – andylamax
            Nov 15 at 20:37










          • Could you provide detailed project setup?
            – Leonid
            Nov 20 at 8:46











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53311268%2fktor-multiplatform-dependencies-problem-for-ktor-version-1-0-0-beta-3-beta-4%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          Please check the repository section of your build script.



          It should contain the ktor repository:



          repositories {
          ...
          maven { url "https://dl.bintray.com/kotlin/ktor" }
          }


          You could read official documentation for the multiplatform client: https://ktor.io/clients/http-client/multiplatform.html






          share|improve this answer





















          • I already had that in build.gradle it ddnt work. It has something to do with versions I think
            – andylamax
            Nov 15 at 20:37










          • Could you provide detailed project setup?
            – Leonid
            Nov 20 at 8:46















          up vote
          0
          down vote













          Please check the repository section of your build script.



          It should contain the ktor repository:



          repositories {
          ...
          maven { url "https://dl.bintray.com/kotlin/ktor" }
          }


          You could read official documentation for the multiplatform client: https://ktor.io/clients/http-client/multiplatform.html






          share|improve this answer





















          • I already had that in build.gradle it ddnt work. It has something to do with versions I think
            – andylamax
            Nov 15 at 20:37










          • Could you provide detailed project setup?
            – Leonid
            Nov 20 at 8:46













          up vote
          0
          down vote










          up vote
          0
          down vote









          Please check the repository section of your build script.



          It should contain the ktor repository:



          repositories {
          ...
          maven { url "https://dl.bintray.com/kotlin/ktor" }
          }


          You could read official documentation for the multiplatform client: https://ktor.io/clients/http-client/multiplatform.html






          share|improve this answer












          Please check the repository section of your build script.



          It should contain the ktor repository:



          repositories {
          ...
          maven { url "https://dl.bintray.com/kotlin/ktor" }
          }


          You could read official documentation for the multiplatform client: https://ktor.io/clients/http-client/multiplatform.html







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 15 at 5:45









          Leonid

          1065




          1065












          • I already had that in build.gradle it ddnt work. It has something to do with versions I think
            – andylamax
            Nov 15 at 20:37










          • Could you provide detailed project setup?
            – Leonid
            Nov 20 at 8:46


















          • I already had that in build.gradle it ddnt work. It has something to do with versions I think
            – andylamax
            Nov 15 at 20:37










          • Could you provide detailed project setup?
            – Leonid
            Nov 20 at 8:46
















          I already had that in build.gradle it ddnt work. It has something to do with versions I think
          – andylamax
          Nov 15 at 20:37




          I already had that in build.gradle it ddnt work. It has something to do with versions I think
          – andylamax
          Nov 15 at 20:37












          Could you provide detailed project setup?
          – Leonid
          Nov 20 at 8:46




          Could you provide detailed project setup?
          – Leonid
          Nov 20 at 8:46


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53311268%2fktor-multiplatform-dependencies-problem-for-ktor-version-1-0-0-beta-3-beta-4%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents