diff --git a/.scalafmt.conf b/.scalafmt.conf new file mode 100644 index 000000000..f0a9f376d --- /dev/null +++ b/.scalafmt.conf @@ -0,0 +1 @@ +maxColumn = 120 diff --git a/build.gradle b/build.gradle index d4e4b6965..a4a92ee1a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ buildscript { - rootProject.version = '0.13.0' + rootProject.version = '0.13.0-SNAPSHOT' rootProject.group = 'ch.tutteli.atrium' def toolProjectsFun = subprojects.findAll { @@ -207,8 +207,6 @@ configure(nonCommonAndJsProjects - toolProjects) { dokka { logging.setLevel(LogLevel.QUIET) } -} -configure(nonCommonAndJsProjects) { compileKotlin { kotlinOptions { languageVersion = '1.2' diff --git a/scala/apis/atrium-api-fluent-en_GB-scala/build.gradle b/scala/apis/atrium-api-fluent-en_GB-scala/build.gradle new file mode 100644 index 000000000..64c923214 --- /dev/null +++ b/scala/apis/atrium-api-fluent-en_GB-scala/build.gradle @@ -0,0 +1,7 @@ +description = 'A fluent assertion function API in en_GB with a focus on code completion for Scala.' + +dependencies { + api atriumKotlinDep('domain-builders') + + testImplementation atriumKotlinDep('specs') +} diff --git a/scala/apis/atrium-api-fluent-en_GB-scala/src/main/scala/ch/tutteli/atrium/api/fluent/en_GB/scala/AnyAssertions.scala b/scala/apis/atrium-api-fluent-en_GB-scala/src/main/scala/ch/tutteli/atrium/api/fluent/en_GB/scala/AnyAssertions.scala new file mode 100644 index 000000000..74669f7a3 --- /dev/null +++ b/scala/apis/atrium-api-fluent-en_GB-scala/src/main/scala/ch/tutteli/atrium/api/fluent/en_GB/scala/AnyAssertions.scala @@ -0,0 +1,43 @@ +package ch.tutteli.atrium.api.fluent.en_GB.scala + +import ch.tutteli.atrium.assertions.Assertion +import ch.tutteli.atrium.creating.Expect +import ch.tutteli.atrium.domain.builders.ExpectImpl +import ch.tutteli.atrium.domain.builders.creating.AnyAssertionsBuilder +import kotlin.reflect.KClass + +class AnyAssertions[T](expect: Expect[T]) { + + def toBe(expected: T): Expect[T] = addAssertion(_.toBe(expect, expected)) + + def notToBe(expected: T): Expect[T] = + addAssertion(_.notToBe(expect, expected)) + + def isSameAs(expected: T): Expect[T] = + addAssertion(_.isSame(expect, expected)) + + def isNotSameAs(expected: T): Expect[T] = + addAssertion(_.isNotSame(expect, expected)) + + def toBeNullIfNullGivenElse(assertionCreatorOrNull: Expect[T] => Unit)(implicit kClass: KClass[T]) = + addAssertion(_.toBeNullIfNullGivenElse[T](expect, kClass, assertionCreatorOrNull)) + + def notToBeNull()(implicit kClass: KClass[T]): Expect[T] = isA[T]() + + def notToBeNull(assertionCreator: Expect[T] => Unit)(implicit kClass: KClass[T]): Expect[T] = + isA[T](assertionCreator) + + def isA[TSub]()(implicit kClass: KClass[TSub]): Expect[TSub] = + ExpectImpl.INSTANCE.getAny.isA(expect, kClass).getExpectOfFeature + + def isA[TSub]( + assertionCreator: Expect[TSub] => Unit + )(implicit kClass: KClass[TSub]): Expect[TSub] = + ExpectImpl.INSTANCE.getAny.isA(expect, kClass).addToFeature(assertionCreator) + + val and: Expect[T] = expect + def and(assertionCreator: Expect[T] => Unit): Expect[T] = expect.addAssertionsCreatedBy(assertionCreator) + + private def addAssertion(f: AnyAssertionsBuilder => Assertion): Expect[T] = + expect.addAssertion(f(ExpectImpl.INSTANCE.getAny)) +} diff --git a/scala/apis/atrium-api-fluent-en_GB-scala/src/main/scala/ch/tutteli/atrium/api/fluent/en_GB/scala/scala.scala b/scala/apis/atrium-api-fluent-en_GB-scala/src/main/scala/ch/tutteli/atrium/api/fluent/en_GB/scala/scala.scala new file mode 100644 index 000000000..11f18f070 --- /dev/null +++ b/scala/apis/atrium-api-fluent-en_GB-scala/src/main/scala/ch/tutteli/atrium/api/fluent/en_GB/scala/scala.scala @@ -0,0 +1,34 @@ +package ch.tutteli.atrium.api.fluent.en_GB + +import ch.tutteli.atrium.creating.Expect + +package object scala extends ScalaKotlinConversions { + + implicit def expectToAnyAssertions[T](expect: Expect[T]): AnyAssertions[T] = new AnyAssertions[T](expect) +} + +package scala { + + import kotlin.jvm.internal.Reflection + import kotlin.reflect.KClass + + import _root_.scala.reflect.ClassTag + + trait ScalaKotlinConversions { + type KUnit = kotlin.Unit + type KFun0[R] = kotlin.jvm.functions.Function0[R] + type KFun1[T, R] = kotlin.jvm.functions.Function1[T, R] + type KFun2[T, A1, R] = kotlin.jvm.functions.Function2[T, A1, R] + type KFun3[T, A1, A2, R] = kotlin.jvm.functions.Function3[T, A1, A2, R] + type KFun4[T, A1, A2, A3, R] = kotlin.jvm.functions.Function4[T, A1, A2, A3, R] + type KFun5[T, A1, A2, A3, A4, R] = kotlin.jvm.functions.Function5[T, A1, A2, A3, A4, R] + + type KAssertionCreator[T] = KFun1[Expect[T], KUnit] + + implicit def scalaAssertionCreatorToKotlin[T](f: Expect[T] => Unit): KAssertionCreator[T] = + if (f == null) null else e => { f(e); kotlin.Unit.INSTANCE } + + implicit def kClass[T](implicit classTag: ClassTag[T]): KClass[T] = + Reflection.createKotlinClass(classTag.runtimeClass).asInstanceOf[KClass[T]] + } +} diff --git a/scala/apis/atrium-api-fluent-en_GB-scala/src/test/scala/ch/tutteli/atrium/api/fluent/en_GB/scala/AnyAssertionsSpec.scala b/scala/apis/atrium-api-fluent-en_GB-scala/src/test/scala/ch/tutteli/atrium/api/fluent/en_GB/scala/AnyAssertionsSpec.scala new file mode 100644 index 000000000..dd68f7c90 --- /dev/null +++ b/scala/apis/atrium-api-fluent-en_GB-scala/src/test/scala/ch/tutteli/atrium/api/fluent/en_GB/scala/AnyAssertionsSpec.scala @@ -0,0 +1,58 @@ +package ch.tutteli.atrium.api.fluent.en_GB.scala + +import ch.tutteli.atrium.creating.Expect +import kotlin.reflect.KClass +import TestUtils._ +import ch.tutteli.atrium.specs.integration.AnyAssertionsSpec.{SubType, SuperType} + +//noinspection TypeAnnotation +object AnyAssertionsSpec { + def toBe[T]: Fun1[T, T] = fun1("toBe", _.toBe(_)) + def notToBe[T]: Fun1[T, T] = fun1("notToBe", _.notToBe(_)) + def isSameAs[T]: Fun1[T, T] = fun1("isSameAs", _.isSameAs(_)) + def isNotSameAs[T]: Fun1[T, T] = fun1("isNotSameAs", _.isNotSameAs(_)) + def toBeNullIfNullGivenElse[T]( + implicit kClass: KClass[T] + ): Fun1[T, KFun1[_ >: Expect[T], KUnit]] = + fun1("toBeNullIfNullGivenElse", (e, c) => e.toBeNullIfNullGivenElse(c.asInstanceOf[KAssertionCreator[T]])) + + def notToBeNull[T]( + implicit kClass: KClass[T] + ): Fun1[T, KFun1[_ >: Expect[T], KUnit]] = + fun1("notToBeNull", (e, c) => e.notToBeNull(c.asInstanceOf[KAssertionCreator[T]])) +} + +import AnyAssertionsSpec._ + +class AnyAssertionsSpec + extends ch.tutteli.atrium.specs.integration.AnyAssertionsSpec( + toBe, + toBe, + toBe, + toBe, + notToBe, + notToBe, + notToBe, + notToBe, + isSameAs, + isSameAs, + isSameAs, + isSameAs, + isNotSameAs, + isNotSameAs, + isNotSameAs, + isNotSameAs, + fun0("toBe", _.toBe(null)), + toBeNullIfNullGivenElse[Integer], + new kotlin.Pair("isA (feature)", (e: Expect[_]) => e.isA()), + new kotlin.Pair("isA", (e: Expect[_], c) => e.isA(c.asInstanceOf[KAssertionCreator[Integer]])), + new kotlin.Pair("isA (feature)", (e: Expect[_]) => e.isA()), + new kotlin.Pair("isA", (e: Expect[_], c) => e.isA(c.asInstanceOf[KAssertionCreator[SuperType]])), + new kotlin.Pair("isA (feature)", (e: Expect[_]) => e.isA()), + new kotlin.Pair("isA", (e: Expect[_], c) => e.isA(c.asInstanceOf[KAssertionCreator[SubType]])), + new kotlin.Pair("notToBeNull (feature)", _.notToBeNull()), + notToBeNull[Integer], + fun0("and", _.and), + fun1("and with creator", (e, c) => e.and(c.asInstanceOf[KAssertionCreator[Integer]])), + "[Atrium] " + ) diff --git a/scala/apis/atrium-api-fluent-en_GB-scala/src/test/scala/ch/tutteli/atrium/api/fluent/en_GB/scala/TestUtils.scala b/scala/apis/atrium-api-fluent-en_GB-scala/src/test/scala/ch/tutteli/atrium/api/fluent/en_GB/scala/TestUtils.scala new file mode 100644 index 000000000..670baeaa0 --- /dev/null +++ b/scala/apis/atrium-api-fluent-en_GB-scala/src/test/scala/ch/tutteli/atrium/api/fluent/en_GB/scala/TestUtils.scala @@ -0,0 +1,93 @@ +package ch.tutteli.atrium.api.fluent.en_GB.scala + +import ch.tutteli.atrium.creating.Expect + +object TestUtils { + + implicit def kotlinAssertionCreatorToScala[T](f: KAssertionCreator[T]): Expect[T] => Unit = { + val scalaF = kFun1ToScala(f) + if (scalaF == null) null else scalaF(_) + } + + implicit def scalaFun0ToKotlin[R](f: () => R): KFun0[R] = + if (f == null) null else f.apply _ + + implicit def scalaFun1ToKotlin[T, R](f: T => R): KFun1[T, R] = + if (f == null) null else f.apply _ + + implicit def scalaFun2ToKotlin[T, A1, R](f: (T, A1) => R): KFun2[T, A1, R] = + if (f == null) null else f.apply _ + + implicit def scalaFun3ToKotlin[T, A1, A2, R](f: (T, A1, A2) => R): KFun3[T, A1, A2, R] = + if (f == null) null else f.apply _ + + implicit def scalaFun4ToKotlin[T, A1, A2, A3, R](f: (T, A1, A2, A3) => R): KFun4[T, A1, A2, A3, R] = + if (f == null) null else f.apply _ + + implicit def scalaFun5ToKotlin[T, A1, A2, A3, A4, R](f: (T, A1, A2, A3, A4) => R): KFun5[T, A1, A2, A3, A4, R] = + if (f == null) null else f.apply _ + + implicit def kFun0ToScala[R](f: KFun0[R]): () => R = + if (f == null) null else () => f.invoke() + + implicit def kFun1ToScala[T, R](f: KFun1[T, R]): T => R = + if (f == null) null else f.invoke + + implicit def kFun2ToScala[T, A1, R](f: KFun2[T, A1, R]): (T, A1) => R = + if (f == null) null else f.invoke + + implicit def kFun3ToScala[T, A1, A2, R](f: KFun3[T, A1, A2, R]): (T, A1, A2) => R = + if (f == null) null else f.invoke + + implicit def kFun4ToScala[T, A1, A2, A3, R](f: KFun4[T, A1, A2, A3, R]): (T, A1, A2, A3) => R = + if (f == null) null else f.invoke + + implicit def kFun5ToScala[T, A1, A2, A3, A4, R](f: KFun5[T, A1, A2, A3, A4, R]): (T, A1, A2, A3, A4) => R = + if (f == null) null else f.invoke + + type SpecPair[T] = kotlin.Pair[String, T] + + type Feature0[T, R] = SpecPair[KFun1[Expect[T], Expect[R]]] + type Feature1[T, A1, R] = SpecPair[KFun2[Expect[T], A1, Expect[R]]] + type Feature2[T, A1, A2, R] = SpecPair[KFun3[Expect[T], A1, A2, Expect[R]]] + type Feature3[T, A1, A2, A3, R] = SpecPair[KFun4[Expect[T], A1, A2, A3, Expect[R]]] + type Feature4[T, A1, A2, A3, A4, R] = SpecPair[KFun5[Expect[T], A1, A2, A3, A4, Expect[R]]] + + type Fun0[T] = Feature0[T, T] + type Fun1[T, A1] = Feature1[T, A1, T] + type Fun2[T, A1, A2] = Feature2[T, A1, A2, T] + type Fun3[T, A1, A2, A3] = Feature3[T, A1, A2, A3, T] + type Fun4[T, A1, A2, A3, A4] = Feature4[T, A1, A2, A3, A4, T] + + def feature0[T, R](name: String, f: Expect[T] => Expect[R]): Feature0[T, R] = + new kotlin.Pair(name + " (feature)", f) + + def feature1[T, A1, R](name: String, f: (Expect[T], A1) => Expect[R]): Feature1[T, A1, R] = + new kotlin.Pair(name + " (feature)", f) + + def feature2[T, A1, A2, R](name: String, f: (Expect[T], A1, A2) => Expect[R]): Feature2[T, A1, A2, R] = + new kotlin.Pair(name + " (feature)", f) + + def feature3[T, A1, A2, A3, R](name: String, f: (Expect[T], A1, A2, A3) => Expect[R]): Feature3[T, A1, A2, A3, R] = + new kotlin.Pair(name + " (feature)", f) + + def feature4[T, A1, A2, A3, A4, R](name: String, + f: (Expect[T], A1, A2, A3, A4) => Expect[R]): Feature4[T, A1, A2, A3, A4, R] = + new kotlin.Pair(name + " (feature)", f) + + def fun0[T](name: String, f: Expect[T] => Expect[T]): Fun0[T] = + new kotlin.Pair(name, f) + + def fun1[T, A1](name: String, f: (Expect[T], A1) => Expect[T]): Fun1[T, A1] = + new kotlin.Pair(name, f) + + def fun2[T, A1, A2](name: String, f: (Expect[T], A1, A2) => Expect[T]): Fun2[T, A1, A2] = + new kotlin.Pair(name, f) + + def fun3[T, A1, A2, A3](name: String, f: (Expect[T], A1, A2, A3) => Expect[T]): Fun3[T, A1, A2, A3] = + new kotlin.Pair(name, f) + + def fun4[T, A1, A2, A3, A4](name: String, f: (Expect[T], A1, A2, A3, A4) => Expect[T]): Fun4[T, A1, A2, A3, A4] = + new kotlin.Pair(name, f) + +} diff --git a/scala/build.gradle b/scala/build.gradle new file mode 100644 index 000000000..07cf45719 --- /dev/null +++ b/scala/build.gradle @@ -0,0 +1,37 @@ +buildscript { + rootProject.version = '0.13.0-SNAPSHOT' + rootProject.group = 'ch.tutteli.atrium' + ext { + atriumKotlinDep = { name -> "ch.tutteli.atrium:atrium-$name:$rootProject.version" } + + // project setup + tutteli_plugins_version = '0.33.1' + kotlin_version = '1.3.72' + } + repositories { + maven { url "https://plugins.gradle.org/m2/" } + } + dependencies { + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath "ch.tutteli:tutteli-gradle-spek:$tutteli_plugins_version" + } +} + +subprojects { + repositories { + if (!System.getenv('CI')) { + mavenLocal() + } + mavenCentral() + jcenter() + } + + apply plugin: 'scala' + apply plugin: 'java-library' + apply plugin: 'kotlin' + apply plugin: 'ch.tutteli.spek' + + dependencies { + implementation 'org.scala-lang:scala-library:2.13.2' + } +} diff --git a/scala/gradle/wrapper/gradle-wrapper.jar b/scala/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 000000000..f3d88b1c2 Binary files /dev/null and b/scala/gradle/wrapper/gradle-wrapper.jar differ diff --git a/scala/gradle/wrapper/gradle-wrapper.properties b/scala/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000..6623300be --- /dev/null +++ b/scala/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/scala/gradlew b/scala/gradlew new file mode 100755 index 000000000..2fe81a7d9 --- /dev/null +++ b/scala/gradlew @@ -0,0 +1,183 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" diff --git a/scala/settings.gradle b/scala/settings.gradle new file mode 100644 index 000000000..f2953ec2d --- /dev/null +++ b/scala/settings.gradle @@ -0,0 +1,21 @@ +rootProject.name = 'atrium' + +buildscript { + gradle.ext.tutteli_plugins_version = '0.32.2' + repositories { + maven { url "https://plugins.gradle.org/m2/" } + } + dependencies { + classpath "ch.tutteli:tutteli-gradle-settings:$gradle.ext.tutteli_plugins_version" + } +} + +apply plugin: 'ch.tutteli.settings' + +//noinspection GroovyAssignabilityCheck +include { + + apis("api-") { + _ 'fluent-en_GB-scala' + } +}