JreJavaHomeScalaIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Let scala tests not use deprecated configurations

    • -2
    • +2
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 19 more files in changeset.
Let scala tests not use deprecated configurations

    • -2
    • +2
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 19 more files in changeset.
Let scala tests not use deprecated configurations

    • -2
    • +2
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 19 more files in changeset.
Let scala tests not use deprecated configurations

    • -2
    • +2
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 19 more files in changeset.
Re-enable Play/Scala tests on Java 9+ (#5593)

Almost all Play/Scala tests were ignored on Java 9/10, which makes it lack coverage. This PR does:

- Update Scala version to Java9-compatible version according to [JDK compatibility](https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html).

- Update default Play version to latest 2.6.15, which supports Java 9/10

- Adjust corresponding samples. Previous default Play version 2.3.10 was too old (release at 2014).

- Ignored the tests which can't work on Java 9+.

- Separate Play test resources with different versions. For example, Play 2.6 uses `build.gradle` and `Play 2.4/2.5` uses `build.gradle.old`.

- Previously `AbstractMultiVersionPlayContinuousBuildIntegrationTest` didn't have `targetPlatform` configuration, which made multi-version tests meaningless

- Fix `play-logback` configuration for `2.5.18`.

    • -2
    • +2
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 170 more files in changeset.
Use mavenCentral() and jcenter() mirrors in tests where possible

    • -6
    • +2
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 51 more files in changeset.
Remove redundant deprecation warning expectations

    • -1
    • +0
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 24 more files in changeset.
Enforce exact deprecation warning count

    • -2
    • +1
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 6 more files in changeset.
Use separate output directories for all JVM languages

- Introduce an outputDir on SourceDirectorySet

- Default output directory is now `build/classes/<source directory set name>/<source set name>`

- Example: Java compilation goes to build/classes/java/main instead of build/classes/main

- Adapt JDepend, FindBugs, Test and ValidateTaskProperties tasks to handle multiple class directories

- Deprecate setClassesDir/getClassesDir on SourceSetOutput

- Calling setClassesDir restores old behavior (shared output directory)

- Introduce addClassesDir and getClassesDirs on SourceSetOutput

- OSGi plugin needs a single classes directory, so introduce 'osgiClasses' task that syncs all classes to a single directory

Most of the changes to integration tests are find classes in their new location. Helper methods in AbstractIntegrationSpec

can locate class files vs hardcoding a path.

Squashed commit of sg-split-jvm-classes branch for REVIEW-6502

    • -3
    • +3
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 119 more files in changeset.
Remove the AntScalaCompiler.

    • -21
    • +1
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 17 more files in changeset.
Fixed test expectations for deprecation warnings.

    • -6
    • +7
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 2 more files in changeset.
Deprecate the useAnt option in the ScalaCompileOptions.

+review REVIEW-5829

- Disable deprecation warnings in JreJavaHomeScalaIntegrationTest

- Remove many uses of useAnt = false

    • -4
    • +6
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 12 more files in changeset.
Changing Scala samples integration tests to always use Zinc compiler

+review REVIEW-5802

    • -1
    • +1
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 10 more files in changeset.
Avoid loading Scala compiler in process when testing with the daemon to conserve permgen.

+review REVIEW-5106

    • -5
    • +8
    ./JreJavaHomeScalaIntegrationTest.groovy
Avoid loading Scala compiler in process when testing with the daemon to conserve permgen.

+review REVIEW-5106

    • -5
    • +8
    ./JreJavaHomeScalaIntegrationTest.groovy
introduce ScalaCoverage test fixture; in daemon mode only run against one target version

+review REVIEW-5106

    • -4
    • +4
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 8 more files in changeset.
introduce ForkScalaCompileInDaemonModeFixture for forking ScalaCompile tasks when running integration tests in Scala

- applied on most scala related integration tests. not touched tests explicitly testing different scala compile options (e.g. ant, zinc, etc.)

+review REVIEW-5106

    • -0
    • +4
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 7 more files in changeset.
Changed AntScalaCompiler to handle java 8 as a target.

    • -3
    • +2
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 3 more files in changeset.
Merge branch 'release'

    • -1
    • +0
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 5 more files in changeset.
Removed some java 5 and java 6 test preconditions.

    • -1
    • +0
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 13 more files in changeset.
realigned scala integration tests with regard to which combinations of scala and jdk versions are tested

- focus on testing scala 2.10/2.11 with jdk6+, keep some compiler tests for scala 2.8/2.9

- moved and renamed lots of test files

    • -3
    • +4
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 42 more files in changeset.
updated preconditions and target scala versions for scala integration tests

    • -0
    • +1
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 10 more files in changeset.
updated preconditions and target scala versions for scala integration tests

    • -0
    • +1
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 9 more files in changeset.
Reworked the TestPreconditions for selecting a Java version.

    • -1
    • +1
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 8 more files in changeset.
Don't run this for java 5.

    • -0
    • +1
    ./JreJavaHomeScalaIntegrationTest.groovy
Fixed forking ant-task java compilation (eg when doing scala joint compilation) when running from a stand-alone jre installation on windows.

    • -3
    • +8
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 4 more files in changeset.
Don't try and set GRADLE_OPTS in these tests.

    • -2
    • +1
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 2 more files in changeset.
update Scala samples and tests to infer Scala compiler Jar and use latest Scala version

    • -6
    • +2
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 9 more files in changeset.
updated samples and tests to use latest released scala version

    • -6
    • +6
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 8 more files in changeset.
AvailableJavaHomes.getBestJreAlternative() should return the JRE for the current JVM, not a different JVM. Pending a fix for windows.

    • -2
    • +2
    ./JreJavaHomeScalaIntegrationTest.groovy
  1. … 3 more files in changeset.