@@ -53,15 +53,15 @@ export async function convertGradleToMaven(
5353 const output = await spawn ( bin , commandArgs , {
5454 cwd : target || '.'
5555 } )
56- spinner . success ( )
56+ spinner . stop ( )
5757 if ( verbose ) {
5858 console . group ( '[VERBOSE] gradle stdout:' )
5959 console . log ( output )
6060 console . groupEnd ( )
6161 }
6262
6363 if ( output . stderr ) {
64- spinner . error ( 'There were errors while running gradle' )
64+ spinner . errorAndStop ( 'There were errors while running gradle' )
6565 // (In verbose mode, stderr was printed above, no need to repeat it)
6666 if ( ! verbose ) {
6767 console . group ( '[VERBOSE] stderr:' )
@@ -71,6 +71,9 @@ export async function convertGradleToMaven(
7171 process . exit ( 1 )
7272 }
7373
74+ spinner . start ( )
75+ spinner . successAndStop ( 'Executed gradle successfully' )
76+
7477 console . log ( 'Reported exports:' )
7578 output . stdout . replace (
7679 / ^ P O M f i l e c o p i e d t o : ( .* ) / gm,
@@ -82,7 +85,7 @@ export async function convertGradleToMaven(
8285
8386 // const loc = output.stdout?.match(/Wrote (.*?.pom)\n/)?.[1]?.trim()
8487 // if (!loc) {
85- // spinner.error (
88+ // spinner.errorAndStop (
8689 // 'There were no errors from sbt but could not find the location of resulting .pom file either'
8790 // )
8891 // process.exit(1)
@@ -104,11 +107,11 @@ export async function convertGradleToMaven(
104107 // }
105108 // // TODO: do we prefer fs-extra? renaming can be gnarly on windows and fs-extra's version is better
106109 // await renamep(loc, out)
107- // spinner.success ()
110+ // spinner.successAndStop ()
108111 // spinner.start().success(`OK. File should be available in \`${out}\``)
109112 // }
110113 } catch ( e ) {
111- spinner . error (
114+ spinner . errorAndStop (
112115 'There was an unexpected error while running this' +
113116 ( verbose ? '' : ' (use --verbose for details)' )
114117 )
0 commit comments