PagerSlidingTabStrip icon indicating copy to clipboard operation
PagerSlidingTabStrip copied to clipboard

Create Maven repository

Open vbauer opened this issue 11 years ago • 26 comments

Can you please create Maven repository on GitHub or deploy library in Maven Central Repository? It will be very useful for all developers. Many thanks!

vbauer avatar Jul 02 '13 19:07 vbauer

+1

sealskej avatar Aug 14 '13 17:08 sealskej

+1

MichaelEvans avatar Aug 23 '13 13:08 MichaelEvans

+1

jeffdcamp avatar Aug 23 '13 14:08 jeffdcamp

+1

Krylez-zz avatar Sep 13 '13 17:09 Krylez-zz

Deployed aar to Ark: https://github.com/ark/ark

repositories {
    maven {
        url 'https://raw.github.com/ark/ark/master/releases/'
    }
}
dependencies {
    compile 'com.astuetz:pagerslidingtabstrip:1.0.0'
}

ghost avatar Sep 17 '13 05:09 ghost

@astuetz :+1: But could you also add support for plain Maven? I'm not ready to switch the the new gradle build system on all of my projects.

jondwillis avatar Sep 23 '13 19:09 jondwillis

@astuetz if it helps at all... https://github.com/Citrrus/maven-artifacts/tree/master/releases/com/astuetz built from https://github.com/jondwillis/PagerSlidingTabStrip 1.0-SNAPSHOT with some changes to your pom.xml's.

Readme would contain something like:

<dependency>
   <groupId>com.astuetz.pagerslidingtabstrip</groupId>
   <artifactId>pagerslidingtabstrip</artifactId>
   <version>1.0-SNAPSHOT</version>
   <type>apklib</type>
</dependency>

after adding the correct repo.

jondwillis avatar Sep 23 '13 19:09 jondwillis

Hello.

I've tried adding the library like above (compile 'com.astuetz:pagerslidingtabstrip:1.0.0', from ARK), but I get the below error, because android-support-v4.jar is included in the /libs folder of the library, instead of being compiled in build.gradle. Can you please check to see why it isn't getting the support library from the build.gradle file instead of a local jar ? I cannot currently use the library with Gradle because of this. Thanks.

Gradle: UNEXPECTED TOP-LEVEL EXCEPTION: Gradle: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoIcsImpl;

bogdanzurac avatar Oct 01 '13 09:10 bogdanzurac

Hello again. Any info on the above matter ? Or should I file a separate bug ?

bogdanzurac avatar Oct 30 '13 09:10 bogdanzurac

Is this library dead or wtf is going on ? Reminds me of bugs listed on Launchpad for Ubuntu. If you'd get lucky, you'd have someone contacting you after a year or so, lol.

bogdanzurac avatar Nov 12 '13 15:11 bogdanzurac

+1

Macarse avatar Dec 12 '13 00:12 Macarse

astuetz seems to have wandered off from GitHub last spring. I wonder if he'll come back?

Turnsole avatar Dec 12 '13 14:12 Turnsole

Worked on maven repo yesterday, will be available in the following days ;)

ghost avatar Dec 12 '13 14:12 ghost

Awesome! :D Thanks.

Turnsole avatar Dec 12 '13 16:12 Turnsole

Published 1.0.1 to Maven Central: http://search.maven.org/#artifactdetails%7Ccom.astuetz%7Cpagerslidingtabstrip%7C1.0.1%7Caar

ghost avatar Dec 13 '13 11:12 ghost

Cannot resolve symbol PagerSlidingTabStrip. Does anyone else get this ?

bogdanzurac avatar Dec 13 '13 21:12 bogdanzurac

Did you read the updated readme/changelog? The library's namespace has been updated.

esteluk avatar Dec 13 '13 21:12 esteluk

I didn't even need to read that, I've noticed it from the maven dep. That's not the point anyway.. I'm trying the autocomplete in AS and it doesn't suggest any class to import from the lib, so apparently it isn't recognized.

bogdanzurac avatar Dec 13 '13 21:12 bogdanzurac

@bogdanzurac Have you tried Tools - Android - Sync Project with Gradle Files ?

ghost avatar Dec 16 '13 17:12 ghost

The first thing I've done.

bogdanzurac avatar Dec 16 '13 17:12 bogdanzurac

@bogdanzurac Which version of AS are you using? I just started a new project with 0.3.7 and everything worked as expected.

ghost avatar Dec 16 '13 20:12 ghost

I'm using Android Studio 0.3.7, with a Gradle 1.8 wrapper, and had no issues.

Turnsole avatar Dec 16 '13 21:12 Turnsole

@astuetz Could you add apklib for Maven users as well?

ustav avatar Jan 03 '14 11:01 ustav

Apparently, after a re-import, the classes were present. Before the re-import, in the build/exploded-bundles/ComAstuetzPagerslidingtabstrip101.aar folder, the classes.jar file was not accessible for AS as the other dependencies in my project were. If you double clicked it in the project structure window in AS, nothing happened. If you double-clicked the other dependencies classes.jar file, it would open the archive. This problem was present on AS 0.4 and 0.4.2. Strange. Anyhow, thank you for releasing this on Maven Central, really appreciate it !

bogdanzurac avatar Jan 09 '14 10:01 bogdanzurac

Had the same problem as @bogdanzurac . After banging my head to a wall, reimporting, syncing and god not know what, only upgrade to AS 0.4.3. helped.

zoltanf avatar Jan 24 '14 00:01 zoltanf

That Tools - Android - Sync Project with Gradle Files thing you posted saved me! Thanks for that tip!

rmcsc avatar Jan 28 '14 03:01 rmcsc