Skip to content

Commit faa3934

Browse files
authored
Promote webhook managment APIs to Stable (#1127)
1 parent b6579e0 commit faa3934

30 files changed

+28
-42
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This means that when you have a private repository, or a private fork of a publi
1919

2020
### Developers and DevOps notes
2121

22-
Classes under packages `com.cloudbees.jenkins.plugins.bitbucket.api` is intended to be public API and can be used to extend functionality in other plugins. Changes in the method signature will be marked with @deprecated providing an alternative new signature or class to use. After a reasonable time (about a year) the method could be removed at all. If some methods are not intended to be used then are marked with `@Restricted(NoExternalUse.class)`.
22+
Classes under packages `com.cloudbees.jenkins.plugins.bitbucket.api` and `com.cloudbees.jenkins.plugins.bitbucket.util` is intended to be public API and can be used to extend functionality in other plugins. Changes in the method signature will be marked with @deprecated providing an alternative new signature or class to use. After a reasonable time (about a year) the method could be removed at all. If some methods are not intended to be used then are marked with `@Restricted(NoExternalUse.class)`.
2323

2424
Classes in other packages are not intended to be used outside of this plugin. Signature can be changed in any moment, backward compatibility are no guaranteed.
2525

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<changelist>-SNAPSHOT</changelist>
2929
<gitHubRepo>jenkinsci/bitbucket-branch-source-plugin</gitHubRepo>
3030
<jenkins.baseline>2.504</jenkins.baseline>
31-
<jenkins.version>${jenkins.baseline}.1</jenkins.version>
31+
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
3232
<ban-junit4-imports.skip>false</ban-junit4-imports.skip>
3333
<hpi.compatibleSinceVersion>937.0.0</hpi.compatibleSinceVersion>
3434
<tagNameFormat>@{project.version}</tagNameFormat>

src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketGitSCMBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
import com.cloudbees.jenkins.plugins.bitbucket.impl.endpoint.BitbucketServerEndpoint;
3636
import com.cloudbees.jenkins.plugins.bitbucket.impl.extension.FallbackToOtherRepositoryGitSCMExtension;
3737
import com.cloudbees.jenkins.plugins.bitbucket.impl.util.BitbucketApiUtils;
38-
import com.cloudbees.jenkins.plugins.bitbucket.impl.util.BitbucketCredentialsUtils;
3938
import com.cloudbees.jenkins.plugins.bitbucket.impl.util.SCMUtils;
39+
import com.cloudbees.jenkins.plugins.bitbucket.util.BitbucketCredentialsUtils;
4040
import com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey;
4141
import com.cloudbees.plugins.credentials.Credentials;
4242
import com.cloudbees.plugins.credentials.common.IdCredentials;

src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketSCMNavigator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import com.cloudbees.jenkins.plugins.bitbucket.impl.avatars.BitbucketTeamAvatarMetadataAction;
3535
import com.cloudbees.jenkins.plugins.bitbucket.impl.endpoint.BitbucketCloudEndpoint;
3636
import com.cloudbees.jenkins.plugins.bitbucket.impl.util.BitbucketApiUtils;
37-
import com.cloudbees.jenkins.plugins.bitbucket.impl.util.BitbucketCredentialsUtils;
3837
import com.cloudbees.jenkins.plugins.bitbucket.impl.util.MirrorListSupplier;
3938
import com.cloudbees.jenkins.plugins.bitbucket.impl.util.URLUtils;
4039
import com.cloudbees.jenkins.plugins.bitbucket.trait.BranchDiscoveryTrait;
@@ -43,6 +42,7 @@
4342
import com.cloudbees.jenkins.plugins.bitbucket.trait.PublicRepoPullRequestFilterTrait;
4443
import com.cloudbees.jenkins.plugins.bitbucket.trait.SSHCheckoutTrait;
4544
import com.cloudbees.jenkins.plugins.bitbucket.trait.ShowBitbucketAvatarTrait;
45+
import com.cloudbees.jenkins.plugins.bitbucket.util.BitbucketCredentialsUtils;
4646
import com.cloudbees.plugins.credentials.CredentialsNameProvider;
4747
import com.cloudbees.plugins.credentials.common.StandardCredentials;
4848
import edu.umd.cs.findbugs.annotations.CheckForNull;

src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketSCMSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,17 @@
3737
import com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRepository;
3838
import com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException;
3939
import com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketTeam;
40+
import com.cloudbees.jenkins.plugins.bitbucket.api.HasPullRequests;
4041
import com.cloudbees.jenkins.plugins.bitbucket.api.PullRequestBranchType;
4142
import com.cloudbees.jenkins.plugins.bitbucket.api.endpoint.BitbucketEndpointProvider;
4243
import com.cloudbees.jenkins.plugins.bitbucket.client.repository.UserRoleInRepository;
4344
import com.cloudbees.jenkins.plugins.bitbucket.endpoints.BitbucketEndpointConfiguration;
44-
import com.cloudbees.jenkins.plugins.bitbucket.hooks.HasPullRequests;
4545
import com.cloudbees.jenkins.plugins.bitbucket.impl.avatars.BitbucketRepoAvatarMetadataAction;
4646
import com.cloudbees.jenkins.plugins.bitbucket.impl.endpoint.BitbucketCloudEndpoint;
4747
import com.cloudbees.jenkins.plugins.bitbucket.impl.extension.BitbucketEnvVarExtension;
4848
import com.cloudbees.jenkins.plugins.bitbucket.impl.extension.GitClientAuthenticatorExtension;
4949
import com.cloudbees.jenkins.plugins.bitbucket.impl.util.BitbucketApiUtils;
5050
import com.cloudbees.jenkins.plugins.bitbucket.impl.util.BitbucketApiUtils.BitbucketSupplier;
51-
import com.cloudbees.jenkins.plugins.bitbucket.impl.util.BitbucketCredentialsUtils;
5251
import com.cloudbees.jenkins.plugins.bitbucket.impl.util.DateUtils;
5352
import com.cloudbees.jenkins.plugins.bitbucket.impl.util.MirrorListSupplier;
5453
import com.cloudbees.jenkins.plugins.bitbucket.impl.util.URLUtils;
@@ -59,6 +58,7 @@
5958
import com.cloudbees.jenkins.plugins.bitbucket.trait.OriginPullRequestDiscoveryTrait;
6059
import com.cloudbees.jenkins.plugins.bitbucket.trait.SSHCheckoutTrait;
6160
import com.cloudbees.jenkins.plugins.bitbucket.trait.ShowBitbucketAvatarTrait;
61+
import com.cloudbees.jenkins.plugins.bitbucket.util.BitbucketCredentialsUtils;
6262
import com.cloudbees.plugins.credentials.CredentialsNameProvider;
6363
import com.cloudbees.plugins.credentials.CredentialsProvider;
6464
import com.cloudbees.plugins.credentials.common.StandardCredentials;

src/main/java/com/cloudbees/jenkins/plugins/bitbucket/hooks/HasPullRequests.java renamed to src/main/java/com/cloudbees/jenkins/plugins/bitbucket/api/HasPullRequests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222
* THE SOFTWARE.
2323
*/
24-
package com.cloudbees.jenkins.plugins.bitbucket.hooks;
24+
package com.cloudbees.jenkins.plugins.bitbucket.api;
2525

2626
import com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource;
27-
import com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketPullRequest;
2827

2928
public interface HasPullRequests {
3029

src/main/java/com/cloudbees/jenkins/plugins/bitbucket/api/endpoint/BitbucketEndpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
import com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource;
2727
import com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookConfiguration;
28-
import com.cloudbees.jenkins.plugins.bitbucket.impl.util.BitbucketCredentialsUtils;
28+
import com.cloudbees.jenkins.plugins.bitbucket.util.BitbucketCredentialsUtils;
2929
import com.cloudbees.plugins.credentials.common.StandardCredentials;
3030
import com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials;
3131
import edu.umd.cs.findbugs.annotations.CheckForNull;

src/main/java/com/cloudbees/jenkins/plugins/bitbucket/api/webhook/BitbucketWebhookConfiguration.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,13 @@
3232
import hudson.model.Describable;
3333
import jenkins.model.Jenkins;
3434
import org.jenkinsci.plugins.displayurlapi.DisplayURLProvider;
35-
import org.kohsuke.accmod.Restricted;
36-
import org.kohsuke.accmod.restrictions.Beta;
3735

3836
/**
3937
* The implementation represents an a webhook configuration that can be used in
4038
* a {@link BitbucketEndpoint}.
4139
*
4240
* @since 937.0.0
4341
*/
44-
@Restricted(Beta.class)
4542
public interface BitbucketWebhookConfiguration extends Describable<BitbucketWebhookConfiguration> {
4643

4744
/**

src/main/java/com/cloudbees/jenkins/plugins/bitbucket/api/webhook/BitbucketWebhookConfigurationBuilder.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,13 @@
2525

2626
import edu.umd.cs.findbugs.annotations.NonNull;
2727
import hudson.ExtensionPoint;
28-
import org.kohsuke.accmod.Restricted;
29-
import org.kohsuke.accmod.restrictions.Beta;
3028

3129
/**
3230
* Base interface that a builder must implement or extend to provide an instance
3331
* of {@link BitbucketWebhookConfiguration}.
3432
*
3533
* @since 937.1.0
3634
*/
37-
@Restricted(Beta.class)
3835
public interface BitbucketWebhookConfigurationBuilder extends ExtensionPoint {
3936

4037
/**

src/main/java/com/cloudbees/jenkins/plugins/bitbucket/api/webhook/BitbucketWebhookConfigurationsBuilder.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,13 @@
2727
import edu.umd.cs.findbugs.annotations.NonNull;
2828
import edu.umd.cs.findbugs.annotations.Nullable;
2929
import hudson.ExtensionList;
30-
import org.kohsuke.accmod.Restricted;
31-
import org.kohsuke.accmod.restrictions.Beta;
3230

3331
/**
3432
* Provider of {@link BitbucketWebhookConfiguration} builders registered in the
3533
* system.
3634
*
3735
* @since 937.1.0
3836
*/
39-
@Restricted(Beta.class)
4037
public final class BitbucketWebhookConfigurationsBuilder {
4138

4239
private BitbucketWebhookConfigurationsBuilder() {

0 commit comments

Comments
 (0)