Skip to content

Commit

Permalink
Upgrade Gradle and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
baron1405 committed Jun 1, 2024
1 parent b0b9854 commit b68789d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ Perform the following steps to create a release.
- Increment the version patch number
- Set the build type to `BuildType.snapshot`
- Update the `CHANGELOG.md` with the changes in the release and prepare for next release changes
- Update the `Usage` section in the `README.md` with the latest artifact release version
- Update the `Usage` and `Compatibility` sections in the `README.md` with the latest artifact release version
- Commit these changes
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[versions]
java = "17"
checkstyle = "10.15.0"
checkstyle = "10.17.0"
jacoco = "0.8.12"
junit = "5.10.2"
spotbugs = "4.8.4"
spotbugs = "4.8.5"

[plugins]
dependencyAnalysis = { id = "com.autonomousapps.dependency-analysis", version = "1.31.0" }
dependencyAnalysis = { id = "com.autonomousapps.dependency-analysis", version = "1.32.0" }
pluginPublish = { id = "com.gradle.plugin-publish", version = "1.2.1" }
spotbugs = { id = "com.github.spotbugs", version = "6.0.12" }
spotbugs = { id = "com.github.spotbugs", version = "6.0.15" }
versions = { id = "com.github.ben-manes.versions", version = "0.51.0" }

[libraries]
assertJ = "org.assertj:assertj-core:3.25.3"
assertJ = "org.assertj:assertj-core:3.26.0"
cthingProjectVersion = "org.cthing:cthing-projectversion:1.0.0"
jsr305 = "com.google.code.findbugs:jsr305:3.0.2"
junitApi = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junit" }
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class PluginIntegTest {
public static Stream<Arguments> gradleVersionProvider() {
return Stream.of(
arguments("8.0"),
arguments("8.7")
arguments("8.8")
);
}

Expand Down Expand Up @@ -102,8 +102,8 @@ public void testStringVersion(final String gradleVersion) throws IOException {
version = "1.2.3"
""");

final UnexpectedBuildFailure exception = catchThrowableOfType(() -> createGradleRunner(gradleVersion).build(),
UnexpectedBuildFailure.class);
final UnexpectedBuildFailure exception = catchThrowableOfType(UnexpectedBuildFailure.class,
() -> createGradleRunner(gradleVersion).build());
final BuildResult result = exception.getBuildResult();
assertThat(result.getOutput()).contains("Version is not an instance of org.cthing.projectversion.ProjectVersion");
}
Expand Down Expand Up @@ -141,8 +141,8 @@ public void testRelaseWithSnapshots(final String gradleVersion) throws IOExcepti
}
""");

final UnexpectedBuildFailure exception = catchThrowableOfType(() -> createGradleRunner(gradleVersion).build(),
UnexpectedBuildFailure.class);
final UnexpectedBuildFailure exception = catchThrowableOfType(UnexpectedBuildFailure.class,
() -> createGradleRunner(gradleVersion).build());
final BuildResult result = exception.getBuildResult();
assertThat(result.getOutput()).contains("Release build depends on snapshot artifact org.cthing:versionparser:4.+ (implementation)");
}
Expand Down

0 comments on commit b68789d

Please sign in to comment.