Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup build and update compatibility matrix #161

Merged
merged 5 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/linux-build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Compilation
uses: gradle/gradle-build-action@v2
env:
GRADLE_OPTS: -Dfile.encoding=windows-1252
GRADLE_OPTS: -Dfile.encoding=windows-1252 -Ddevelocity.deprecation.captureOrigin=true
with:
arguments: classes
- name: Validate plugin
Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ Tested with OpenJDK JDK8

| Gradle Version | Works |
|:--------------:| :---: |
| 4.8 | yes |
| 5.6.4 | yes |
| 6.9.2 | yes |
| 7.3.3 | yes |
| 6.1 | yes |
| 6.9.4 | yes |
| 7.6.4 | yes |
| 8.10.1 | yes |

# Gradle version 6.0.1 and older

Compatibility with Gradle 8.x required changes that make the plugin versions greater than 3.0.3 incompatible with Gradle 6.0.1 and older. Use 3.0.3 version or upgrade to a supported version of Gradle.

# Gradle version 4.7 and older

Expand All @@ -59,7 +63,7 @@ example on how to retrieve it from Gradle Plugins Portal:
}

dependencies {
classpath 'com.bmuschko:gradle-clover-plugin:3.0.3'
classpath 'com.bmuschko:gradle-clover-plugin:3.0.7'
}
}

Expand Down
4 changes: 4 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Version 3.0.7

No changes, created to fix issues with Github pages

### Version 3.0.4

* Enhanced compatibility with Gradle 8.x
Expand Down
15 changes: 7 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,16 @@ apply from: "gradle/additional-artifacts.gradle"
apply from: "gradle/publishing.gradle"
apply from: "gradle/documentation.gradle"

tasks.withType(JavaCompile) {
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}

tasks.withType(GroovyCompile) {
tasks.withType(GroovyCompile).configureEach {
groovyOptions.encoding = 'UTF-8'
options.encoding = 'UTF-8'
}

tasks.withType(Test) {
if (project.hasProperty('rerun')) {
outputs.upToDateWhen { false }
}
tasks.withType(Test).configureEach {
testLogging {
events 'started', 'passed', 'failed', 'skipped'
}
Expand Down Expand Up @@ -78,8 +75,10 @@ dependencies {
}

ext.compatibilityVersion = '1.8'
sourceCompatibility = compatibilityVersion
targetCompatibility = compatibilityVersion
java {
sourceCompatibility = compatibilityVersion
targetCompatibility = compatibilityVersion
}

// Only add changing data to the manifest when publishing
gradle.taskGraph.whenReady { graph ->
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Allow easy configuration of Gradle versions
gradleCurrentVersion = 7.6.4
gradleTestingVersions = 4.8,5.6.4,6.9.2,7.3.3
gradleTestingVersions = 6.1,6.9.4,7.3.3

# Set default behavior for Reckon version plugin
reckon.scope=patch
Loading