omico / gradm Goto Github PK
View Code? Open in Web Editor NEWGradm (Gradle dependencies manager)
Home Page: https://gradm.omico.me
License: Apache License 2.0
Gradm (Gradle dependencies manager)
Home Page: https://gradm.omico.me
License: Apache License 2.0
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
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. :(
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 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.
It's still in the early preview stage. Available at https://plugins.jetbrains.com/plugin/22554-gradm
May be changed at any time
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}
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
.
This can improve the development experience and make Gradm more customizable.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.