com.ullink.gradle:gradle-tools-plugin

gradle-tools-plugin is a set of plugins that provide useful addition to Gradle

License

License

Categories

Categories

Gradle Build Tools
GroupId

GroupId

com.ullink.gradle
ArtifactId

ArtifactId

gradle-tools-plugin
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

com.ullink.gradle:gradle-tools-plugin
gradle-tools-plugin is a set of plugins that provide useful addition to Gradle
Project URL

Project URL

https://github.com/muryoh/gradle-tools-plugin
Source Code Management

Source Code Management

https://github.com/muryoh/gradle-tools-plugin.git

Download gradle-tools-plugin

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Gradle tools plugins

These plugins are meant at (further) simplifying project build files. Some may be useful to others, and some could deserve to be standard part of Gradle distribution.

task-rules plugin

Some task rules that I find handy:

exec

Pattern: "exec ": Executes the given code within a dynamic task

Sample usage:

gradle "exec compileJava.classpath.files.each { println it }"
gradle -Ptype=Wrapper -PgradleVersion=1.3 exec

Advanced usage:

gradle -Ptype=NuGet -PdependsOn=nuget "-Pconfigure=command='push'" exec

println

Pattern: "println ": Executes the given code within a dynamic task, and print the result

Sample usages:

gradle "println convention.plugins.base.distsDir"
gradle "println configurations"
gradle "println tasks.jar.outputs.files.files"

custom

Pattern: "custom ": Executes the given task, with the given code as extra configure-ation

Sample usages:

gradle -Pdebug=true customTest
gradle "customTest debug true"

functions plugin

Some functions that I find handy:

  • FileCollection getTools() : returns tools.jar path for current JDK
  • void replaceAssemblyAttribute(def file, String name, String value) : helper to replace Assembly attributes in C# AssemblyInfo.cs file

License

All these scripts are licensed under the Creative Commons � CC0 1.0 Universal license with no warranty (expressed or implied) for any purpose.

Versions

Version
1.0