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

io.freefair.gradle.plugin.codegenerator.CodeGeneratorConfiguration Maven / Gradle / Ivy

There is a newer version: 8.11
Show newest version
package io.freefair.gradle.plugin.codegenerator;

import lombok.AccessLevel;
import lombok.Getter;
import org.gradle.api.model.ObjectFactory;
import org.gradle.api.provider.MapProperty;

import javax.inject.Inject;

@Getter(AccessLevel.PACKAGE)
public class CodeGeneratorConfiguration {

    private final MapProperty configurationValues;

    @Inject
    public CodeGeneratorConfiguration(ObjectFactory objectFactory) {
        this.configurationValues = objectFactory.mapProperty(String.class, Object.class);
    }

    public void param(String key, Object value) {
        configurationValues.put(key, value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy