How to publish Java Annotation Processing Library online?












0















Within my application room,
I made an annotation processing library roomextension that I want to publish in online and use it with other projects.



The library generates SQL scripts for creating Room tables.



I wanted to make it simple and use JitPack.io but after following the steps of JitPack.io, I am not able to get the library in my different projects.



allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}

dependencies {
implementation 'com.github.musooff.room:roomextension:0.1.0'
}


But, when I sync I get an error of




Failed to resolve: com.github.musooff.room:roomextension:0.1.0




Note that, room is an repo that has roomextension library and app which is aenter code here simple android application that uses roomextension.



Well, while using it locally, I was using



kapt project(":roomextension")


So, I am also not sure what to use kapt or implementation when getting by jitpack.io.
For the sake of trying, I used



kapt 'com.github.musooff.room:roomextension:0.1.0'


But when I build, I get




Could not find com.github.musooff.room:roomextension:0.1.0. Searched
in the following locations:
file:/Users/user/Library/Android/sdk/extras/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
file:/Users/user/Library/Android/sdk/extras/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
file:/Users/user/Library/Android/sdk/extras/google/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
file:/Users/user/Library/Android/sdk/extras/google/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
file:/Users/user/Library/Android/sdk/extras/android/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
file:/Users/user/Library/Android/sdk/extras/android/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
https://dl.google.com/dl/android/maven2/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
https://dl.google.com/dl/android/maven2/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
https://jcenter.bintray.com/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
https://jcenter.bintray.com/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
https://jitpack.io/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
https://jitpack.io/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
Required by:
project :app




What am I doing wrong and how should I publish it online using JitPack?










share|improve this question





























    0















    Within my application room,
    I made an annotation processing library roomextension that I want to publish in online and use it with other projects.



    The library generates SQL scripts for creating Room tables.



    I wanted to make it simple and use JitPack.io but after following the steps of JitPack.io, I am not able to get the library in my different projects.



    allprojects {
    repositories {
    ...
    maven { url 'https://jitpack.io' }
    }
    }

    dependencies {
    implementation 'com.github.musooff.room:roomextension:0.1.0'
    }


    But, when I sync I get an error of




    Failed to resolve: com.github.musooff.room:roomextension:0.1.0




    Note that, room is an repo that has roomextension library and app which is aenter code here simple android application that uses roomextension.



    Well, while using it locally, I was using



    kapt project(":roomextension")


    So, I am also not sure what to use kapt or implementation when getting by jitpack.io.
    For the sake of trying, I used



    kapt 'com.github.musooff.room:roomextension:0.1.0'


    But when I build, I get




    Could not find com.github.musooff.room:roomextension:0.1.0. Searched
    in the following locations:
    file:/Users/user/Library/Android/sdk/extras/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
    file:/Users/user/Library/Android/sdk/extras/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
    file:/Users/user/Library/Android/sdk/extras/google/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
    file:/Users/user/Library/Android/sdk/extras/google/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
    file:/Users/user/Library/Android/sdk/extras/android/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
    file:/Users/user/Library/Android/sdk/extras/android/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
    https://dl.google.com/dl/android/maven2/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
    https://dl.google.com/dl/android/maven2/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
    https://jcenter.bintray.com/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
    https://jcenter.bintray.com/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
    https://jitpack.io/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
    https://jitpack.io/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
    Required by:
    project :app




    What am I doing wrong and how should I publish it online using JitPack?










    share|improve this question



























      0












      0








      0








      Within my application room,
      I made an annotation processing library roomextension that I want to publish in online and use it with other projects.



      The library generates SQL scripts for creating Room tables.



      I wanted to make it simple and use JitPack.io but after following the steps of JitPack.io, I am not able to get the library in my different projects.



      allprojects {
      repositories {
      ...
      maven { url 'https://jitpack.io' }
      }
      }

      dependencies {
      implementation 'com.github.musooff.room:roomextension:0.1.0'
      }


      But, when I sync I get an error of




      Failed to resolve: com.github.musooff.room:roomextension:0.1.0




      Note that, room is an repo that has roomextension library and app which is aenter code here simple android application that uses roomextension.



      Well, while using it locally, I was using



      kapt project(":roomextension")


      So, I am also not sure what to use kapt or implementation when getting by jitpack.io.
      For the sake of trying, I used



      kapt 'com.github.musooff.room:roomextension:0.1.0'


      But when I build, I get




      Could not find com.github.musooff.room:roomextension:0.1.0. Searched
      in the following locations:
      file:/Users/user/Library/Android/sdk/extras/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
      file:/Users/user/Library/Android/sdk/extras/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
      file:/Users/user/Library/Android/sdk/extras/google/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
      file:/Users/user/Library/Android/sdk/extras/google/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
      file:/Users/user/Library/Android/sdk/extras/android/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
      file:/Users/user/Library/Android/sdk/extras/android/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
      https://dl.google.com/dl/android/maven2/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
      https://dl.google.com/dl/android/maven2/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
      https://jcenter.bintray.com/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
      https://jcenter.bintray.com/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
      https://jitpack.io/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
      https://jitpack.io/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
      Required by:
      project :app




      What am I doing wrong and how should I publish it online using JitPack?










      share|improve this question
















      Within my application room,
      I made an annotation processing library roomextension that I want to publish in online and use it with other projects.



      The library generates SQL scripts for creating Room tables.



      I wanted to make it simple and use JitPack.io but after following the steps of JitPack.io, I am not able to get the library in my different projects.



      allprojects {
      repositories {
      ...
      maven { url 'https://jitpack.io' }
      }
      }

      dependencies {
      implementation 'com.github.musooff.room:roomextension:0.1.0'
      }


      But, when I sync I get an error of




      Failed to resolve: com.github.musooff.room:roomextension:0.1.0




      Note that, room is an repo that has roomextension library and app which is aenter code here simple android application that uses roomextension.



      Well, while using it locally, I was using



      kapt project(":roomextension")


      So, I am also not sure what to use kapt or implementation when getting by jitpack.io.
      For the sake of trying, I used



      kapt 'com.github.musooff.room:roomextension:0.1.0'


      But when I build, I get




      Could not find com.github.musooff.room:roomextension:0.1.0. Searched
      in the following locations:
      file:/Users/user/Library/Android/sdk/extras/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
      file:/Users/user/Library/Android/sdk/extras/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
      file:/Users/user/Library/Android/sdk/extras/google/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
      file:/Users/user/Library/Android/sdk/extras/google/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
      file:/Users/user/Library/Android/sdk/extras/android/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
      file:/Users/user/Library/Android/sdk/extras/android/m2repository/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
      https://dl.google.com/dl/android/maven2/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
      https://dl.google.com/dl/android/maven2/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
      https://jcenter.bintray.com/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
      https://jcenter.bintray.com/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
      https://jitpack.io/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.pom
      https://jitpack.io/com/github/musooff/room/roomextension/0.1.0/roomextension-0.1.0.jar
      Required by:
      project :app




      What am I doing wrong and how should I publish it online using JitPack?







      java module annotation-processing kapt jitpack






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 30 '18 at 14:30







      musooff

















      asked Dec 29 '18 at 8:52









      musooffmusooff

      496212




      496212
























          0






          active

          oldest

          votes











          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',
          autoActivateHeartbeat: false,
          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%2f53968106%2fhow-to-publish-java-annotation-processing-library-online%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53968106%2fhow-to-publish-java-annotation-processing-library-online%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

          Monofisismo

          Angular Downloading a file using contenturl with Basic Authentication

          Olmecas