example of several maven pom.xml profiles that congiure scala.js library and runtime projects
see http://stackoverflow.com/questions/26512750/how-to-use-scala-js-from-maven
| ## Nano color theme for Scala. | |
| ## 2013, 2018, Tobias Roeser | |
| ## | |
| syntax "scala" "\.(scala|sbt|sc)$" | |
| color green "\<(new|this|transient)\>" | |
| color green "\<(catch|do|else|finally|for|if|match|return|switch|throw|try|val|var|while)\>" | |
| color green "\<(def|abstract|class|extends|final|import|package|private|protected|public|trait|volatile)\>" | |
| color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)|\+|\-|\*|\/" | |
| color red "@(\\.|[^(])*" | |
| color yellow "\<(true|false|null)\>" |
| lefou@x2 ~/work/tototec/sbuild/build-foreign-project-examples/scala.git $ sbuild-svn-unsorted compileScala-quick-library | |
| Calculating dependency tree... | |
| [0%] Executing... | |
| [2%] Executing target: compile-forkjoin | |
| Compiling 10 source files to /home/lefou/work/tototec/sbuild/build-foreign-project-examples/scala.git/target/forkjoin/classes | |
| warning: [options] bootstrap class path not set in conjunction with -source 1.5 | |
| 1 warning | |
| [3%] Executing target: target/forkjoin.jar | |
| Building jar: /home/lefou/work/tototec/sbuild/build-foreign-project-examples/scala.git/target/forkjoin.jar | |
| [10%] Executing target: compileJava-locker-library |
| # ~/.screenrc | |
| # use visual bell | |
| vbell on | |
| # set a big scrolling buffer | |
| defscrollback 1000 | |
| # Set the caption on the bottom line | |
| caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c" |
| package scalatest_issue | |
| // The following test will not run with Scala 2.11.1 and ScalaTest 2.1.7 | |
| import org.scalatest.FreeSpec | |
| object TargetRefs2 { | |
| def apply(targetRefs: String*): TargetRefs2 = new TargetRefs2(Seq(targetRefs)) | |
| } |
| // copy this to: src/test/java/org/example/SimpleTest.java | |
| package org.example; | |
| import de.tobiasroeser.lambdatest.testng.FreeSpec; | |
| class SimpleTest extends FreeSpec {{ | |
| test("1 + 1 = 2", () -> { | |
| assertEquals(1 + 1, 2); | |
| }); |
| #!/usr/bin/env bash | |
| basedir= | |
| dirname= | |
| found=0 | |
| # traverses directory structure from process work directory to filesystem root | |
| # first directory with .mvn subdirectory is considered project base directory | |
| find_maven_basedir() { |
| #!/bin/bash | |
| # Default behavior is scan directory recursively | |
| if [ "x$1" == "x" ]; then | |
| echo "Find JAR files and searches their content listings for a given pattern" | |
| echo | |
| echo "Usage: jarfind [-l] <SEARCHTERM> [[DIR] ...]" | |
| echo | |
| echo "If DIRs is empty, $HOME/.m2/repository is searched." |
| // You should include this file from your pom.scala | |
| // In your pom.scala (or somewhere else) you must define | |
| // - a Deps object with the required dependencies | |
| // - a Plugins object with the required plugin dependencies | |
| import org.sonatype.maven.polyglot.scala.model._ | |
| import scala.collection.immutable._ | |
| object ReleaseProfile { |
example of several maven pom.xml profiles that congiure scala.js library and runtime projects
see http://stackoverflow.com/questions/26512750/how-to-use-scala-js-from-maven
| #!/usr/bin/env bash | |
| basedir= | |
| dirname= | |
| found=0 | |
| # traverses directory structure from process work directory to filesystem root | |
| # first directory with .mvn subdirectory is considered project base directory | |
| find_maven_basedir() { |