Skip to content

Commit

Permalink
Merge branch 'release/4.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
radarsh committed Oct 11, 2023
2 parents f0658f7 + 5d01326 commit 888de19
Show file tree
Hide file tree
Showing 29 changed files with 167 additions and 129 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.0
jobs:
build:
docker:
- image: circleci/openjdk:8-jdk
- image: cimg/openjdk:17.0
working_directory: ~/repo
environment:
JVM_OPTS: -Xmx4096m
Expand All @@ -23,10 +23,10 @@ jobs:
key: v1-dependencies-{{ checksum "build.gradle" }}
- run:
name: Run tests
command: GRADLE_OPTS="-Xms256m -Xmx2048m" ./gradlew build --no-daemon --scan
command: GRADLE_OPTS="-Xms256m -Xmx2048m" ./gradlew build --no-daemon
- run:
name: Code coverage
command: GRADLE_OPTS="-Xms256m -Xmx1024m" ./gradlew jacocoTestReport coveralls --no-daemon --scan
command: GRADLE_OPTS="-Xms256m -Xmx1024m" ./gradlew jacocoTestReport coveralls --no-daemon
- run:
name: Save reports
command: |
Expand All @@ -47,7 +47,7 @@ jobs:

publish:
docker:
- image: circleci/openjdk:8-jdk
- image: cimg/openjdk:17.0
working_directory: ~/repo
environment:
JVM_OPTS: -Xmx3200m
Expand All @@ -68,7 +68,7 @@ jobs:
- run:
name: Publish plugin
command:
GRADLE_OPTS="-Xms256m -Xmx1024m" ./gradlew clean publishPlugins --no-daemon --scan
GRADLE_OPTS="-Xms256m -Xmx1024m" ./gradlew clean publishPlugins --no-daemon
-Pgradle.publish.key=${GRADLE_PUBLISH_KEY}
-Pgradle.publish.secret=${GRADLE_PUBLISH_SECRET}

Expand Down
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* text=auto eol=lf

*.bat text eol=crlf
*.jar binary
29 changes: 24 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
# Changelog

## [v3.2.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v3.2.0) (2022-02-27)
## [v4.0.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v4.0.0) (2023-10-11)

[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v3.1.0...v3.2.0)
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v3.2.0...v4.0.0)

**Implemented enhancements:**
**Fixed bugs:**

- Add filter: hide regular passing tests, show slow passing tests [\#158](https://github.com/radarsh/gradle-test-logger-plugin/issues/158)
- The `Provider.forUseAtConfigurationTime` method has been deprecated. [\#321](https://github.com/radarsh/gradle-test-logger-plugin/issues/321)

**Closed issues:**

- Upgrade to Gradle 7.5.x [\#295](https://github.com/radarsh/gradle-test-logger-plugin/issues/295)

**Merged pull requests:**

- Update compatibility matrix [\#323](https://github.com/radarsh/gradle-test-logger-plugin/pull/323) ([radarsh](https://github.com/radarsh))
- Adopt Gradle 8 [\#322](https://github.com/radarsh/gradle-test-logger-plugin/pull/322) ([Goooler](https://github.com/Goooler))
- Upgrade to plugin publish 1.0.0 [\#298](https://github.com/radarsh/gradle-test-logger-plugin/pull/298) ([radarsh](https://github.com/radarsh))
- Bump dependency versions [\#297](https://github.com/radarsh/gradle-test-logger-plugin/pull/297) ([radarsh](https://github.com/radarsh))
- Upgrade to Gradle 7.5.1 [\#296](https://github.com/radarsh/gradle-test-logger-plugin/pull/296) ([radarsh](https://github.com/radarsh))
- Bump Gradle enterprise plugin version [\#294](https://github.com/radarsh/gradle-test-logger-plugin/pull/294) ([radarsh](https://github.com/radarsh))
- Bump com.gradle.enterprise from 3.8.1 to 3.11.2 [\#293](https://github.com/radarsh/gradle-test-logger-plugin/pull/293) ([dependabot[bot]](https://github.com/apps/dependabot))
- Bump byte-buddy from 1.12.6 to 1.12.7 [\#255](https://github.com/radarsh/gradle-test-logger-plugin/pull/255) ([dependabot[bot]](https://github.com/apps/dependabot))
- Bump com.gradle.enterprise from 3.8 to 3.8.1 [\#254](https://github.com/radarsh/gradle-test-logger-plugin/pull/254) ([dependabot[bot]](https://github.com/apps/dependabot))
- Bump com.gradle.plugin-publish from 0.18.0 to 0.19.0 [\#251](https://github.com/radarsh/gradle-test-logger-plugin/pull/251) ([dependabot[bot]](https://github.com/apps/dependabot))
Expand All @@ -21,6 +32,14 @@
- Bump com.gradle.plugin-publish from 0.16.0 to 0.17.0 [\#238](https://github.com/radarsh/gradle-test-logger-plugin/pull/238) ([dependabot[bot]](https://github.com/apps/dependabot))
- adds filter for showing only slow tests [\#207](https://github.com/radarsh/gradle-test-logger-plugin/pull/207) ([grimmjo](https://github.com/grimmjo))

## [v3.2.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v3.2.0) (2022-02-27)

[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v3.1.0...v3.2.0)

**Implemented enhancements:**

- Add filter: hide regular passing tests, show slow passing tests [\#158](https://github.com/radarsh/gradle-test-logger-plugin/issues/158)

## [v3.1.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v3.1.0) (2021-11-02)

[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v3.0.0...v3.1.0)
Expand Down Expand Up @@ -87,7 +106,7 @@
- Bump com.github.kt3k.coveralls from 2.9.0 to 2.11.0 [\#194](https://github.com/radarsh/gradle-test-logger-plugin/pull/194) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
- Bump byte-buddy from 1.10.17 to 1.10.22 [\#193](https://github.com/radarsh/gradle-test-logger-plugin/pull/193) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
- Bump com.gradle.plugin-publish from 0.12.0 to 0.13.0 [\#189](https://github.com/radarsh/gradle-test-logger-plugin/pull/189) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
- Fix for NPE when the exception in the TestResult is null. [\#180](https://github.com/radarsh/gradle-test-logger-plugin/pull/180) ([osh-onstructive](https://github.com/osh-onstructive))
- Fix for NPE when the exception in the TestResult is null. [\#180](https://github.com/radarsh/gradle-test-logger-plugin/pull/180) ([osh-zuri](https://github.com/osh-zuri))
- Bump byte-buddy from 1.10.1 to 1.10.17 [\#176](https://github.com/radarsh/gradle-test-logger-plugin/pull/176) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
- Bump commons-io from 2.6 to 2.8.0 [\#174](https://github.com/radarsh/gradle-test-logger-plugin/pull/174) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
- Upgrade to Gradle 6.7 [\#173](https://github.com/radarsh/gradle-test-logger-plugin/pull/173) ([radarsh](https://github.com/radarsh))
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Scroll down for more themes and customisation options or visit the [screenshots

```groovy
plugins {
id 'com.adarshr.test-logger' version '3.2.0'
id 'com.adarshr.test-logger' version '4.0.0'
}
```

Expand All @@ -41,7 +41,7 @@ buildscript {
}
}
dependencies {
classpath 'com.adarshr:gradle-test-logger-plugin:3.2.0'
classpath 'com.adarshr:gradle-test-logger-plugin:4.0.0'
}
}
Expand All @@ -50,11 +50,12 @@ apply plugin: 'com.adarshr.test-logger'

### Compatibility matrix

| Test logger version | Minimum Gradle version |
|---------------------|-----------------------------|
| 1.x | 4.x |
| 2.x | 5.x |
| 3.x | 6.5 |
| Test logger version | Minimum Gradle version |
|---------------------|------------------------|
| 1.x | 4.x |
| 2.x | 5.x |
| 3.x | 6.5 |
| 4.x | 7.6 |

## Configuration

Expand Down
37 changes: 19 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ plugins {
id 'maven-publish'
id 'idea'
id 'jacoco'
id 'com.gradle.plugin-publish' version '0.19.0'
id 'com.github.kt3k.coveralls' version '2.12.0'
id 'com.gradle.plugin-publish' version '1.2.1'
id 'com.github.kt3k.coveralls' version '2.12.2'
}

def thisPlugin =
Expand All @@ -23,10 +23,6 @@ apply from: 'gradle/publishing.gradle'
apply from: 'gradle/coverage.gradle'
apply plugin: thisPlugin

repositories {
mavenCentral()
}

sourceSets {
functionalTest {
groovy {
Expand All @@ -38,20 +34,23 @@ sourceSets {
}

dependencies {
implementation gradleApi()
implementation localGroovy()
compileOnly gradleApi()
compileOnly localGroovy()
implementation 'org.fusesource.jansi:jansi:2.4.0'

testImplementation gradleTestKit()
testImplementation 'org.spockframework:spock-core:2.0-groovy-3.0'
testImplementation 'net.bytebuddy:byte-buddy:1.12.7'
testImplementation 'org.objenesis:objenesis:3.2'
testImplementation 'commons-io:commons-io:2.11.0'
testImplementation 'net.bytebuddy:byte-buddy:1.14.9'
testImplementation 'org.objenesis:objenesis:3.3'
testImplementation 'commons-io:commons-io:2.14.0'

functionalTestImplementation localGroovy()
functionalTestImplementation gradleTestKit()
functionalTestImplementation 'org.spockframework:spock-core:2.0-groovy-3.0'
functionalTestImplementation 'commons-io:commons-io:2.11.0'
functionalTestImplementation 'commons-io:commons-io:2.14.0'
}

java {
toolchain.languageVersion = JavaLanguageVersion.of(8)
}

gradlePlugin {
Expand All @@ -69,7 +68,7 @@ idea {
}
}

test {
tasks.named("test") {
useJUnitPlatform()

testClassesDirs += sourceSets.functionalTest.output.classesDirs
Expand All @@ -83,7 +82,9 @@ test {
exclude 'com/adarshr/gradle/testlogger/functional/**'
}

task functionalTest(type: Test) {
tasks.register("functionalTest", Test) {
dependsOn 'pluginUnderTestMetadata', 'testClasses'

useJUnitPlatform()

inputs.dir "$projectDir/src/test-functional/resources"
Expand All @@ -101,6 +102,6 @@ task functionalTest(type: Test) {
include 'com/adarshr/gradle/testlogger/functional/**'
}

tasks.check.dependsOn 'functionalTest'
tasks.functionalTest.dependsOn 'pluginUnderTestMetadata', 'testClasses'
tasks.functionalTest.mustRunAfter 'test'
tasks.named("check") {
dependsOn("functionalTest")
}
5 changes: 3 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
version=3.2.0
version=4.0.0
group=com.adarshr
org.gradle.daemon=true

org.gradle.jvmargs=-Dfile.encoding=UTF-8
org.gradle.caching=false
org.gradle.parallel=true
4 changes: 2 additions & 2 deletions gradle/coverage.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
jacoco {
toolVersion '0.8.5'
toolVersion '0.8.10'
}

jacocoTestReport {
executionData "${project.buildDir}/jacoco/test.exec", "${project.buildDir}/jacoco/functionalTest.exec"
executionData layout.buildDirectory.file("jacoco/test.exec").get().asFile, layout.buildDirectory.file("jacoco/functionalTest.exec").get().asFile

reports {
xml.required = true
Expand Down
30 changes: 5 additions & 25 deletions gradle/publishing.gradle
Original file line number Diff line number Diff line change
@@ -1,35 +1,15 @@
task sourceJar(type: Jar) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}

publishing {
publications {
module(MavenPublication) {
from components.java

artifact(sourceJar) {
classifier = 'sources'
}
}
}
}

pluginBundle {
gradlePlugin {
website = 'https://github.com/radarsh/gradle-test-logger-plugin'
vcsUrl = 'https://github.com/radarsh/gradle-test-logger-plugin'
description = 'A Gradle plugin for printing beautiful logs on the console while running tests'
tags = ['test', 'logging', 'console', 'terminal', 'groovy']

plugins {
testLoggerPlugin {
id = 'com.adarshr.test-logger'
displayName = 'Gradle Test Logger Plugin'
description = 'A Gradle plugin for printing beautiful logs on the console while running tests'
implementationClass = 'com.adarshr.gradle.testlogger.TestLoggerPlugin'
description = 'A Gradle plugin for printing beautiful logs on the console while running tests'
tags = ['test', 'logging', 'console', 'terminal', 'groovy']
}
}

mavenCoordinates {
groupId = project.group
artifactId = project.name
}
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
41 changes: 28 additions & 13 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand All @@ -80,13 +80,11 @@ do
esac
done

APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

APP_NAME="Gradle"
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down Expand Up @@ -133,22 +131,29 @@ location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi

# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down Expand Up @@ -193,18 +198,28 @@ if "$cygwin" || "$msys" ; then
done
fi

# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.

set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"

# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi

# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
Expand Down
Loading

0 comments on commit 888de19

Please sign in to comment.