Giter Club home page Giter Club logo

Comments (9)

aalmiray avatar aalmiray commented on August 17, 2024

Did you include the ikonli-core dependency?

from ikonli.

rahmanusta avatar rahmanusta commented on August 17, 2024

Ah, it was like it resolved but I overlooked it.

I've needed 4 dependencies;

        <dependency>
            <groupId>org.kordamp.jipsy</groupId>
            <artifactId>jipsy</artifactId>
            <version>0.4.0</version>
        </dependency>
        <dependency>
            <groupId>org.kordamp.ikonli</groupId>
            <artifactId>ikonli-core</artifactId>
            <version>1.7.0</version>
        </dependency>
        <dependency>
            <groupId>org.kordamp.ikonli</groupId>
            <artifactId>ikonli-javafx</artifactId>
            <version>1.7.0</version>
        </dependency>
        <dependency>
            <groupId>org.kordamp.ikonli</groupId>
            <artifactId>ikonli-fontawesome-pack</artifactId>
            <version>1.7.0</version>
        </dependency>

What do you think to resolve some of them transitively ?

Thank you!

from ikonli.

aalmiray avatar aalmiray commented on August 17, 2024

AFAIK ikonli-javafx pulls in ikonli-core as a transitive dependency. jipsy is only needed if you intend to build your own icon packs. Icon packs OTOH only pull in ikonli-core as they do not target an specific UI toolkit such as swing or javafx.

I'm a bit surprised that the transitive dependencies did not work, I haven't encountered a problem when defining just ikonli-javafx and an icon pack with Gradle.

from ikonli.

aalmiray avatar aalmiray commented on August 17, 2024

Aha! I think I see where the problem lies, ikonli-javafx defines the following dependency

<dependencies>
  <dependency>
    <groupId>org.kordamp.ikonli</groupId>
    <artifactId>ikonli-core</artifactId>
    <version>1.7.0</version>
    <scope>runtime</scope>
  </dependency>
</dependencies>

Notice the usage of runtime scope. This is a side effect of the default POM marshalling that the maven-publish Gradle plugin applies to a POM file.

from ikonli.

rahmanusta avatar rahmanusta commented on August 17, 2024

I suppose it is because ikonli-core's scope is runtime and Ikon class is wanted at compile time, at least in maven.

from ikonli.

aalmiray avatar aalmiray commented on August 17, 2024

Yup, the fix is to publish new POMs that do not have runtime scope.

from ikonli.

rahmanusta avatar rahmanusta commented on August 17, 2024

Thank you! In addition I figure out ikonli works without jipsy dependency, FYI.

from ikonli.

aalmiray avatar aalmiray commented on August 17, 2024

Indeed, jipsy is a compile only dependency. In Maven speak it's in provided scope.

from ikonli.

rahmanusta avatar rahmanusta commented on August 17, 2024

👍

from ikonli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.