-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies' versions and improve logging (#4)
* Update markdown-page-generator-plugin to 2.3.1 * Update Gradle to 7.1.1 * Update com.gradle.plugin-publish plugin to 0.15 * Remove deprecated config method usages * Add a test case for Gradle 7.1.1 * Delegate logging from Mojo to Gradle task's logger * Switch from Travis CI to github actions * Update build badge * Update spock to 2.0 * Add test report step to the build * Change workflow name * Bump the version to 2.3.1.0 and update compatibility table
- Loading branch information
Showing
11 changed files
with
94 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Build | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '8' | ||
distribution: 'adopt' | ||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v2 | ||
with: | ||
report_paths: '**/build/test-results/test/TEST-*.xml' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/main/kotlin/com/github/monosoul/markdown/page/generator/gradle/plugin/LoggerAdapter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.github.monosoul.markdown.page.generator.gradle.plugin | ||
|
||
import org.apache.maven.plugin.logging.Log | ||
import org.gradle.api.logging.Logger | ||
|
||
class LoggerAdapter( | ||
private val logger: Logger | ||
) : Log { | ||
override fun isDebugEnabled() = logger.isDebugEnabled | ||
|
||
override fun debug(content: CharSequence?) = logger.debug(content?.toString()) | ||
|
||
override fun debug(content: CharSequence?, error: Throwable?) = logger.debug(content?.toString(), error) | ||
|
||
override fun debug(error: Throwable?) = logger.debug(null, error) | ||
|
||
override fun isInfoEnabled(): Boolean = logger.isInfoEnabled | ||
|
||
override fun info(content: CharSequence?) = logger.info(content?.toString()) | ||
|
||
override fun info(content: CharSequence?, error: Throwable?) = logger.info(content?.toString(), error) | ||
|
||
override fun info(error: Throwable?) = logger.info(null, error) | ||
|
||
override fun isWarnEnabled(): Boolean = logger.isWarnEnabled | ||
|
||
override fun warn(content: CharSequence?) = logger.warn(content?.toString()) | ||
|
||
override fun warn(content: CharSequence?, error: Throwable?) = logger.warn(content?.toString(), error) | ||
|
||
override fun warn(error: Throwable?) = logger.warn(null, error) | ||
|
||
override fun isErrorEnabled(): Boolean = logger.isErrorEnabled | ||
|
||
override fun error(content: CharSequence?) = logger.error(content?.toString()) | ||
|
||
override fun error(content: CharSequence?, error: Throwable?) = logger.error(content?.toString(), error) | ||
|
||
override fun error(error: Throwable?) = logger.error(null, error) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters