Skip to content

Commit

Permalink
Merge pull request #64 from snyk/feat/test-java-9
Browse files Browse the repository at this point in the history
Feat/test java 9
  • Loading branch information
lili2311 authored Apr 30, 2019
2 parents 0c29667 + e4b99cd commit 63e8a8a
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,20 @@ notifications:
language: node_js
jdk:
- openjdk8
- oraclejdk9
node_js:
- "10"
- "8"
- "6"
env:
- GRADLE_VERSION=3.5.1 JAVA_VERSION=openjdk8
# java 9 and gradle 3 not supported

- GRADLE_VERSION=4.10.3 JAVA_VERSION=openjdk8
- GRADLE_VERSION=4.10.3 JAVA_VERSION=oraclejdk9

- GRADLE_VERSION=5.3.1 JAVA_VERSION=openjdk8
- GRADLE_VERSION=5.3.1 JAVA_VERSION=oraclejdk9

cache:
directories:
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ 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"'
DEFAULT_JVM_OPTS=""

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m"
set DEFAULT_JVM_OPTS=

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
Expand Down
6 changes: 3 additions & 3 deletions test/system/multi-module.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ test('multi-project: only sub-project has deps, none returned for main', async (
t.notOk(result.package.dependencies);
});

test('multi-project: using gradle 3.0.0 via wrapper', async (t) => {
test('multi-project: using gradle via wrapper', async (t) => {
const result = await inspect('.',
path.join(fixtureDir('multi-project-gradle-3'), 'build.gradle'));
path.join(fixtureDir('multi-project-gradle-wrapper'), 'build.gradle'));
t.match(result.package.name, '.',
'returned project name is not sub-project');
t.deepEqual(result.plugin.meta!.allDepRootNames, ['root-proj', 'subproj']);
t.deepEqual(result.plugin.meta!.allDepRootNames, ['root-proj', 'subproj']);
t.notOk(result.package.dependencies);
});

Expand Down

0 comments on commit 63e8a8a

Please sign in to comment.