https://github.com/ow2-proactive/gradle-plugin-example
A template for gradle plugin
https://github.com/ow2-proactive/gradle-plugin-example
Last synced: 2 months ago
JSON representation
A template for gradle plugin
- Host: GitHub
- URL: https://github.com/ow2-proactive/gradle-plugin-example
- Owner: ow2-proactive
- License: apache-2.0
- Created: 2019-11-12T13:31:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-18T03:15:10.000Z (over 3 years ago)
- Last Synced: 2025-01-25T17:15:47.112Z (4 months ago)
- Language: Java
- Size: 56.6 KB
- Stars: 1
- Watchers: 10
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Template for Gradle plugin
## Description
The plugin sources are contained in the directory [src/](src/main/java/org/ow2/proactive/gradle/). It contains a task called example that can be called by using the plugin in another gradle project. The task example display on the standard output the parameter `sentenceToDisplay`. This parameter should be declared in the build.gradle of the project that use the extension. An example is available in the [example/](example/) directory.
## Build step
The build step will build the plugin and upload in your maven local repository.
On Linux
```
./gradlew install
```On Windows
```
gradlew.bat install
```## Run the example
The follwing command will move your current directory to the example directory. Then it will run the example task with the -Plocal property in order to use the local maven repository to get the plugin.
On Linux
```
cd example
./gradlew example -Plocal
```On Windows
```
cd example
gradlew.bat example -Plocal
```