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

[polyglot-yaml] Add map support for dependency parsing #148

Open
Tzrlk opened this issue Nov 7, 2017 · 0 comments
Open

[polyglot-yaml] Add map support for dependency parsing #148

Tzrlk opened this issue Nov 7, 2017 · 0 comments

Comments

@Tzrlk
Copy link

Tzrlk commented Nov 7, 2017

One thing I've wanted for a while to keep my dependencies clearly fenced was a map-based approach:

dependencies:

  compile:
    - &kotlin { groupId: org.jetbrains.kotlin, artifactId: kotlin-stdlib-jre8, version: 1.1.51 }
    - &slf4j  { groupId: org.slf4j,            artifactId: slf4j-api,          version: 1.7.22 }

  test:
    - { groupId: junit, artifactId: junit, version: "${version.junit}" }
    - { <<: *kotlin, artifactId: kotlin-test }
    - { <<: *kotlin, artifactId: kotlin-reflect }
    - { <<: *slf4j,  artifactId: slf4j-log4j12 }

This is very much a nice-to-have, but it makes writing dependencies a lot clearer and straightforward for me.

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

1 participant