Skip to content

Instantly share code, notes, and snippets.

View big-guy's full-sized avatar

Sterling Greene big-guy

View GitHub Profile
interface Action<T> {
void execute(T t)
}
class ClosureBackedAction<T> implements Action<T> {
private final Closure closure;
ClosureBackedAction(Closure closure) {
this.closure = closure
}
public void execute(T delegate) {
@big-guy
big-guy / outage.md
Last active March 15, 2021 18:25
JCenter failing to resolve some artifacts

Hi JFrog!

Something still seems to be broken when resolving artifacts from JCenter.

Here's a package that is published to Maven Central and also shows up on JCenter.

Downloading an .asc file from Maven Central and JCenter has different results:

class OsDeps {
final ListProperty<Tool> tools
final DirectoryProperty pcDirectory
final ProviderFactory providers
final ObjectFactory objects
OsDeps(Project project) {
objects = project.objects
providers = project.providers
pcDirectory = objects.directoryProperty()
@big-guy
big-guy / GitVersionControlSystemIntegrationTest.groovy
Created October 3, 2017 16:53
git version control system integration test base
package org.gradle.vcs.git.internal
import org.gradle.integtests.fixtures.AbstractIntegrationSpec
import org.gradle.vcs.fixtures.GitRepository
import org.gradle.vcs.internal.VersionControlSystemFactory
import org.junit.Rule
class GitVersionControlSystemIntegrationTest extends AbstractIntegrationSpec {
@Rule GitRepository repo = new GitRepository(temporaryFolder)
import org.gradle.api.Transformer;
import org.gradle.api.internal.resolve.ProjectModelResolver;
import org.gradle.model.ModelMap;
import org.gradle.model.internal.registry.ModelRegistry;
import org.gradle.nativeplatform.NativeBinarySpec;
import org.gradle.nativeplatform.NativeDependencySet;
import org.gradle.nativeplatform.NativeLibraryRequirement;
import org.gradle.nativeplatform.NativeLibrarySpec;
import org.gradle.nativeplatform.internal.NativeBinarySpecInternal;