diff --git a/build.gradle.kts b/build.gradle.kts index 2618aa79..b41f92e2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,6 @@ import com.diffplug.gradle.spotless.SpotlessExtension import com.vanniktech.maven.publish.JavaLibrary import com.vanniktech.maven.publish.JavadocJar -import com.vanniktech.maven.publish.SonatypeHost import net.ltgt.gradle.errorprone.CheckSeverity import net.ltgt.gradle.errorprone.errorprone @@ -292,7 +291,7 @@ allprojects { mavenPublishing { val isAutoReleased = project.hasProperty("signingInMemoryKey") - publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true) + publishToMavenCentral(automaticRelease = true) if (isAutoReleased) { signAllPublications() } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index e9d03335..ffb2ab2a 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,7 +4,7 @@ buf = "1.55.1" cel = "0.9.1" error-prone = "2.40.0" junit = "5.13.3" -maven-publish = "0.33.0" +maven-publish = "0.34.0" protobuf = "4.31.1" [libraries] diff --git a/src/test/java/build/buf/protovalidate/FormatTest.java b/src/test/java/build/buf/protovalidate/FormatTest.java index f2223ab0..4614e587 100644 --- a/src/test/java/build/buf/protovalidate/FormatTest.java +++ b/src/test/java/build/buf/protovalidate/FormatTest.java @@ -94,7 +94,7 @@ public static void setUp() throws Exception { .build(); } - @ParameterizedTest() + @ParameterizedTest @MethodSource("getFormatTests") void testFormatSuccess(SimpleTest test) throws CelValidationException, CelEvaluationException { Object result = evaluate(test); @@ -102,7 +102,7 @@ void testFormatSuccess(SimpleTest test) throws CelValidationException, CelEvalua assertThat(result).isInstanceOf(String.class); } - @ParameterizedTest() + @ParameterizedTest @MethodSource("getFormatErrorTests") void testFormatError(SimpleTest test) { assertThatThrownBy(() -> evaluate(test)).isInstanceOf(CelEvaluationException.class);