Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use caliko in a Gradle project? #18

Open
shueja opened this issue Apr 26, 2020 · 6 comments
Open

How to use caliko in a Gradle project? #18

shueja opened this issue Apr 26, 2020 · 6 comments

Comments

@shueja
Copy link

shueja commented Apr 26, 2020

Hello,
I'm probably just bad at Gradle but doing
dependencies{ implementation("au.edu.federation.caliko:caliko:1.3.6") implementation("au.edu.feduni.caliko.visualisation:caliko-visualisation:1.3.6")
gives me
`A problem occurred evaluating root project 'BaseElbow'.

Could not resolve all files for configuration ':runtimeClasspath'.
Could not find au.edu.federation.caliko:caliko:1.3.6.
Searched in the following locations:
- https://jitpack.io/au/edu/federation/caliko/caliko/1.3.6/caliko-1.3.6.pom
- https://jitpack.io/au/edu/federation/caliko/caliko/1.3.6/caliko-1.3.6.jar
- https://repo.maven.apache.org/maven2/au/edu/federation/caliko/caliko/1.3.6/caliko-1.3.6.pom
- https://repo.maven.apache.org/maven2/au/edu/federation/caliko/caliko/1.3.6/caliko-1.3.6.jar
Required by:
project :
Could not find au.edu.feduni.caliko.visualisation:caliko-visualisation:1.3.6.
Searched in the following locations:
- https://jitpack.io/au/edu/feduni/caliko/visualisation/caliko-visualisation/1.3.6/caliko-visualisation-1.3.6.pom
- https://jitpack.io/au/edu/feduni/caliko/visualisation/caliko-visualisation/1.3.6/caliko-visualisation-1.3.6.jar
- https://repo.maven.apache.org/maven2/au/edu/feduni/caliko/visualisation/caliko-visualisation/1.3.6/caliko-visualisation-1.3.6.pom
- https://repo.maven.apache.org/maven2/au/edu/feduni/caliko/visualisation/caliko-visualisation/1.3.6/caliko-visualisation-1.3.6.jar
Required by:
project :
`

What should I use instead?

@alansley
Copy link
Collaborator

I didn't end up uploading Caliko to the maven repos in the end because it was a lot of hoop-jumping that I wasn't really interested in doing.

The easiest way to use the libraries is through the jar files provided in each Caliko release. There's a write-up about how to do this (using Eclipse as the target IDE) in the user documentation.

Cheers!

@salamanders
Copy link

I'm trying the same for Maven, no luck yet.

@salamanders
Copy link

I ended up installing it locally (but the jit path would ne nice for the future)

mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=/ABSOLUTEPATH/caliko-1.3.8.jar
and

        <dependency>
            <groupId>au.edu.federation.caliko</groupId>
            <artifactId>caliko</artifactId>
            <version>1.3.8</version>
        </dependency>

@alansley
Copy link
Collaborator

alansley commented Aug 8, 2020

Unfortunately I'm pretty rubbish with maven - with regard to the jit path, do you mean I should add something like this to the README.md:

To obtain the library in maven via JitPack.io, please add the JitPack repository to your build file:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
     </repository>
</repositories>

And then add the Caliko dependency as shown below:

<dependency>
    <groupId>com.github.FedUni</groupId>
    <artifactId>caliko</artifactId>
    <version>v1.3.8</version>
</dependency>

Is that what you mean? I'd never even heard of jitpack before 5 minutes ago, lol.

@salamanders
Copy link

salamanders commented Aug 8, 2020 via email

@alansley
Copy link
Collaborator

alansley commented Aug 8, 2020

Haha, I know less than you about this stuff, mate.

If you want to fix it then clone the repo, make your changes and submit a pull request with a detailed commit log - I'll accept anything that's sane and useful. Emphasis on sane and useful ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants