Exception in thread "MillServerActionRunner" java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at mill.define.Module$Internal.$anonfun$reflect$4(Module.scala:73) at scala.collection.ArrayOps$WithFilter.map(ArrayOps.scala:90) at mill.define.Module$Internal.reflect(Module.scala:64) at mill.define.Module$Internal.reflectAll(Module.scala:76)
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using Akka.Configuration; | |
using Microsoft.Extensions.Configuration; | |
using Newtonsoft.Json.Linq; | |
namespace Akka.Configuration | |
{ | |
public static class ConfigExtensions | |
{ |
This file contains hidden or 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
using Cake.Core; | |
using Cake.Core.Diagnostics; | |
using Cake.Core.IO; | |
using Cake.Core.Tooling; | |
using NSubstitute; | |
namespace Mohawk.Cake.Fixtures | |
{ | |
public sealed class CakeContextFixture | |
{ |
This file contains hidden or 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
#Requires -Version 4.0 | |
$ErrorActionPreference = 'Stop' | |
# Ignoring progress stream is vital to keep the performance | |
# of Invoke-WebRequest decent in Teamcity | |
$ProgressPreference = 'SilentlyContinue' | |
function global:RestoreBuildLevelPackages { | |
# Download paket.exe. | |
# Use --prefer-nuget to get it from nuget.org first as it is quicker (compressed .nupkg) |
This file contains hidden or 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
namespace FSharp.EventSourcing | |
open System | |
open System.Threading.Tasks | |
open Orleankka | |
open Orleankka.FSharp | |
open Strategies.Contracts | |
open System.Collections |
This file contains hidden or 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 experiments | |
import experiments.expectation.EquivalenceExpectationResult | |
import shapeless._ | |
trait EquivalenceExpectation[-In] { | |
type Result | |
def apply(actual:In, expected:In):Result | |
} |
This file contains hidden or 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
plugins { | |
id 'scala' | |
} | |
configurations { | |
scalaCompilerPlugin | |
} | |
dependencies { |
This file contains hidden or 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
tasks.withType(ScalaCompile){ | |
// Map plugin jars to -Xplugin parameter | |
List<String> parameters = | |
configurations.scalaCompilerPlugin.files.collect { | |
'-Xplugin:'+ it.absolutePath | |
} | |
// Add existing parameters | |
List<String> existingParameters = scalaCompileOptions.additionalParameters | |
if (existingParameters) { |
This file contains hidden or 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
configurations { | |
scalaCompilerPlugin | |
} | |
dependencies { | |
// Use Scala 2.11 in our library project | |
compile 'org.scala-lang:scala-library:2.12.6' | |
compile 'io.estatico:newtype_2.12:0.4.2' | |
scalaCompilerPlugin 'org.scalamacros:paradise_2.12.6:2.1.1' |
This file contains hidden or 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 zio.integration.stream | |
import zio._ | |
import zio.stream._ | |
object StreamOps extends StreamOps | |
trait StreamOps { | |
implicit class ZStreamOps[R,E,A](self:ZStream[R,E,A]) { | |
def split(p : A => UIO[Boolean]) : ZManaged[R, E, (ZStream[R,E,A],ZStream[R,E,A])] = |