Skip to content

Instantly share code, notes, and snippets.

--Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
val v = new {
lazy val scalaTestVersion = "3.2.9"
}
ThisBuild / scalaVersion := "2.13.7"
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / organization := "com.example"
ThisBuild / organizationName := "example"
import coursier.cache.{Cache, CacheLogger, CachePolicy, CacheUrl}
import coursier.util.Task
import coursier.core.{Authentication, Module, Repository}
import coursier.maven.MavenRepository
import java.net.MalformedURLException
import lmcoursier.definitions.{CachePolicy => LMCachePolicy, Module => LMModule}
import lmcoursier.credentials.{Credentials => LMCredentials, DirectCredentials => LMDirectCredentials, FileCredentials => LMFileCredentials}
import lmcoursier.{CoursierConfiguration, FromSbt}
import sbt.util.Logger
import sbt._
import Keys._
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration
import com.dimafeng.testcontainers.LocalStackV2Container
import com.amazonaws.services.s3.{AmazonS3, AmazonS3Client}
import com.amazonaws.services.s3.internal.SkipMd5CheckStrategy
import com.amazonaws.services.s3.model.ObjectListing
import org.testcontainers.containers.localstack.LocalStackContainer.Service
import sbt.ScriptedPlugin.autoImport.{scripted, scriptedLaunchOpts}

Keybase proof

I hereby claim:

  • I am er1c on github.
  • I am ericpeters (https://keybase.io/ericpeters) on keybase.
  • I have a public key ASA7ZE1rlZYma2UlVTKsLZzOdPMSU25Jn8pdQbojXrVriAo

To claim this, I am signing this object:

@er1c
er1c / test
Created September 29, 2021 19:25
# check if the file gets created and unzips and creates hardlinks
> clean
> assembly
> checkLogContains Unzipping into unzip cache: slf4j-api-1.6.1.jar
> checkLogContains Unzipping into unzip cache: commons-io-2.4.jar
> checkLogContains Unzipping into unzip cache: logback-classic-0.9.29.jar
> checkLogContains Unzipping into unzip cache: logback-core-0.9.29.jar
> checkLogContains Unzipping into unzip cache: scala-library-2.11.12.jar
> checkLogContains Creating hardlinks from unzip cache: slf4j-api-1.6.1.jar
> checkLogContains Creating hardlinks from unzip cache: commons-io-2.4.jar
import sbt._
import sbt.Keys._
import sbtassembly.AssemblyKeys._
import sbtassembly.AssemblyPlugin.autoImport.ShadeRule
import scala.sys.process._
import com.dotdata.sbt.SbtDatabricksPlugin.autoImport._
object Assembly {
private lazy val shadedPackages =
Seq("breeze", "com.github.fommil", "org.netlib")

make -C web_api run_web_api_dependencies_datamarts 2&gt;&amp;1 | prepend_timestamps.sh | tee make.log

{
"getVehiclesByVIN": {
"country": "SE",
"provider": 20367,
"lang": "de",
"vin": "WVWZZZ1KZ6W512579"
}
}
final protected def makeBreadcrumbs(ctx: SearchCtx)(implicit config: WebConfigCtx): Seq[Breadcrumb] = {
val breadCrumbs = Vector.newBuilder[Breadcrumb]
if (ctx.isNotEmpty || config.site.ui.header.showHomepageBreadcrumbOnEmptySearchCtx) breadCrumbs ++= HomepageBreadcrumb
if (ctx.isNotEmpty) breadCrumbs ++= ctx.breadcrumbs
breadCrumbs.result
}