This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# PURPOSE | |
# | |
# The Gradle wrapper[1] is a simple and convenient way of making Gradle | |
# builds self-contained and reproducible. However, in multi-project | |
# builds, it can be cumbersome to type in relative paths e.g.: | |
# ./gradlew # when in root | |
# ../gradlew # when in subdir | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am jdigger on github. | |
* I am jmoore (https://keybase.io/jmoore) on keybase. | |
* I have a public key whose fingerprint is ADD7 5AF0 7E21 312D AE37 4639 F9A8 FBC6 EE25 BFBD | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.annotation.Nonnull; | |
/** | |
* Indicates there was an error. | |
*/ | |
public interface Failure { | |
/** | |
* Returns the error. | |
*/ | |
@Nonnull |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.annotation.Nonnull; | |
import javax.annotation.Nullable; | |
import java.lang.invoke.MethodHandle; | |
import java.lang.invoke.MethodHandles; | |
import java.lang.reflect.Constructor; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
/** | |
* Functions for doing reflection. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.annotation.Nonnull; | |
/** | |
* @see #withValue1(String) | |
*/ | |
public class ComplexValueClass { | |
private final String value1; | |
private final String value2; | |
private final String value3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Too many crusty old git branches? Run this to find likely candidates for deletion | |
# It lists all the remote branches and sorts them by age. | |
# | |
#for k in `git branch -r|awk '{print $1}'`;do echo `git show --pretty=format:"%ci %cr %cn " $k|head -n 1`\\t$k;done|sort -r | |
for k in `git branch -r|awk '{print $1}'`;do echo `git show --pretty=format:"%Cgreen%ci %Cblue%cr %Cred%cn %Creset" $k|head -n 1`\\t$k;done|sort -r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.gradle.api.artifacts.repositories.AuthenticationSupported | |
import org.gradle.api.tasks.Upload | |
import org.gradle.api.publication.maven.internal.ant.RepositoryBuilder | |
apply from: 'config.gradle' | |
logger.info "Applying init.gradle to add Artifactory credentials for ${security.host}" | |
gradle.projectsEvaluated { | |
security.each {secRepoConfig -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
dependencies { | |
classpath "commons-io:commons-io:2.4" | |
} | |
} | |
configurations { | |
java2wsdl | |
} |