Gradle Utils

Collection of simple Gradle utilities.

License

License

Categories

Categories

Gradle Build Tools
GroupId

GroupId

com.github.rperez93
ArtifactId

ArtifactId

gradle-utils
Last Version

Last Version

1.7
Release Date

Release Date

Type

Type

jar
Description

Description

Gradle Utils
Collection of simple Gradle utilities.
Project URL

Project URL

https://github.com/rperez93/gradle-utils
Source Code Management

Source Code Management

https://github.com/rperez93/gradle-utils

Download gradle-utils

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.rperez93/gradle-utils/ -->
<dependency>
    <groupId>com.github.rperez93</groupId>
    <artifactId>gradle-utils</artifactId>
    <version>1.7</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.rperez93/gradle-utils/
implementation 'com.github.rperez93:gradle-utils:1.7'
// https://jarcasting.com/artifacts/com.github.rperez93/gradle-utils/
implementation ("com.github.rperez93:gradle-utils:1.7")
'com.github.rperez93:gradle-utils:jar:1.7'
<dependency org="com.github.rperez93" name="gradle-utils" rev="1.7">
  <artifact name="gradle-utils" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.rperez93', module='gradle-utils', version='1.7')
)
libraryDependencies += "com.github.rperez93" % "gradle-utils" % "1.7"
[com.github.rperez93/gradle-utils "1.7"]

Dependencies

runtime (3)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.3.50
org.jetbrains.kotlin : kotlin-reflect jar 1.3.50
org.eclipse.jgit : org.eclipse.jgit jar 5.4.2.201908231537-r

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Gradle Utils Plugin

GitHub release (latest by date) Build Status FOSSA Status

The idea of this library is provide a set of plugins that allow easy configurations of Android gradle files.

Library usage

buildscript {
     repositories {
         jcenter()
     }
     dependencies {
         //sometimes the gradle plugin resolve the org.eclipse.jgit dependency "incomplete"
         // gets fixed putting the dependency manually in your classpath
         classpath 'org.eclipse.jgit:org.eclipse.jgit:5.4.2.201908231537-r'
         classpath 'com.github.rperez93:gradle-utils:{last_version}'
     }
 }

Replace {last_version} with the last release number

Current Plugins

utils-version-from-git-android

Get the last version tag from git and use the tag description as versionName for the com.android.application plugin or the com.android.dynamic-feature plugin.

Usage

Paste the next line of code just before applying the com.android.application plugin or the com.android.dynamic-feature plugin.

apply plugin: 'utils-version-from-git-android'

Contribute, feature request and ideas

Anyone can do a pull request, i will try to verify the pull request the more quickly i can.

Any idea or suggestion is welcome.

License

FOSSA Status

Versions

Version
1.7
1.6.0
1.5.1
1.5.0
1.0.0