Skip to content

Commit

Permalink
Test support for Gradle 8.x (#116)
Browse files Browse the repository at this point in the history
Gradle 8 supported without change.

Tests needed updating to use version of Kotlin compatible with both Gradle 6.4 and 8.x
  • Loading branch information
big-andy-coates committed Mar 21, 2023
1 parent 220694e commit 35182cb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
12 changes: 10 additions & 2 deletions README.md
Expand Up @@ -12,8 +12,16 @@ A Gradle plugin for generating JSON schemas from code using the [Creel JSON Sche

See [CreekService.org](https://www.creekservice.org) for info on Creek Service.

> ### NOTE
> The plugin works with Gradle 6.4 and above.
-## Supported Gradle versions

| Gradle Version | Tested version | Notes |
|----------------|----------------|---------------------------------------------|
| < 6.4 | | Not compatible due to API changes in Gradle |
| 6.4.+ | 6.4 | Supported & tested |
| 6.4+ | 6.9.4 | Supported & tested |
| 7.+ | 7.6.1 | Supported & tested |
| 8.+ | 8.0.2 | Supported & tested |
| > 8.0.2 | | Not currently tested. Should work... |

## Usage

Expand Down
Expand Up @@ -429,7 +429,8 @@ private static String readSchema(final Path path) {
@SuppressWarnings("unused") // Invoked by reflection
private static ArgumentSets flavoursAndVersions() {
final Collection<?> flavours = List.of("kotlin", "groovy");
final Collection<?> gradleVersions = List.of("6.4", "6.9.2", "7.0", "7.4.2");
// Note: update root README.md when updating this test dimension:
final Collection<?> gradleVersions = List.of("6.4", "6.9.4", "7.6.1", "8.0.2");
return ArgumentSets.argumentsForFirstParameter(flavours)
.argumentsForNextParameter(gradleVersions);
}
Expand Down
Expand Up @@ -16,7 +16,7 @@

plugins {
id 'org.creekservice.schema.json'
id 'org.jetbrains.kotlin.jvm' version '1.5.31'
id 'org.jetbrains.kotlin.jvm' version '1.6.21'
id 'java-library'
}

Expand Down
Expand Up @@ -16,7 +16,7 @@

plugins {
id("org.creekservice.schema.json")
id("org.jetbrains.kotlin.jvm") version "1.5.31"
id("org.jetbrains.kotlin.jvm") version "1.6.21"
`java-library`
}

Expand Down

0 comments on commit 35182cb

Please sign in to comment.