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

com.sysgears.grain.gradle.handlers.ConfigurationHandler.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

/**
 * Sets up dependency configuration for the plugin.
 */
@TupleConstructor
class ConfigurationHandler {

    /** Gradle project to which the plugin is applied. */
    Project project

    /** Grain configuration. */
    String configuration

    def methodMissing(String name, args) {
            Configuration conf = project.configurations.findByName(configuration) ?:
                project.configurations.create(configuration)
            conf."$name" args[0]
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy