Skip to content

Commit 2f5f32e

Browse files
authored
chore(codegen): fix codegen release (#5994)
Jreleaser has to work in a git repository, and uses the jgit java library to interact with git. When jgit tries to open the git repo, it tries to open `codegen/config` as a file, which blows up. I don't know of any way to configure what jgit is doing here, so I renamed the directory and it solves the issue. Also had to set `gitRootSearch` so jreleaser walks up the parent directories to find the git root.
1 parent 46f9da3 commit 2f5f32e

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

codegen/build.gradle.kts

+5-1
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ subprojects {
183183
* ====================================================
184184
*/
185185
apply(plugin = "checkstyle")
186+
checkstyle {
187+
configFile = File("${project.rootDir}/gradleConfig/checkstyle/checkstyle.xml")
188+
}
186189

187190
tasks["checkstyleTest"].enabled = false
188191

@@ -237,7 +240,7 @@ subprojects {
237240
// Configure the bug filter for spotbugs.
238241
spotbugs {
239242
setEffort("max")
240-
val excludeFile = File("${project.rootDir}/config/spotbugs/filter.xml")
243+
val excludeFile = File("${project.rootDir}/gradleConfig/spotbugs/filter.xml")
241244
if (excludeFile.exists()) {
242245
excludeFilter.set(excludeFile)
243246
}
@@ -250,6 +253,7 @@ subprojects {
250253
*/
251254
jreleaser {
252255
dryrun = false
256+
gitRootSearch = true
253257

254258
// Used for creating a tagged release, uploading files and generating changelog.
255259
// In the future we can set this up to push release tags to GitHub, but for now it's

0 commit comments

Comments
 (0)