hyperledger-web3j / web3j-cli

Command-line interface for web3j
https://github.com/web3j/web3j-cli
Other
58 stars 30 forks source link

Build fails on master #43

Closed cmcewen closed 4 years ago

cmcewen commented 4 years ago

Running on OS X

➜  web3j-cli git:(master) java -version
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)

➜  web3j-cli git:(master) ./gradlew build

> Task :compileJava
/Users/cmcewen/celo/web3j-cli/src/main/java/org/web3j/console/project/ProjectCreator.java:59: warning: [deprecation] <R>run(R,String...) in CommandLine has been deprecated
            CommandLine.run(new JavaProjectCreatorCLIRunner(), args);
                       ^
  where R is a type-variable:
    R extends Runnable declared in method <R>run(R,String...)
/Users/cmcewen/celo/web3j-cli/src/main/java/org/web3j/console/project/ProjectCreator.java:62: warning: [deprecation] <R>run(R,String...) in CommandLine has been deprecated
            CommandLine.run(new KotlinProjectCreatorCLIRunner(), args);
                       ^
  where R is a type-variable:
    R extends Runnable declared in method <R>run(R,String...)
/Users/cmcewen/celo/web3j-cli/src/main/java/org/web3j/console/project/ProjectImporter.java:39: warning: [deprecation] <R>run(R,String...) in CommandLine has been deprecated
            CommandLine.run(new JavaProjectImporterCLIRunner(), args);
                       ^
  where R is a type-variable:
    R extends Runnable declared in method <R>run(R,String...)
/Users/cmcewen/celo/web3j-cli/src/main/java/org/web3j/console/project/ProjectImporter.java:42: warning: [deprecation] <R>run(R,String...) in CommandLine has been deprecated
            CommandLine.run(new KotlinProjectImporterCLIRunner(), args);
                       ^
  where R is a type-variable:
    R extends Runnable declared in method <R>run(R,String...)
/Users/cmcewen/celo/web3j-cli/src/main/java/org/web3j/console/project/UnitTestCreator.java:46: warning: [deprecation] <R>run(R,String...) in CommandLine has been deprecated
            CommandLine.run(new JavaTestCLIRunner(), args);
                       ^
  where R is a type-variable:
    R extends Runnable declared in method <R>run(R,String...)
/Users/cmcewen/celo/web3j-cli/src/main/java/org/web3j/console/project/UnitTestCreator.java:49: warning: [deprecation] <R>run(R,String...) in CommandLine has been deprecated
            CommandLine.run(new KotlinTestCLIRunner(), args);
                       ^
  where R is a type-variable:
    R extends Runnable declared in method <R>run(R,String...)
6 warnings

> Task :test

org.web3j.console.WalletUpdaterTest > testWalletUpdate(Path) PASSED

org.web3j.console.WalletCreatorTest > testWalletCreation(Path) PASSED

org.web3j.console.KeyImporterTest > testLoadPrivateKeyFromFile(Path) PASSED

org.web3j.console.KeyImporterTest > testSpecifyPrivateKey(Path) PASSED

org.web3j.console.project.InteractiveOptionsTest > runInteractiveModeTest() PASSED

org.web3j.console.project.java.JavaProjectStructureTest > getProjectName() PASSED

org.web3j.console.project.java.JavaProjectStructureTest > getProjectRootTest() PASSED

org.web3j.console.project.java.JavaProjectStructureTest > getRootUserDirSubfolder() PASSED

org.web3j.console.project.java.JavaProjectStructureTest > getRootUserDir() PASSED

org.web3j.console.project.java.JavaProjectStructureTest > getWrapperPathTest() PASSED

org.web3j.console.project.java.JavaProjectStructureTest > getTestPathTest() PASSED

org.web3j.console.project.java.JavaProjectStructureTest > getPackageNameTest() PASSED

org.web3j.console.project.java.JavaProjectStructureTest > getSolidityPathTest() PASSED

org.web3j.console.project.java.JavaProjectStructureTest > getMainPathTest() PASSED

org.web3j.console.project.java.JavaProjectStructureTest > getRootTest() PASSED

org.web3j.console.project.java.JavaProjectStructureTest > getRootSpecialTildeCase() PASSED
[ / ] Creating Test5EXECould not build project.

org.web3j.console.project.java.JavaProjectImporterTest > testWithPicoCliWhenArgumentsAreCorrect() FAILED
    org.opentest4j.AssertionFailedError at JavaProjectImporterTest.java:76

org.web3j.console.project.java.JavaProjectImporterTest > verifyWhenInteractiveThatTestsHaveBeenGenerated() FAILED
    org.opentest4j.AssertionFailedError at JavaProjectImporterTest.java:95

org.web3j.console.project.java.JavaProjectImporterTest > testWhenCorrectArgsArePassedProjectStructureCreated() PASSED

org.web3j.console.project.java.JavaProjectImporterTest > testWithPicoCliWhenArgumentsAreEmpty() PASSED

org.web3j.console.project.java.JavaTestCreatorTest > testThatCorrectArgumentsArePassed() PASSED
[ / ] Creating TestingECUCould not build project.

org.web3j.console.project.java.JavaTestCreatorTest > verifyThatTestsAreGenerated() FAILED
    org.opentest4j.AssertionFailedError at JavaTestCreatorTest.java:77

org.web3j.console.project.java.JavaProjectImporterCLIRunnerTest > testWhenDuplicateArgsArePassed() PASSED

org.web3j.console.project.java.JavaProjectImporterCLIRunnerTest > testWhenNonDefinedArgsArePassed() PASSED

org.web3j.console.project.java.JavaProjectImporterCLIRunnerTest > testWhenNoArgsArePassed() PASSED

org.web3j.console.project.java.TemplateProviderTest > loadMainJavaClassTest() PASSED

org.web3j.console.project.java.TemplateProviderTest > loadGradlewScriptTest() PASSED

org.web3j.console.project.java.TemplateProviderTest > loadGradleSettingsTest() PASSED

org.web3j.console.project.java.TemplateProviderTest > loadGradleBuildTest() PASSED

org.web3j.console.project.java.TemplateProviderTest > loadGradlewBatScriptTest() PASSED

org.web3j.console.project.java.TemplateProviderTest > loadGradleWrapperTest() PASSED

org.web3j.console.project.java.JavaProjectCreatorCLIRunnerTest > testWhenDuplicateArgsArePassed() PASSED

org.web3j.console.project.java.JavaProjectCreatorCLIRunnerTest > testWhenNonDefinedArgsArePassed() PASSED

org.web3j.console.project.java.JavaProjectCreatorCLIRunnerTest > testWhenNoArgsArePassed() PASSED
[ / ] Creating TestCould not build project.

org.web3j.console.project.java.JavaProjectCreatorTest > testWithPicoCliWhenArgumentsAreCorrect() FAILED
    org.opentest4j.AssertionFailedError at JavaProjectCreatorTest.java:75

org.web3j.console.project.java.JavaProjectCreatorTest > testWhenCorrectArgsArePassedProjectStructureCreated() PASSED

org.web3j.console.project.java.JavaProjectCreatorTest > testWithPicoCliWhenArgumentsAreEmpty() PASSED

org.web3j.console.project.java.JavaProjectCreatorTest > testWhenInteractiveAndArgumentsAreCorrect() PASSED

org.web3j.console.project.java.JavaProjectCreatorTest > verifyThatTestsAreGenerated() FAILED
    org.opentest4j.AssertionFailedError at JavaProjectCreatorTest.java:95

org.web3j.console.project.java.JavaProjectTest > fileCreationTest() SKIPPED

40 tests completed, 5 failed, 1 skipped

> Task :test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> Process 'Gradle Test Executor 1' finished with non-zero exit value 1
  This problem might be caused by incorrect test process configuration.
  Please refer to the test execution section in the User Manual at https://docs.gradle.org/5.6.3/userguide/java_testing.html#sec:test_execution

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 36s
18 actionable tasks: 16 executed, 2 up-to-date```
cfelde commented 4 years ago

Seems related to mac os security model, wip pr: https://github.com/web3j/web3j-cli/pull/44

cfelde commented 4 years ago

PR merged to master