Skip to content

Add RootProvider

Add RootProvider #1789

Triggered via push September 11, 2023 23:40
Status Failure
Total duration 4m 54s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

ci.yaml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

4 errors
build (11): task ':sigstore-java:spotlessJavaCheck'#L1
Execution failed for task ':sigstore-java:spotlessJavaCheck': The following files had format violations: src/main/java/dev/sigstore/tuf/RootProvider.java @@ -1,3 +1,18 @@ +/* +·*·Copyright·2023·The·Sigstore·Authors. +·* +·*·Licensed·under·the·Apache·License,·Version·2.0·(the·"License"); +·*·you·may·not·use·this·file·except·in·compliance·with·the·License. +·*·You·may·obtain·a·copy·of·the·License·at +·* +·*·····http://www.apache.org/licenses/LICENSE-2.0 +·* +·*·Unless·required·by·applicable·law·or·agreed·to·in·writing,·software +·*·distributed·under·the·License·is·distributed·on·an·"AS·IS"·BASIS, +·*·WITHOUT·WARRANTIES·OR·CONDITIONS·OF·ANY·KIND,·either·express·or·implied. +·*·See·the·License·for·the·specific·language·governing·permissions·and +·*·limitations·under·the·License. +·*/ package·dev.sigstore.tuf; import·com.google.common.io.Resources; @@ -12,7 +27,10 @@ ··String·get()·throws·IOException; ··static·RootProvider·fromResource(String·resourceName)·{ -····return·()·->·Resources.toString(Resources.getResource("dev/sigstore/tuf/sigstore-tuf-root/root.json"),·StandardCharsets.UTF_8); +····return·()·-> +········Resources.toString( +············Resources.getResource("dev/sigstore/tuf/sigstore-tuf-root/root.json"), +············StandardCharsets.UTF_8); ··} ··static·RootProvider·fromFile(Path·path)·{ src/main/java/dev/sigstore/tuf/Updater.java @@ -24,7 +24,6 @@ import·dev.sigstore.tuf.model.*; import·java.io.IOException; import·java.nio.charset.StandardCharsets; -import·java.nio.file.Files; import·java.security.InvalidKeyException; import·java.security.NoSuchAlgorithmException; import·java.security.PublicKey; Run './gradlew :sigstore-java:spotlessApply' to fix these violations. at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:111) at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:53) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29) at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:236) at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29) at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68) at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:221) at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:204) at org.gradle.api.internal.tasks.execution.TaskExecutio
build (11)
Gradle build failed: see console output for details
build (17): task ':sigstore-java:spotlessJavaCheck'#L1
Execution failed for task ':sigstore-java:spotlessJavaCheck': The following files had format violations: src/main/java/dev/sigstore/tuf/RootProvider.java @@ -1,3 +1,18 @@ +/* +·*·Copyright·2023·The·Sigstore·Authors. +·* +·*·Licensed·under·the·Apache·License,·Version·2.0·(the·"License"); +·*·you·may·not·use·this·file·except·in·compliance·with·the·License. +·*·You·may·obtain·a·copy·of·the·License·at +·* +·*·····http://www.apache.org/licenses/LICENSE-2.0 +·* +·*·Unless·required·by·applicable·law·or·agreed·to·in·writing,·software +·*·distributed·under·the·License·is·distributed·on·an·"AS·IS"·BASIS, +·*·WITHOUT·WARRANTIES·OR·CONDITIONS·OF·ANY·KIND,·either·express·or·implied. +·*·See·the·License·for·the·specific·language·governing·permissions·and +·*·limitations·under·the·License. +·*/ package·dev.sigstore.tuf; import·com.google.common.io.Resources; @@ -12,7 +27,10 @@ ··String·get()·throws·IOException; ··static·RootProvider·fromResource(String·resourceName)·{ -····return·()·->·Resources.toString(Resources.getResource("dev/sigstore/tuf/sigstore-tuf-root/root.json"),·StandardCharsets.UTF_8); +····return·()·-> +········Resources.toString( +············Resources.getResource("dev/sigstore/tuf/sigstore-tuf-root/root.json"), +············StandardCharsets.UTF_8); ··} ··static·RootProvider·fromFile(Path·path)·{ src/main/java/dev/sigstore/tuf/Updater.java @@ -24,7 +24,6 @@ import·dev.sigstore.tuf.model.*; import·java.io.IOException; import·java.nio.charset.StandardCharsets; -import·java.nio.file.Files; import·java.security.InvalidKeyException; import·java.security.NoSuchAlgorithmException; import·java.security.PublicKey; Run './gradlew :sigstore-java:spotlessApply' to fix these violations. at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:111) at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:53) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29) at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:236) at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29) at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68) at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:221) at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:204) at org.gradle.api.internal.tasks.execution.TaskExecutio
build (17)
Gradle build failed: see console output for details