Comments (13)
Done 20 days ago
from android-switch-backport.
Actually I think the request is that this library should be available on
Maven central. I'll look into it.
BoD
On Feb 14, 2013 5:02 PM, "Benoit Billington" [email protected]
wrote:
Done 20 days ago
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-13559109.
from android-switch-backport.
Yup, exactly :)
from android-switch-backport.
oups sorry ;)
Benoit Billington
On Thu, Feb 14, 2013 at 10:32 PM, Donn Felker [email protected]:
Yup, exactly :)
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-13579841.
from android-switch-backport.
Yes, adding the dependency on maven central will be a great help.
On a side note:
I tried the following steps (which did not work) to get it added to my local repository
I cloned the project and ran the maven package goal. That gave me an .apklib file and a .jar file
I used the following command to deploy the apklib to my repo
mvn deploy:deploy-file -Durl=file:///tmp/mvn
-DrepositoryId={MY REPO ID}
-Dfile=android-switch-backport-1.0.apklib
-DgroupId=org.jraf
-DartifactId=android-switch-backport
-Dversion=1.0
-DgeneratePom=true
-Dpackaging=apklib
But it seems to not work.....
Any ideas in the meantime on what I am doing wrong?
from android-switch-backport.
Running mvn clean install will install it in your local repository.
If you want then to upload it to your company repository you can use the
pom and apklib located in your local rep.
On 15 Feb 2013 21:27, "AkashJ" [email protected] wrote:
Yes, adding the dependency on maven central will be a great help.
On a side note:
I tried the following steps (which did not work) to get it added to my
local repositoryI cloned the project and ran the maven package goal. That gave me an
.apklib file and a .jar fileI used the following command to deploy the apklib to my repo
mvn deploy:deploy-file -Durl=file:///tmp/mvn
-DrepositoryId={MY REPO ID}
-Dfile=android-switch-backport-1.0.apklib
-DgroupId=org.jraf
-DartifactId=android-switch-backport
-Dversion=1.0
-DgeneratePom=true
-Dpackaging=apklibBut it seems to not work.....
Any ideas in the meantime on what I am doing wrong?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-13626336.
from android-switch-backport.
Got it! Thanks.
from android-switch-backport.
I started the formalities to publish the artifact to Maven Central - waiting for their reply now. I'll keep you posted.
from android-switch-backport.
The artifact should now be available in Maven Central. Can you guys check that it works as expected? Thanks.
from android-switch-backport.
Anyone? :)
from android-switch-backport.
Just tried it out.
Using the dependency from the information available here : http://search.maven.org/#artifactdetails|org.jraf|android-switch-backport|1.0|apklib results in the following error
Could not find artifact org.jraf:android-switch-backport:jar:1.0 in central (http://repo1.maven.org/maven2) -> [Help 1]
I think the issue arises because dependency is an apklib
So adding a type tag resolves the issue. So the dependency should look like
<dependency>
<groupId>org.jraf</groupId>
<artifactId>android-switch-backport</artifactId>
<version>1.0</version>
<type>apklib</type>
</dependency>
Which results in a successful download ad follows
Downloaded: http://repo1.maven.org/maven2/org/jraf/android-switch-backport/1.0/android-switch-backport-1.0.apklib (67 KB at 850.8 KB/sec)
After maven downloads the dependency the android maven plugin will expand that and add the dependency as a generated external library in the gen-external-apklibs directory.
I tested this using the following.
maven 3.0.3
Intellij Idea 12
#UPDATE : using proper github markdowns for mentioning the dependency
from android-switch-backport.
Thanks a lot for the feedback! :)
I'll see if I can do something about the incorrect info on this maven.org page but I'm guessing it is just automatically (incorrectly) generated.
I'll then update the readme file and close this issue.
from android-switch-backport.
Finally updated the readme :)
from android-switch-backport.
Related Issues (20)
- No titlebar crash the example HOT 1
- [Q] Is it possible to resize the Switch height to make it bigger? HOT 1
- [Q] Is it there a way to change the color of the ON button? HOT 1
- Track does not work in switch preference HOT 1
- Can't get the preference to show up! HOT 2
- Text color of switch not set correctly HOT 2
- Gradle build gets stuck after including repo and dependency HOT 3
- JRAF repo not responding HOT 9
- Rendering Problems HOT 1
- Attribute has already been defined exception when using lib with compile ('com.doomonafireball.betterpickers:library:1.5.2') HOT 14
- Customize text on switch and color HOT 4
- Problem to change thumb and track drawables HOT 1
- Nullpointerexception when used on Nexus4 HOT 2
- OnPreferenceChange return False, Switch Changes HOT 3
- NullPointerException HOT 8
- Publish artefact on maven central instead on your own nexus HOT 3
- Publish on Maven Central or JCenter HOT 4
- JRAF.org is down HOT 3
- Incompatible with Support Library material Switch theme HOT 4
- Getting Null pointer exception HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-switch-backport.