Uploaded image for project: 'PUBLIC - Liferay BLADE'
  1. PUBLIC - Liferay BLADE
  2. BLADE-594

Publish script needs to use -bin in the distributionUrl for the gradle wrapper

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: master
    • Component/s: blade-cli
    • Labels:

      Description

      Not sure why this is, but using the -all for the distributionUrl fails. 

       

      Here's the buildscan https://gradle.com/s/fbwhhc7q342b2

      stacktrace:

      java.lang.AssertionError: Encountered error: com.liferay.blade.cli.gradle.GradleExecutionException: Exception in thread "main" java.util.zip.ZipException: zip file is empty	
      		at java.util.zip.ZipFile.open(Native Method)	
      		at java.util.zip.ZipFile.<init>(ZipFile.java:230)	
      		at java.util.zip.ZipFile.<init>(ZipFile.java:160)	
      		at java.util.zip.ZipFile.<init>(ZipFile.java:174)	
      		at org.gradle.wrapper.Install.unzip(Install.java:219)	
      		at org.gradle.wrapper.Install.access$600(Install.java:27)	
      		at org.gradle.wrapper.Install$1.call(Install.java:75)	
      		at org.gradle.wrapper.Install$1.call(Install.java:48)	
      		at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)	
      		at org.gradle.wrapper.Install.createDist(Install.java:48)	
      		at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)	
      		at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:63)	
      		
      		at com.liferay.blade.cli.gradle.GradleExec.executeTask(GradleExec.java:78)	
      		at com.liferay.blade.cli.gradle.GradleExec.executeTask(GradleExec.java:45)	
      		at com.liferay.blade.cli.command.InitCommand.execute(InitCommand.java:266)	
      		at com.liferay.blade.cli.BladeCLI._runCommand(BladeCLI.java:1309)	
      		at com.liferay.blade.cli.BladeCLI.runCommand(BladeCLI.java:658)	
      		at com.liferay.blade.cli.BladeCLI.run(BladeCLI.java:498)	
      		at com.liferay.blade.cli.BladeTest.run(BladeTest.java:94)	
      		at com.liferay.blade.cli.TestUtil.runBlade(TestUtil.java:80)	
      		at com.liferay.blade.cli.TestUtil.runBlade(TestUtil.java:151)	
      		at com.liferay.blade.cli.TestUtil.runBlade(TestUtil.java:129)	
      		at com.liferay.blade.cli.TestUtil.runBlade(TestUtil.java:155)	
      		at com.liferay.blade.cli.command.ConvertServiceBuilderCommandTest.testConvertServiceBuilderWithoutRemove(ConvertServiceBuilderCommandTest.java:246)	
      		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	
      		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	
      		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	
      		at java.lang.reflect.Method.invoke(Method.java:498)	
      		at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)	
      		at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)	
      		at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)	
      		at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)	
      		at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)	
      		at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)	
      		at org.junit.rules.RunRules.evaluate(RunRules.java:20)	
      		at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)	
      		at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)	
      		at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)	
      		at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)	
      		at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)	
      		at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)	
      		at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)	
      		at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)	
      		at org.junit.runners.ParentRunner.run(ParentRunner.java:363)	
      		at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:110)	
      		at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)	
      		at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38)	
      		at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:62)	
      		at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)	
      		at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)	
      		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	
      		at java.lang.reflect.Method.invoke(Method.java:498)	
      		at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)	
      		at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)	
      		at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)	
      		at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)	
      		at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)	
      		at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:118)	
      		at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)	
      		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	
      		at java.lang.reflect.Method.invoke(Method.java:498)	
      		at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)	
      		at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)	
      		at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)	
      		at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)	
      		at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:412)	
      		at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)	
      		at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)	
      		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)	
      		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)	
      		at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)	
      		at java.lang.Thread.run(Thread.java:748)
       

        Attachments

          Activity

            People

            Assignee:
            lawrence.lee Lawrence Lee
            Reporter:
            lawrence.lee Lawrence Lee
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                master