Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-37394] Add @symbol annotations for step and tool. (#35)
  • Loading branch information
abayer authored and wolfs committed Sep 23, 2016
1 parent 68c9d80 commit eabffa3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Expand Up @@ -37,6 +37,8 @@ sourceCompatibility = '1.6'

dependencies {
compile 'org.jenkins-ci.lib:dry-run-lib:0.1'
compileOnly 'org.jenkins-ci:symbol-annotation:1.3'
jenkinsPlugins 'org.jenkins-ci.plugins:structs:1.3@jar'

testCompile 'org.spockframework:spock-core:0.7-groovy-1.8'
jenkinsTest 'org.jenkins-ci.main:jenkins-test-harness:2.8@jar'
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/hudson/plugins/gradle/Gradle.java
Expand Up @@ -19,6 +19,7 @@
import hudson.tools.ToolInstallation;
import hudson.util.ArgumentListBuilder;
import org.apache.commons.lang.StringUtils;
import org.jenkinsci.Symbol;
import org.jenkinsci.lib.dryrun.DryRun;
import org.kohsuke.stapler.DataBoundConstructor;

Expand Down Expand Up @@ -354,7 +355,7 @@ public DescriptorImpl getDescriptor() {
return (DescriptorImpl) super.getDescriptor();
}

@Extension
@Extension @Symbol("gradle")
public static final class DescriptorImpl extends BuildStepDescriptor<Builder> {

@CopyOnWrite
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/hudson/plugins/gradle/GradleInstallation.java
Expand Up @@ -14,6 +14,7 @@
import hudson.tools.ToolInstaller;
import hudson.tools.ToolProperty;
import jenkins.security.MasterToSlaveCallable;
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;

import javax.inject.Inject;
Expand Down Expand Up @@ -89,7 +90,7 @@ public GradleInstallation forNode(Node node, TaskListener log) throws IOExceptio
return new GradleInstallation(getName(), translateFor(node, log), getProperties().toList());
}

@Extension
@Extension @Symbol("gradle")
public static class DescriptorImpl extends ToolDescriptor<GradleInstallation> {

public DescriptorImpl() {
Expand Down

0 comments on commit eabffa3

Please sign in to comment.