io.github.jcohy.gradle.sonar.SonarScannerPlugin Maven / Gradle / Ivy
package io.github.jcohy.gradle.sonar;
import java.util.Map;
import java.util.Objects;
import java.util.function.BiFunction;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.testing.jacoco.plugins.JacocoPlugin;
import org.sonarqube.gradle.SonarQubeExtension;
import org.sonarqube.gradle.SonarQubePlugin;
/**
* Copyright: Copyright (c) 2021.
* jcohy.com
*
* Description: 集成 SonarQube 代码质量管理平台
*
* @author jiac
* @version 0.0.5.1 2021/7/1:18:17
* @since 0.0.5.1
*/
public class SonarScannerPlugin implements Plugin {
private static final String HOST_URL = "http://192.168.11.244:9000";
private static final String LOGIN = "3abb5ed05e3cf7650e28bea0c29fdfb3803348d2";
private static final String LINKS_HOMEPAGE = "https://github.com/jcohy/jcohy-gradle-plugins";
private static final String JACOCO_ISSUE = "https://github.com/jcohy/jcohy-gradle-plugins/issues";
private static final String JACOCO_SCM = "https://github.com/jcohy/jcohy-gradle-plugins";
private final BiFunction