All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sysgears.grain.gradle.handlers.DependencyHandler.groovy Maven / Gradle / Ivy

Go to download

Gradle plugin for Grain general purpose static site generator which provides all the modern features and tools for generating any kind of HTML content.

There is a newer version: 0.2.1
Show 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