Skip to content

Commit

Permalink
[JENKINS-43094] fix default values on the web configuration page of t…
Browse files Browse the repository at this point in the history
…he Dependencies Fingerprint Publisher
  • Loading branch information
Cyrille Le Clerc committed Jun 14, 2017
1 parent 74ccdec commit 88ca34c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
Expand Up @@ -45,7 +45,7 @@ public class DependenciesFingerprintPublisher extends MavenPublisher {

private boolean includeScopeCompile = true;

private boolean includeScopeRuntime;
private boolean includeScopeRuntime = true;

private boolean includeScopeTest;

Expand Down Expand Up @@ -170,6 +170,14 @@ public void process(@Nonnull StepContext context, @Nonnull Element mavenSpyLogsE
}
}

@Override
public String toString() {
return getClass().getName() + "[" +
"disabled=" + isDisabled() + ", " +
"scopes=" + getIncludedScopes() + ", " +
"versions={snapshot:" + isIncludeSnapshotVersions() + ", release:" + isIncludeReleaseVersions() + "}" +
']';
}
/**
* @param mavenSpyLogs Root XML element
* @return list of {@link MavenSpyLogProcessor.MavenArtifact}
Expand Down
Expand Up @@ -29,14 +29,14 @@ THE SOFTWARE.
<st:include page="maven-publisher" class="${descriptor.clazz}"/>
<f:section title="Dependencies filtering">
<f:entry title="${%Include versions}">
<f:checkbox title="${%Snapshots}" field="includeSnapshotVersions"/>
<f:checkbox title="${%Snapshots}" field="includeSnapshotVersions" default="true"/>
<f:checkbox title="${%Releases}" field="includeReleaseVersions"/>
</f:entry>

<f:entry title="${%Include Scopes}">
<f:checkbox title="${%Compile}" field="includeScopeCompile"/>
<f:checkbox title="${%Runtime}" field="includeScopeRuntime"/>
<f:checkbox title="${%Provided}" field="includeScopeProvided"/>
<f:checkbox title="${%Compile}" field="includeScopeCompile" default="true"/>
<f:checkbox title="${%Runtime}" field="includeScopeRuntime" default="true"/>
<f:checkbox title="${%Provided}" field="includeScopeProvided" default="true"/>
<f:checkbox title="${%Test}" field="includeScopeTest"/>
</f:entry>
</f:section>
Expand Down

0 comments on commit 88ca34c

Please sign in to comment.