io.sealights.onpremise.agents.plugin.Constants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sealights-gradle-plugin Show documentation
Show all versions of sealights-gradle-plugin Show documentation
A gradle plugin to run java agents
package io.sealights.onpremise.agents.plugin;
import org.gradle.api.plugins.JavaPlugin;
import lombok.AllArgsConstructor;
public class Constants {
public static final String PLUGIN_EXTENSION_NAME = "sealights";
public final static String JUNIT_PLATFORM_TEST_TASK = "junitPlatformTest";
public final static String INTEGRATION_TEST_TASK = "integrationTest";
public final static String UNIT_TESTS_STAGE = "Unit Tests";
public final static String INTEGRATION_TESTS_STAGE = "Integration Tests";
public final static String JMOCKIT = "jmockit";
public final static String JAVA_AGENT ="javaagent";
@AllArgsConstructor
public static class TestTaskInfo {
String taskName;
String testStage;
}
public static final TestTaskInfo[] DEFAULT_TEST_TASK_STAGES = {
new TestTaskInfo(JavaPlugin.TEST_TASK_NAME, UNIT_TESTS_STAGE),
new TestTaskInfo(JUNIT_PLATFORM_TEST_TASK, UNIT_TESTS_STAGE),
new TestTaskInfo(INTEGRATION_TEST_TASK, INTEGRATION_TESTS_STAGE),
};
/**
* Should be removed as soon as all customers will move to the new sealights-gradle-plugin implementation,
* which uses the property testTasksAndStages
instead of the properties testTasks
* and testStage
*/
@Deprecated
public static final String [] DEFAULT_TEST_TASKS = {
JavaPlugin.TEST_TASK_NAME,
JUNIT_PLATFORM_TEST_TASK,
INTEGRATION_TEST_TASK,
};
}