Last active
October 20, 2018 03:10
-
-
Save JLLeitschuh/3795436ca40a1415c54f9302070ad5f4 to your computer and use it in GitHub Desktop.
A benign plugin.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
java | |
id("com.gradle.plugin-publish") version "0.9.10" | |
id("java-gradle-plugin") | |
} | |
group = "org.jlleitschuh.testing.security" | |
version = "0.4.0" | |
dependencies { | |
compileOnly(gradleApi()) | |
} | |
gradlePlugin { | |
(plugins) { | |
"securityPlugin" { | |
id = "org.jlleitschuh.testing.security-plugin" | |
implementationClass = "org.jlleitschuh.testing.security.SecurityPlugin" | |
} | |
} | |
} | |
pluginBundle { | |
description = "Useless security testing." | |
vcsUrl = "https://github.com/JLLeitschuh/gradle-testing" | |
website = "https://github.com/JLLeitschuh/gradle-testing" | |
tags = listOf("dont-use") | |
(plugins) { | |
"securityPlugin" { | |
id = "org.jlleitschuh.testing.security-plugin" | |
displayName = "Security testing plugin" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.jlleitschuh.testing.security; | |
import org.gradle.api.Plugin; | |
import org.gradle.api.Project; | |
public class SecurityPlugin implements Plugin<Project> { | |
@Override | |
public void apply(final Project target) { | |
target.getLogger().lifecycle("A security plugin"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment