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
package sandbox; | |
import java.util.Random; | |
import java.util.concurrent.CountDownLatch; | |
import java.util.concurrent.TimeUnit; | |
import java.util.concurrent.atomic.AtomicInteger; | |
import java.util.concurrent.atomic.AtomicReference; | |
import java.util.concurrent.locks.Lock; | |
import java.util.concurrent.locks.ReentrantLock; | |
import com.github.benmanes.caffeine.cache.CacheWriter; |
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
// Runs a combined JaCoCo report across all modules in the reactor | |
// Output is placed in the root project's output directory | |
def root = session.topLevelProject | |
def modules = session.projectDependencyGraph.sortedProjects | |
.findAll { it != project && it.packaging != 'pom' } | |
if (!modules.empty) { | |
def jacoco = groovy.xml.NamespaceBuilder.newInstance(ant, 'antlib:org.jacoco.ant') | |
jacoco.report { |
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 -e | |
# ssh-policy: Helper for validating and running SSH_ORIGINAL_COMMAND | |
# Patterns are matched via grep -x -z [-F/-B/-E] | |
function fail() { | |
echo "$1" >&1 | |
exit 100 | |
} | |
[ $# == 1 ] || fail "command syntax error, denied" |