Skip to content

Start creating 2.0.0 release #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
38 changes: 26 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.sumologic.shellbase</groupId>
<artifactId>all</artifactId>
<name>all</name>
<version>1.5.2-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<licenses>
<license>
Expand All @@ -26,14 +26,28 @@

<properties>
<scala.version.major>2.11</scala.version.major>
<scala.version>${scala.version.major}.8</scala.version>
<akka.version>2.3.11</akka.version>
<scala.version>${scala.version.major}.12</scala.version>
</properties>
<dependencies>
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_${scala.version.major}</artifactId>
<version>2.2.6</version>
<version>3.0.8</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>2.28.2</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
<version>4.12</version>
</dependency>
</dependencies>
<build>
Expand All @@ -44,7 +58,7 @@
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.1.6</version>
<version>3.4.6</version>
<executions>
<execution>
<id>test-compile</id>
Expand All @@ -68,7 +82,7 @@
<!-- Enable that when we will migrate to new Scala major version (e.g. 2.11) -->
<checkMultipleScalaVersions>false</checkMultipleScalaVersions>
<args>
<arg>-target:jvm-1.6</arg>
<arg>-target:jvm-1.8</arg>
<arg>-dependencyfile</arg>
<arg>${project.build.directory}/.scala_dependencies</arg>
<arg>-deprecation</arg>
Expand All @@ -90,7 +104,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<version>3.1.0</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -104,7 +118,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.7</version>
<version>2.22.2</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
Expand All @@ -113,7 +127,7 @@
<plugin>
<groupId>org.scalatest</groupId>
<artifactId>scalatest-maven-plugin</artifactId>
<version>1.0</version>
<version>2.0.0</version>
<configuration>
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
<junitxml>.</junitxml>
Expand All @@ -131,7 +145,7 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
<version>0.8.4</version>
<executions>
<execution>
<goals>
Expand Down Expand Up @@ -187,7 +201,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand All @@ -201,7 +215,7 @@
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.5.1</version>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus-staging</serverId>
Expand Down
34 changes: 6 additions & 28 deletions shellbase-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<artifactId>shellbase-core</artifactId>
<name>shellbase-core</name>
<packaging>jar</packaging>
<version>1.5.2-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>

<parent>
<artifactId>all</artifactId>
<groupId>com.sumologic.shellbase</groupId>
<version>1.5.2-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>

Expand All @@ -26,25 +26,25 @@
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.9.3</version>
<version>2.10.2</version>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.21</version>
<version>1.7.26</version>
</dependency>

<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.2</version>
<version>1.4</version>
</dependency>

<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
<version>2.6</version>
</dependency>

<dependency>
Expand All @@ -64,28 +64,6 @@
<artifactId>scala-library</artifactId>
<version>${scala.version}</version>
</dependency>

<!-- Test Dependencies. -->
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_${scala.version.major}</artifactId>
<scope>test</scope>
<version>2.1.7</version>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
<version>4.12</version>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ package com.sumologic.shellbase
import java.io.File

import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class ScriptRendererSpec extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package com.sumologic.shellbase

import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class ShellBannerTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ import java.util
import java.util.concurrent.Semaphore

import com.sumologic.shellbase.notifications.{InMemoryShellNotificationManager, ShellNotification, ShellNotificationManager}
import jline.console.completer.CandidateListCompletionHandler
import org.apache.commons.cli.CommandLine
import org.junit.runner.RunWith
import org.scalatest.concurrent.Eventually
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner
import sun.misc.Signal
import org.mockito.Mockito._

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package com.sumologic.shellbase

import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class ShellColorsTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
package com.sumologic.shellbase

import com.sumologic.shellbase.cmdline.RichCommandLine._
import com.sumologic.shellbase.cmdline.{CommandLineOption, RichCommandLine}
import com.sumologic.shellbase.cmdline.CommandLineOption
import org.apache.commons.cli.{CommandLine, Options}
import org.junit.runner.RunWith
import org.mockito.Mockito._
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class ShellCommandAliasTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package com.sumologic.shellbase

import org.apache.commons.cli.CommandLine
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class ShellCommandSetTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package com.sumologic.shellbase

import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class ShellFormattingTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package com.sumologic.shellbase

import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class ShellHighlightsTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import java.nio.file.Files

import com.sumologic.shellbase.ShellPromptValidators._
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class ShellPromptValidatorsTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ import java.util.Date

import jline.console.ConsoleReader
import org.junit.runner.RunWith
import org.mockito.Matchers._
import org.mockito.ArgumentMatchers.{eq => matcheq, _}
import org.mockito.Mockito._
import org.scalatest.BeforeAndAfterEach
import org.scalatest.junit.JUnitRunner
import org.scalatest.mock.MockitoSugar
import org.scalatestplus.junit.JUnitRunner
import org.scalatestplus.mockito.MockitoSugar

import scala.collection.mutable

Expand Down Expand Up @@ -291,6 +291,7 @@ class ShellPrompterTest extends CommonWordSpec with BeforeAndAfterEach with Mock

private def answerQuestionWith(str1: String, str: String*): Unit = {
when(mockReader.readLine(anyString, anyChar)).thenReturn(str1, str: _*)
when(mockReader.readLine(anyString, matcheq(null))).thenReturn(str1, str: _*)
}

private def feedCharacters(string: String): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package com.sumologic.shellbase

import com.sumologic.shellbase.ShellStringSupport._
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class ShellStringSupportTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package com.sumologic.shellbase.cmdline

import com.sumologic.shellbase.CommonWordSpec
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class ArgumentTrackingOptionsTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package com.sumologic.shellbase.cmdline

import com.sumologic.shellbase.CommonWordSpec
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class CommandLineValidatorsTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import com.sumologic.shellbase.CommonWordSpec
import com.sumologic.shellbase.cmdline.RichCommandLine._
import org.apache.commons.cli.Options
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class RichCommandLineTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package com.sumologic.shellbase.cmdline

import com.sumologic.shellbase.{CommonWordSpec, ExitShellCommandException}
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class RichScalaOptionTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package com.sumologic.shellbase.commands

import com.sumologic.shellbase.CommonWordSpec
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class ClearCommandTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package com.sumologic.shellbase.commands

import com.sumologic.shellbase.CommonWordSpec
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class EchoCommandTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package com.sumologic.shellbase.commands

import com.sumologic.shellbase.CommonWordSpec
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class ExitCommandTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import java.io.File

import com.sumologic.shellbase.CommonWordSpec
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class RunScriptCommandTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package com.sumologic.shellbase.commands

import com.sumologic.shellbase.CommonWordSpec
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class SleepCommandTest extends CommonWordSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import java.nio.file.{Files, Path}

import com.sumologic.shellbase.CommonWordSpec
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatestplus.junit.JUnitRunner

import scala.collection.JavaConverters._
import scala.util.Random
Expand Down
Loading