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

org.sonar.plugins.redmine.RedminePlugin Maven / Gradle / Ivy

The newest version!
/*
 * SonarQube Redmine Plugin
 * Copyright (C) 2013 Patroklos PAPAPETROU and Christian Schulz
 * [email protected]
 *
 * 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02
 */
package org.sonar.plugins.redmine;

import com.google.common.collect.ImmutableList;
import org.sonar.api.Properties;
import org.sonar.api.Property;
import org.sonar.api.SonarPlugin;
import org.sonar.plugins.redmine.config.RedmineSettings;
import org.sonar.plugins.redmine.exceptions.RedmineGeneralException;
import org.sonar.plugins.redmine.exceptions.RedmineNotAuthorizedException;
import org.sonar.plugins.redmine.exceptions.RedmineNotFoundException;
import org.sonar.plugins.redmine.reviews.RedmineIssueFactory;
import org.sonar.plugins.redmine.reviews.RedmineLinkFunction;
import org.sonar.plugins.redmine.reviews.RedmineWorkflowBuilder;
import org.sonar.plugins.redmine.ui.RedmineDevelopersWidget;
import org.sonar.plugins.redmine.ui.RedmineSettingsPage;
import org.sonar.plugins.redmine.ui.RedmineWidget;

import java.util.List;
import org.sonar.plugins.redmine.client.RedmineAdapter;

@Properties({
  @Property(
    key = RedmineSettings.URL,
    name = "Redmine URL",
    description = "Example: http://demo.redmine.org/"),
  @Property(
    key = RedmineSettings.API_ACCESS_KEY,
    name = "API Access Key",
    description = "You can find your API key on your account page ( /my/account ) when logged in, on the right-hand pane of the default layout.",
    type = org.sonar.api.PropertyType.PASSWORD)})
public class RedminePlugin extends SonarPlugin {

  public List getExtensions() {
    return ImmutableList.of(
        // Definitions
        RedmineMetrics.class,
        // Batch
        RedmineSensor.class, RedmineAdapter.class, RedmineSettings.class,
        // Server
        RedmineIssueFactory.class,
        // UI
        RedmineWidget.class, RedmineDevelopersWidget.class, RedmineSettingsPage.class,
        // Reviews
        RedmineLinkFunction.class, RedmineWorkflowBuilder.class,
        // Exceptions
        RedmineGeneralException.class, org.sonar.plugins.redmine.exceptions.RedmineAuthenticationException.class,
        org.sonar.plugins.redmine.exceptions.RedmineTransportException.class, RedmineNotFoundException.class, RedmineNotAuthorizedException.class);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy