Skip to content

Commit 888de19

Browse files
committed
Merge branch 'release/4.0.0'
2 parents f0658f7 + 5d01326 commit 888de19

File tree

29 files changed

+167
-129
lines changed

29 files changed

+167
-129
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2.0
33
jobs:
44
build:
55
docker:
6-
- image: circleci/openjdk:8-jdk
6+
- image: cimg/openjdk:17.0
77
working_directory: ~/repo
88
environment:
99
JVM_OPTS: -Xmx4096m
@@ -23,10 +23,10 @@ jobs:
2323
key: v1-dependencies-{{ checksum "build.gradle" }}
2424
- run:
2525
name: Run tests
26-
command: GRADLE_OPTS="-Xms256m -Xmx2048m" ./gradlew build --no-daemon --scan
26+
command: GRADLE_OPTS="-Xms256m -Xmx2048m" ./gradlew build --no-daemon
2727
- run:
2828
name: Code coverage
29-
command: GRADLE_OPTS="-Xms256m -Xmx1024m" ./gradlew jacocoTestReport coveralls --no-daemon --scan
29+
command: GRADLE_OPTS="-Xms256m -Xmx1024m" ./gradlew jacocoTestReport coveralls --no-daemon
3030
- run:
3131
name: Save reports
3232
command: |
@@ -47,7 +47,7 @@ jobs:
4747

4848
publish:
4949
docker:
50-
- image: circleci/openjdk:8-jdk
50+
- image: cimg/openjdk:17.0
5151
working_directory: ~/repo
5252
environment:
5353
JVM_OPTS: -Xmx3200m
@@ -68,7 +68,7 @@ jobs:
6868
- run:
6969
name: Publish plugin
7070
command:
71-
GRADLE_OPTS="-Xms256m -Xmx1024m" ./gradlew clean publishPlugins --no-daemon --scan
71+
GRADLE_OPTS="-Xms256m -Xmx1024m" ./gradlew clean publishPlugins --no-daemon
7272
-Pgradle.publish.key=${GRADLE_PUBLISH_KEY}
7373
-Pgradle.publish.secret=${GRADLE_PUBLISH_SECRET}
7474

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* text=auto eol=lf
2+
3+
*.bat text eol=crlf
4+
*.jar binary

CHANGELOG.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
11
# Changelog
22

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

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

7-
**Implemented enhancements:**
7+
**Fixed bugs:**
88

9-
- Add filter: hide regular passing tests, show slow passing tests [\#158](https://github.com/radarsh/gradle-test-logger-plugin/issues/158)
9+
- The `Provider.forUseAtConfigurationTime` method has been deprecated. [\#321](https://github.com/radarsh/gradle-test-logger-plugin/issues/321)
10+
11+
**Closed issues:**
12+
13+
- Upgrade to Gradle 7.5.x [\#295](https://github.com/radarsh/gradle-test-logger-plugin/issues/295)
1014

1115
**Merged pull requests:**
1216

17+
- Update compatibility matrix [\#323](https://github.com/radarsh/gradle-test-logger-plugin/pull/323) ([radarsh](https://github.com/radarsh))
18+
- Adopt Gradle 8 [\#322](https://github.com/radarsh/gradle-test-logger-plugin/pull/322) ([Goooler](https://github.com/Goooler))
19+
- Upgrade to plugin publish 1.0.0 [\#298](https://github.com/radarsh/gradle-test-logger-plugin/pull/298) ([radarsh](https://github.com/radarsh))
20+
- Bump dependency versions [\#297](https://github.com/radarsh/gradle-test-logger-plugin/pull/297) ([radarsh](https://github.com/radarsh))
21+
- Upgrade to Gradle 7.5.1 [\#296](https://github.com/radarsh/gradle-test-logger-plugin/pull/296) ([radarsh](https://github.com/radarsh))
22+
- Bump Gradle enterprise plugin version [\#294](https://github.com/radarsh/gradle-test-logger-plugin/pull/294) ([radarsh](https://github.com/radarsh))
23+
- 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))
1324
- 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))
1425
- 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))
1526
- 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))
@@ -21,6 +32,14 @@
2132
- 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))
2233
- adds filter for showing only slow tests [\#207](https://github.com/radarsh/gradle-test-logger-plugin/pull/207) ([grimmjo](https://github.com/grimmjo))
2334

35+
## [v3.2.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v3.2.0) (2022-02-27)
36+
37+
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v3.1.0...v3.2.0)
38+
39+
**Implemented enhancements:**
40+
41+
- Add filter: hide regular passing tests, show slow passing tests [\#158](https://github.com/radarsh/gradle-test-logger-plugin/issues/158)
42+
2443
## [v3.1.0](https://github.com/radarsh/gradle-test-logger-plugin/tree/v3.1.0) (2021-11-02)
2544

2645
[Full Changelog](https://github.com/radarsh/gradle-test-logger-plugin/compare/v3.0.0...v3.1.0)
@@ -87,7 +106,7 @@
87106
- 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))
88107
- 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))
89108
- 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))
90-
- 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))
109+
- 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))
91110
- 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))
92111
- 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))
93112
- Upgrade to Gradle 6.7 [\#173](https://github.com/radarsh/gradle-test-logger-plugin/pull/173) ([radarsh](https://github.com/radarsh))

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Scroll down for more themes and customisation options or visit the [screenshots
2727

2828
```groovy
2929
plugins {
30-
id 'com.adarshr.test-logger' version '3.2.0'
30+
id 'com.adarshr.test-logger' version '4.0.0'
3131
}
3232
```
3333

@@ -41,7 +41,7 @@ buildscript {
4141
}
4242
}
4343
dependencies {
44-
classpath 'com.adarshr:gradle-test-logger-plugin:3.2.0'
44+
classpath 'com.adarshr:gradle-test-logger-plugin:4.0.0'
4545
}
4646
}
4747
@@ -50,11 +50,12 @@ apply plugin: 'com.adarshr.test-logger'
5050

5151
### Compatibility matrix
5252

53-
| Test logger version | Minimum Gradle version |
54-
|---------------------|-----------------------------|
55-
| 1.x | 4.x |
56-
| 2.x | 5.x |
57-
| 3.x | 6.5 |
53+
| Test logger version | Minimum Gradle version |
54+
|---------------------|------------------------|
55+
| 1.x | 4.x |
56+
| 2.x | 5.x |
57+
| 3.x | 6.5 |
58+
| 4.x | 7.6 |
5859

5960
## Configuration
6061

build.gradle

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ plugins {
1111
id 'maven-publish'
1212
id 'idea'
1313
id 'jacoco'
14-
id 'com.gradle.plugin-publish' version '0.19.0'
15-
id 'com.github.kt3k.coveralls' version '2.12.0'
14+
id 'com.gradle.plugin-publish' version '1.2.1'
15+
id 'com.github.kt3k.coveralls' version '2.12.2'
1616
}
1717

1818
def thisPlugin =
@@ -23,10 +23,6 @@ apply from: 'gradle/publishing.gradle'
2323
apply from: 'gradle/coverage.gradle'
2424
apply plugin: thisPlugin
2525

26-
repositories {
27-
mavenCentral()
28-
}
29-
3026
sourceSets {
3127
functionalTest {
3228
groovy {
@@ -38,20 +34,23 @@ sourceSets {
3834
}
3935

4036
dependencies {
41-
implementation gradleApi()
42-
implementation localGroovy()
37+
compileOnly gradleApi()
38+
compileOnly localGroovy()
4339
implementation 'org.fusesource.jansi:jansi:2.4.0'
4440

4541
testImplementation gradleTestKit()
4642
testImplementation 'org.spockframework:spock-core:2.0-groovy-3.0'
47-
testImplementation 'net.bytebuddy:byte-buddy:1.12.7'
48-
testImplementation 'org.objenesis:objenesis:3.2'
49-
testImplementation 'commons-io:commons-io:2.11.0'
43+
testImplementation 'net.bytebuddy:byte-buddy:1.14.9'
44+
testImplementation 'org.objenesis:objenesis:3.3'
45+
testImplementation 'commons-io:commons-io:2.14.0'
5046

51-
functionalTestImplementation localGroovy()
5247
functionalTestImplementation gradleTestKit()
5348
functionalTestImplementation 'org.spockframework:spock-core:2.0-groovy-3.0'
54-
functionalTestImplementation 'commons-io:commons-io:2.11.0'
49+
functionalTestImplementation 'commons-io:commons-io:2.14.0'
50+
}
51+
52+
java {
53+
toolchain.languageVersion = JavaLanguageVersion.of(8)
5554
}
5655

5756
gradlePlugin {
@@ -69,7 +68,7 @@ idea {
6968
}
7069
}
7170

72-
test {
71+
tasks.named("test") {
7372
useJUnitPlatform()
7473

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

86-
task functionalTest(type: Test) {
85+
tasks.register("functionalTest", Test) {
86+
dependsOn 'pluginUnderTestMetadata', 'testClasses'
87+
8788
useJUnitPlatform()
8889

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

104-
tasks.check.dependsOn 'functionalTest'
105-
tasks.functionalTest.dependsOn 'pluginUnderTestMetadata', 'testClasses'
106-
tasks.functionalTest.mustRunAfter 'test'
105+
tasks.named("check") {
106+
dependsOn("functionalTest")
107+
}

gradle.properties

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
version=3.2.0
1+
version=4.0.0
22
group=com.adarshr
3-
org.gradle.daemon=true
3+
4+
org.gradle.jvmargs=-Dfile.encoding=UTF-8
45
org.gradle.caching=false
56
org.gradle.parallel=true

gradle/coverage.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
jacoco {
2-
toolVersion '0.8.5'
2+
toolVersion '0.8.10'
33
}
44

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

88
reports {
99
xml.required = true

gradle/publishing.gradle

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,15 @@
1-
task sourceJar(type: Jar) {
2-
archiveClassifier.set('sources')
3-
from sourceSets.main.allSource
4-
}
5-
6-
publishing {
7-
publications {
8-
module(MavenPublication) {
9-
from components.java
10-
11-
artifact(sourceJar) {
12-
classifier = 'sources'
13-
}
14-
}
15-
}
16-
}
17-
18-
pluginBundle {
1+
gradlePlugin {
192
website = 'https://github.com/radarsh/gradle-test-logger-plugin'
203
vcsUrl = 'https://github.com/radarsh/gradle-test-logger-plugin'
21-
description = 'A Gradle plugin for printing beautiful logs on the console while running tests'
22-
tags = ['test', 'logging', 'console', 'terminal', 'groovy']
234

245
plugins {
256
testLoggerPlugin {
267
id = 'com.adarshr.test-logger'
278
displayName = 'Gradle Test Logger Plugin'
9+
description = 'A Gradle plugin for printing beautiful logs on the console while running tests'
10+
implementationClass = 'com.adarshr.gradle.testlogger.TestLoggerPlugin'
11+
description = 'A Gradle plugin for printing beautiful logs on the console while running tests'
12+
tags = ['test', 'logging', 'console', 'terminal', 'groovy']
2813
}
2914
}
30-
31-
mavenCoordinates {
32-
groupId = project.group
33-
artifactId = project.name
34-
}
3515
}

gradle/wrapper/gradle-wrapper.jar

4.09 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)