Skip to content

Commit

Permalink
build: Explicitly setting services for tasks, because for some reason…
Browse files Browse the repository at this point in the history
… Gradle does not set it automatically.
  • Loading branch information
kelemen committed Aug 13, 2023
1 parent c0d1280 commit cafb4d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildSrc/src/main/kotlin/org/jtrim2/build/ReleaseUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ object ReleaseUtils {
}
}

repoServiceRef.set(GitRepoService.getService(project, GitRepoService.PROJECT_SERVICE_NAME))

projectVersion.set(getVersionRef(project))
projectBaseVersion.set(project.providers.provider { Versions.getVersionBase(project) })
}
Expand All @@ -47,6 +49,8 @@ object ReleaseUtils {

dependsOn(javadocRef)

apiDocsRepoServiceRef.set(GitRepoService.getService(project, GitRepoService.API_DOCS_SERVICE_NAME))

targetBranchName.set(project.name)
javadocSourceDir.set(project.layout.dir(javadocRef.map { checkNotNull(it.destinationDir) }))

Expand Down

0 comments on commit cafb4d1

Please sign in to comment.