Comments (11)
Hi,
any plan to publish this artifact to maven central?
Thanks
Bye
Piero
from java-ipfs-http-client.
How about hosting Maven artifacts on IPFS directly?
from java-ipfs-http-client.
Sure, I can do that if you would find it useful.
from java-ipfs-http-client.
Hi,
I added a pull request #3 for project mavenization.
Bye
Piero
from java-ipfs-http-client.
I don't normally use maven myself, but I'm very happy if someone else wants to take responsibility for pushing to maven central.
from java-ipfs-http-client.
publishing to maven-central might be difficult as the package/group is org/ipfs - but the website ipfs.org does not belong to ipfs ( correct @jbenet ? ) - maven-central enforces that you own the domain correlating to your group/package.
I am in the process of creating a kotlin library which then can also be consumed from java - I will make it compatible with jitpack.io so you can consume the lib with the same comfort as it would come from jcenter or maven central - would be great to know your use-cases ( which api endpoints do you use ) as I will begin with a small command subset as I think the API has to be streamlined ( ipfs/kubo#2803 )
from java-ipfs-http-client.
here the link to the java-api: https://github.com/ligi/ipfs-api-kotlin - you can already fetch it from jitpack
from java-ipfs-http-client.
I've been trying to incorporate java-ipfs-api into a maven library, and as of right now the only way to do so is to either include the IPFS.jar, Multihash.jar and Multiaddr.jar binaries (using Maven shaded JARs) or fork this repository and re-do the whole thing.
One of the principal problems is that the naming convention used, org.ipfs.api, is problematic in several ways: as @ligi points out, ipfs.org isn't the domain being used. Second, "api" is not the name of the JAR file produced (currently, it is IFPS.jar). Thirdly, Multiaddr.jar and Multihash.jar use the same domain naming convention (but use mixed case in the JAR filename).
I'd like to fix it, but renaming the libraries is touchy and I'd like @ianopolous or @jbenet to chime in before I sink any more time into it.
from java-ipfs-http-client.
I'm happy to change the package hierarchy to match some domain that IPFS controls for the sake of compatibility with Maven users. "io.ipfs" would be my first choice - it has the nice potential of serving artifacts directly through IPFS via the public gateway. Does that fit whatever requirements maven has? I can also switch to lowercase names.
from java-ipfs-http-client.
Good, io.ipfs makes sense. It makes things easier if names are as matchy as possible, though it can make it wordy. So, for clarity, I propose:
github.com/ipfs/java-ipfs-api is io.ipfs.api
with the filename ipfs.jar
github.com/multiformats/java-multihash is io.ipfs.multihash
with the filename multihash.jar
github.com/multiformats/java-multiaddr is io.ipfs.multiaddr
with the filename multiaddr.jar
Code structure: the code for all three currently lives in org/ipfs/api
, and for multihash and multiaddr this should be moved to `org/ipfs/multi[hash|addr].
Versioning: The current IPFS.jar doesn't incorporate version numbers, though release tags do exist (v0.4.3.1; also for multihash and multiaddr, v0.1). Since the names would change, and paths within, and required dependencies, this would mean a major version update, perhaps 1.0 for all three of them?
from java-ipfs-http-client.
Those names are all fine by me. I don't have a strong view on version numbers. For java-ipfs-api I've been tracking the IPFS version that it supports, but happy to move to semantic versioning or something else more conventional.
from java-ipfs-http-client.
Related Issues (20)
- URL Parameters not encoded | 400 bad request HOT 2
- key.list() or .gen() always throw io.ipfs.cid.Cid$CidEncodingException: Invalid cid bytes HOT 2
- IPFS.add: How the set options when adding file to IPFS? HOT 3
- IOException contacting IPFS daemon HOT 3
- Exception thrown for ipfs.key.list() HOT 3
- IPFS.timeout( int timeout ) in version 1.3.3 is not working HOT 3
- Is Project Dead? HOT 14
- Looking for a maintainer familiar with Java! 🙏 HOT 4
- mvn test fails with java.net.SocketTimeoutException: Read timed out HOT 2
- Potential numeric overflow in JSONParser.java. can't handle complete uint64 range from kubo rpc api. HOT 1
- java-ipfs-http-client-v1.3.3 cannot support base1 encoding for ipfs v0.15.0 HOT 1
- is v1.3.4 release coming? HOT 2
- v1.4.0 does not support java8 HOT 1
- Dual build definitions HOT 6
- When a large file is uploaded, the heap resources are not released HOT 2
- AddArgs HOT 2
- Have code used unixfs.proto DataType HOT 1
- Why not use entity objects HOT 1
- Question ? HOT 1
- when i use pubsub shutdown ipfs will bug HOT 1
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 java-ipfs-http-client.