Skip to content

Commit

Permalink
docs: make ChangeLogService.github PackageScope
Browse files Browse the repository at this point in the history
add getter and setter with @deprecated and logging. These methods will be
removed before releasing 2.0.0
  • Loading branch information
tschulte committed Sep 21, 2015
1 parent f15e8fd commit da0a4b5
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import org.ajoberstar.gradle.git.release.base.TagStrategy
import org.ajoberstar.gradle.git.release.semver.ChangeScope
import org.ajoberstar.grgit.Commit
import org.ajoberstar.grgit.Grgit
import org.gradle.api.logging.Logger
import org.gradle.api.logging.Logging

import java.util.regex.Matcher

Expand All @@ -34,9 +36,12 @@ import java.util.regex.Matcher
*/
class SemanticReleaseChangeLogService {

private final Logger logger = Logging.getLogger(getClass())

private final TagStrategy tagStrategy
private final Grgit grgit

@PackageScope
Github github

SemanticReleaseChangeLogService(Grgit grgit, TagStrategy tagStrategy) {
Expand All @@ -49,6 +54,18 @@ class SemanticReleaseChangeLogService {
github = new RtGithub(token)
}

@Deprecated
Github getGithub() {
logger.warn("semanticRelease.changeLog.github is deprecated and will be removed in v2.0.0")
github
}

@Deprecated
void setGithub(Github github) {
logger.warn("semanticRelease.changeLog.github is deprecated and will be removed in v2.0.0")
this.github = github
}

/**
* Parse the commits since the last release and return the change scope to use for
* the next version. Return null, if no release is necessary, either because there
Expand Down

0 comments on commit da0a4b5

Please sign in to comment.