Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/squarespace/gradle-utils
https://github.com/squarespace/gradle-utils
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/squarespace/gradle-utils
- Owner: Squarespace
- License: mit
- Created: 2016-03-30T15:52:02.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-08T07:36:45.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T23:14:56.788Z (9 months ago)
- Language: Groovy
- Homepage: https://bitbucket.org/kotkade/gradle-utils
- Size: 209 KB
- Stars: 1
- Watchers: 11
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE.txt
Awesome Lists containing this project
README
# Gradle utilities
## Description
[Gradle](http://www.gradle.org) is a beautiful and powerful build system.
However extending it with plugins sometimes bears some repetition, which
is hard to get rid of due to the way gradle works under the hood. At
other times gradle provides some nice feature, but doesn't expose it
(yet) as public API.*gradle-utils* provide the missing link. With helpers which don't
explode underneath your hands. And “macros” (aka. AST transforms) to
reduce boilerplate so you don't have to care how the latter work.## Example
The `@Delayed` annotation may be used to delay the evaluation of a
field's value.class SomeTask extends DefaultTask {
@Delayed
def projectVersion
}
/* in SomePlugin */
project.task("someTask", type: SomeTask) {
delayedProjectVersion = { project.version }
}
/* in build.gradle */
apply plugin: "some"
version = "diff.erent.version"
assert someTask.projectVersion == version## Usage
The *gradle-utils* are available from Clojars as maven dependency.
repositories {
maven { url "http://clojars.org/repo" }
}
dependencies {
compile "de.kotka.gradle:gradle-utils:<version>"
}## Contribution
Any form of contribution is highly appreciated!
However please send pull requests only in case you know how they work.
If in doubt please open a ticket in the issue tracker with an attached
patch. This helps you and me to get things sorted out more quickly than
with pull requests containing tons of unrelated changes.## Contact
* the [author](mailto:[email protected])
* the [current version](https://clojars.org/de.kotka.gradle/gradle-utils) on Clojars
* the [source repository](https://bitbucket.org/kotkade/gradle-utils) on Bitbucket
* the [bugtracker](https://bitbucket.org/kotkade/gradle-utils/issues) on Bitbucket
* the [dark side](https://github.com/kotkade/gradle-utils) in case your SCM does
not support mercurial repositories (which says something about your SCM, btw).
However the bitbucket one is authoritative.