Skip to content

Commit

Permalink
chore(codegen): fix codegen release (#5994)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
milesziemer committed Apr 11, 2024
1 parent 46f9da3 commit 2f5f32e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ subprojects {
* ====================================================
*/
apply(plugin = "checkstyle")
checkstyle {
configFile = File("${project.rootDir}/gradleConfig/checkstyle/checkstyle.xml")
}

tasks["checkstyleTest"].enabled = false

Expand Down Expand Up @@ -237,7 +240,7 @@ subprojects {
// Configure the bug filter for spotbugs.
spotbugs {
setEffort("max")
val excludeFile = File("${project.rootDir}/config/spotbugs/filter.xml")
val excludeFile = File("${project.rootDir}/gradleConfig/spotbugs/filter.xml")
if (excludeFile.exists()) {
excludeFilter.set(excludeFile)
}
Expand All @@ -250,6 +253,7 @@ subprojects {
*/
jreleaser {
dryrun = false
gitRootSearch = true

// Used for creating a tagged release, uploading files and generating changelog.
// In the future we can set this up to push release tags to GitHub, but for now it's
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2f5f32e

Please sign in to comment.