io.freefair.gradle.plugin.codegenerator.CodeGeneratorConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of code-generator-plugin Show documentation
Show all versions of code-generator-plugin Show documentation
A plugin for executing specified code generators
The 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);
}
}