eu.hexagonmc.spigot.gradle.meta.MetadataExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spigot-gradle Show documentation
Show all versions of spigot-gradle Show documentation
Gradle plugin for Spigot and BungeeCord
The newest version!
/**
*
* Copyright (C) 2017 HexagonMc
* Copyright (C) 2017 Zartec
*
* This file is part of Spigot-Gradle.
*
* Spigot-Gradle is free software:
* you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Spigot-Gradle is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Spigot-Gradle.
* If not, see .
*/
package eu.hexagonmc.spigot.gradle.meta;
import eu.hexagonmc.spigot.annotation.meta.DependencyType;
import eu.hexagonmc.spigot.annotation.meta.PluginDependency;
import eu.hexagonmc.spigot.annotation.meta.PluginMetadata;
import eu.hexagonmc.spigot.gradle.SpigotGradle;
import groovy.lang.Closure;
import org.gradle.api.NamedDomainObjectContainer;
import org.gradle.api.Project;
import java.util.Set;
import java.util.function.Consumer;
public class MetadataExtension implements Consumer {
private final Project _project;
private Object _main;
private Object _name;
private Object _version;
private Object _description;
private final NamedDomainObjectContainer _dependencies;
/**
* Creates a new extension for the given project.
*
* @param project The project
*/
MetadataExtension(Project project) {
_project = project;
_name = project.getName();
_version = new Closure
© 2015 - 2024 Weber Informatics LLC | Privacy Policy