Skip to content

Commit

Permalink
Fixes jbake-org#68 error when setting logging level in Gradle 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mariogarcia committed Feb 24, 2023
1 parent a487864 commit babbc9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#

group = org.jbake
version = 5.5.0
version = 5.5.1

pluginId = org.jbake.site
pluginDisplayName = JBake Gradle Plugin
Expand Down
2 changes: 0 additions & 2 deletions src/main/groovy/org/jbake/gradle/JBakeServeTask.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package org.jbake.gradle

import org.gradle.api.DefaultTask
import org.gradle.api.artifacts.Configuration
import org.gradle.api.logging.LogLevel
import org.gradle.api.tasks.Classpath
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.InputDirectory
Expand All @@ -46,7 +45,6 @@ class JBakeServeTask extends DefaultTask {

@TaskAction
void serve() {
logging.level = LogLevel.INFO
createJettyServer()
jettyServer.prepare()
println("Starting server. Browse to http://localhost:${getPort()}")
Expand Down
5 changes: 3 additions & 2 deletions src/test/groovy/org/jbake/gradle/JbakeIntegrationSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
@Unroll
class JbakeIntegrationSpec extends PluginIntegrationSpec {
@Shared
String latestGradleVersion = '7.0.2'
String latestGradleVersion = '8.0.1'

@Shared
String latestJbakeVersion = '2.6.7'
Expand Down Expand Up @@ -75,7 +75,8 @@ class JbakeIntegrationSpec extends PluginIntegrationSpec {
where:
version | jdk9Compatible | jdk14Compatible
'5.6.4' | true | false // latest 5.x version
'6.8.3' | true | true // latest 6.x version
'6.9.4' | true | true // latest 6.x version
'7.6' | true | true // latest 7.x version
latestGradleVersion | true | true // latest release, deprecations & warnings
}

Expand Down

0 comments on commit babbc9a

Please sign in to comment.