Skip to content

Commit

Permalink
Delete baked folder before baking
Browse files Browse the repository at this point in the history
  • Loading branch information
lacasseio committed Jun 26, 2020
1 parent 1ea8dba commit f88a554
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import dev.nokee.docs.SecretValue
import dev.nokee.docs.tasks.GenerateRobots
import dev.nokee.docs.tasks.GenerateSitemap
import dev.nokee.docs.tasks.PublishToGitHubPages
import org.jbake.gradle.JBakeTask

import java.text.SimpleDateFormat
import java.util.concurrent.TimeUnit
Expand Down Expand Up @@ -88,6 +89,19 @@ allprojects {
}
}

// Delete baked output before baking
// See https://github.com/jbake-org/jbake-gradle-plugin/issues/55
allprojects {
pluginManager.withPlugin('org.jbake.site') {
tasks.named('bake', JBakeTask) {
doFirst {
output.deleteDir()
output.mkdirs()
}
}
}
}

// Generate documentation site
dependencies {
baked('dev.nokee.docs:nightly:latest.integration') { changing = true }
Expand Down

0 comments on commit f88a554

Please sign in to comment.