Git Product home page Git Product logo

Comments (9)

larixer avatar larixer commented on July 18, 2024

Please clarify why do you think there are unnecessary dependencies. Why groovy 2.2.1 is obsolete? Maybe it's not the latest version, but why should it be considered obsolete?

from grain.

altavir avatar altavir commented on July 18, 2024

The problem is that initial dependency download takes 20-30 minutes and some dependencies (jruby, jython) are quite large. The total "weight" of dependencies is more than 50 mb. So for now grain is not portable at all, which is a bit frustrating. Does one realy need jruby and jython to run grain?

As for old dependencies. They are not quite obsolete, but using groovy 2.4.5 and latest gradle distribution could make grain work faster and make integration with external code easier.

from grain.

larixer avatar larixer commented on July 18, 2024

Updating Groovy to 2.4.5 is not a problem a 1 minute task. As for JRuby and Jython... they are kinda optional, Grain is able to use system installed ruby and python if they are available. But if one wants theme code to be portable one needs to support JRuby/Jython, because the user of the theme might not have system-installed ruby and if case theme uses SASS/Compass, then it won't work out.

from grain.

larixer avatar larixer commented on July 18, 2024

The real question is what are your needs. Do you want to embed Grain and dependency size doesn't allow you to do so? Are you going to use tools from Ruby and Python world (SCSS/SASS, pygments highlighting)?

from grain.

altavir avatar altavir commented on July 18, 2024

Ok, got it.
I am using grain as a standalone site generator or as integrated part of java/groovy application, I don't need Ruby or Python at all.

from grain.

larixer avatar larixer commented on July 18, 2024

Okay, I have removed some obsolete dependencies and updated to Groovy 2.4.5 in 0.7.0-SNAPSHOT. To use it just set
grain.version = 0.7.0-SNAPSHOT
in application.properties, important to have end of line in this file

Removing dependency on Jython/JRuby and related dependencies needs thinking and discussion. We will discuss and let you know later. Feel free to propose your solution/ideas to the issue of reducing dependency size.

from grain.

altavir avatar altavir commented on July 18, 2024

Ok, thank you very much. Will try it right away.

from grain.

larixer avatar larixer commented on July 18, 2024

Please note, that when you are using Grain you can exclude JRuby and Jython yourself, by using gradle exclude functionality, i.e.:

dependencies {
    compile ("com.sysgears.grain:grain:$project.grainVersion") {
        exclude group: "org.python"
        exclude group: "org.jruby"
    }
    ...
}

from grain.

altavir avatar altavir commented on July 18, 2024

Version 0.7.0 with gradle 2.10 works at least 2 times faster (maybe 3 times). There are still problems with portability, but I'd better open new Issue.

from grain.

Related Issues (19)

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.