GithubHelp home page GithubHelp logo

librariesio / gradle-parser Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 6.0 45 KB

:coffee: Parse gradle files and return JSON

License: MIT License

JavaScript 82.72% Dockerfile 17.28%
dependencies gradle librariesio parser

gradle-parser's Issues

Support dependencies with inline variables

Current state

  • Dependencies with the version specified as an inline text are picked up, e.g. compile "com.squareup.okhttp3:okhttp:3.11.0" (example)
  • Dependencies with the version specified as an inline variable are not picked up, e.g. compile "com.squareup.okhttp3:okhttp:$okhttpVersion" (example)

Target state

  • Both, versions defined as inline text or an inline variable are picked up.

Background

  • Groovy allows to use inline variables in double quoted strings. The variable is typically defined in the same .gradle file or in a separate file such as build.gradle in the root of the project or in properties.gradle which can be stored in different locations and also gets read in by gradle.
  • Another common pattern is to store versions and dependencies strings in the special buildSrc/ module. Here is an example implemented in Kotlin but used from within the Groovy build.gradle files.

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.