io.ultreia.java4all.config.plugin.ReportMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of config-maven-plugin Show documentation
Show all versions of config-maven-plugin Show documentation
Maven plugin to use the config library
package io.ultreia.java4all.config.plugin;
/*
* #%L
* Config :: Maven plugin
* %%
* Copyright (C) 2016 - 2018 Code Lutin, Ultreia.io
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program 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 Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.plugins.annotations.ResolutionScope;
import io.ultreia.java4all.config.ApplicationConfigProvider;
import java.util.HashSet;
import java.util.List;
/**
* Generates a report for declared application config via the
* {@link ApplicationConfigProvider} mechanism.
*
* For each configuration, you can find all his options and actions.
*
* @author Tony - [email protected]
* @since 3.0
*/
@Mojo(name = "report", requiresReports = true, requiresDependencyResolution = ResolutionScope.RUNTIME)
public class ReportMojo extends ReportMojoSupport {
/**
* List of all class-path elements.
*/
@Parameter(property = "project.runtimeClasspathElements", required = true, readonly = true)
private List runtimeClasspathElements;
@Override
protected ClassLoader createClassLoader() {
return createClassLoader(new HashSet<>(runtimeClasspathElements));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy