![JAR search and dependency download from the Maven repository](/logo.png)
com.sysgears.grain.gradle.handlers.DependencyHandler.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grain-gradle-plugin Show documentation
Show all versions of grain-gradle-plugin Show documentation
Gradle plugin for Grain general purpose static site generator which provides
all the modern features and tools for generating any kind of HTML content.
The newest version!
package com.sysgears.grain.gradle.handlers
import groovy.transform.TupleConstructor
import org.gradle.api.Project
import org.gradle.api.artifacts.Configuration
/**
* Specifies Grain Gradle plugin dependencies.
*/
@TupleConstructor
class DependencyHandler {
/** Gradle project to which the plugin is applied. */
Project project
def methodMissing(String name, args) {
Configuration configuration = project.configurations.findByName(name) ?: project.configurations.create(name)
configuration.dependencies.add(project.dependencies.create(args[0]))
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy