Giter Site home page Giter Site logo

gradm's People

Contributors

chachako avatar omico avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

galiren alarasen

gradm's Issues

Remove more restrictions on versions

Currently, Gradm doesn't support the below config in gradm.yaml:

versions:
  androidx:
    compose: "1.2.0-beta03" # supported, versions.androidx.compose
    composeMaterial3: "1.0.0-alpha13" # supported, versions.androidx.composeMaterial3
    compose-material3: "1.0.0-alpha13" # unsupported, expect: versions.androidx.compose.material3
    compose.material3: "1.0.0-alpha13" # unsupported, expect: versions.androidx.compose.material3

Support Bill of Materials (BOM)

Currently, our configuration for BOM in build.gradle.kts will be like this:

dependencies {
    compileOnly(platform(okhttp.bom))
    compileOnly(okhttp)
    compileOnly(okhttp.dnsOverHttps)
    compileOnly(okhttp.interceptor.logging)
}

This looks a bit ugly. We could take advantage of kotlinpoet! And it can be like this:

dependencies {
    compileOnly(okhttp.bom)
    compileOnly(okhttp)
    compileOnly(okhttp.dnsOverHttps)
    compileOnly(okhttp.interceptor.logging)
}

I thought I could make it in the beginning. But the version of kotlinpoet that supports context receivers starts at 1.12.0, and its bundle Kotlin version is 1.7.0. This suddenly makes Gradle unhappy. Thus, I'm unhappy too. :(

Such a "dependencies hell" again! People are always facing and being fxxked by the "dependencies hell." Now we could only stare at this 509a9c9 and pray Gradle will update its bundled Kotlin to 1.7.x soon, which is impossible. :(

Supports unseparated independent alias

Currently, Gradm doesn't support unseparated independent alias.

For example:

dependencies:
  google:
    com.google.android.material:
      material:
        alias: material # codegen issue here
        version: ${versions.material}

You can use the below code as a workaround:

dependencies:
  google:
    com.google.android.material:
      material:
        alias: google.material # works as long as alias contains a dot (or more than one dot)
        version: ${versions.material}

Type-safe project accessors substitution

Type-safe project accessors are great, but the same issue here. The generated is fully Java, with poor readability. And when the name of the composite builds module is the same as that of the main project module, IDEA will prompt an error, but the project can still be successfully compiled.

See also gradle/gradle#24295.

Here is a reproduced example: https://github.com/Omico/gradle-typesafe-accessors-bug.

A prototype implementation can be found at https://github.com/Omico/Gradm/tree/type-safe-project-accessors.

Gradm 2.x

May be changed at any time

Accomplished

More compact format for config (#7)

This new format will take advantage of IDEs' language check to prevent duplicate definitions. Also, this will remove more restrictions on aliases.

repositories:
  google:
    url: https://maven.google.com/
  mavenCentral:
    url: https://repo1.maven.org/maven2/

dependencies:
  mavenCentral:
    com.google.accompanist:
      accompanist-insets:
        alias: accompanist.insets
        version: ${versions.accompanist}
      accompanist-insets-ui:
        alias: accompanist.insetsUi
        version: ${versions.accompanist}
      accompanist-permissions:
        alias: accompanist.permissions
        version: ${versions.accompanist}
      accompanist-swiperefresh:
        alias: accompanist.swipeRefresh
        version: ${versions.accompanist}
      accompanist-systemuicontroller:
        alias: accompanist.systemUiController
        version: ${versions.accompanist}
    com.squareup.okhttp3:
      logging-interceptor:
        alias: okhttp3.interceptor.logging
        version: ${versions.okhttp}
      okhttp3:
        alias: okhttp3
        version: ${versions.okhttp}
      okhttp-dnsoverhttps:
        alias: okhttp3.dnsOverHttps
        version: ${versions.okhttp}

New local storage format

The new local storage API will provide the ability to share Maven metadata between projects and better corporate with the IntelliJ plugin. The data will be stored at $HOME/.gradm/.metadata.

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.