package Ġorg . tools . atlassian . plugin čĊč Ċ import Ġorg . tools . atlassian . plugin . config . Application Property č Ċ import Ġorg . tools . atlassian . plugin . func . print Process č Ċ import Ġorg . tools . atlassian . plugin . func . readString With Question č Ċ import Ġorg . tools . atlassian . plugin . transforms . Abstract Plugin Transform č Ċ import Ġorg . tools . atlassian . plugin . transforms . At lassian Plugin Xml Transformation č Ċ import Ġorg . tools . atlassian . plugin . transforms . P om Xml Transformation č Ċ import Ġjava . nio . file . Paths čĊč Ċ fun Ġmain () Ġ{ čĊĠĠĠ Ġval Ġdefault GroupId Ġ= ĠApplication Property . getString (" plugin . groupId ", Ġ" com . atlassian . plugin . test ") čĊĠĠĠ Ġval Ġdefault Artifact Id Ġ= ĠApplication Property . getString (" plugin . artifactId ", Ġ" jira - plugin - test ") čĊĠĠĠ Ġval Ġdefault Version Ġ= ĠApplication Property . getString (" plugin . version ", Ġ" 1 . 0 . 0 - SNAPSHOT ") čĊĠĠĠ Ġval Ġdefault Package Path Ġ= ĠApplication Property . getString (" plugin . package Path ", Ġ" com . atlassian . plugin . test ") čĊčĊĠĠĠ Ġval ĠgroupId : ĠString Ġ= Ġread String With Question (" J ira Ġplugin ĠgroupId Ġ($ default GroupId )", Ġdefault GroupId ) čĊĠĠĠ Ġval Ġartifact Id : ĠString Ġ= Ġread String With Question (" J ira Ġplugin Ġartifact Id Ġ($ default Artifact Id )", Ġdefault Artifact Id ) čĊĠĠĠ Ġval Ġversion : ĠString Ġ= Ġread String With Question (" J ira Ġplugin Ġversion Ġ($ default Version )", Ġdefault Version ) čĊĠĠĠ Ġval Ġpackage Path : ĠString Ġ= Ġread String With Question (" J ira Ġplugin Ġpackage Ġ($ default Package Path )", Ġdefault Package Path ) čĊčĊĠĠĠ Ġval Ġplugin Data Ġ= ĠPlugin Data ( čĊĠĠĠĠĠĠĠĠĠĠĠ ĠgroupId Ġ= ĠgroupId , čĊĠĠĠĠĠĠĠĠĠĠĠ Ġartifact Id Ġ= Ġartifact Id , čĊĠĠĠĠĠĠĠĠĠĠĠ Ġversion Ġ= Ġversion , čĊĠĠĠĠĠĠĠĠĠĠĠ Ġpackage Path Ġ= Ġpackage Path čĊĠĠĠ Ġ) čĊčĊĠĠĠ Ġval Ġat lassian Create J ira Plugin Cmd Ġ= Ġ" cmd Ġ/ c Ġatlas - create - jira - plugin Ġ-- group - id Ġ$ groupId Ġ-- artifact - id Ġ$ artifactId Ġ-- version Ġ$ version Ġ-- package Ġ$ package Path Ġ-- non - interactive " čĊĠĠĠ Ġprint Process (" Running Ġprocess : Ġ$ atlassian Create J ira Plugin Cmd ") čĊĠĠĠ Ġprint Process (" Waiting Ġfor Ġprocess Ġresult ") čĊĠĠĠ Ġval Ġprocess : ĠProcess Ġ= ĠRuntime . get Runtime (). exec ( atlassian Create J ira Plugin Cmd ) čĊĠĠĠ Ġprocess . inputStream . reader ( Charsets . UTF _ 8 ). use Ġ{ čĊĠĠĠĠĠĠĠ Ġprintln ( it . read Text ()) čĊĠĠĠ Ġ} čĊĠĠĠ Ġprint Process (" atlas - create - jira - plugin Ġprocess Ġhas Ġbeen Ġfinished . ĠBase Ġj ira Ġaddon Ġskeleton Ġhas Ġbeen Ġcreated .") čĊčĊĠĠĠ Ġval Ġcurrent Path Ġ= ĠPaths . get (". "). resolve ( artifactId ) čĊčĊĠĠĠ ĠlistOf ( čĊĠĠĠĠĠĠĠĠĠĠĠ ĠP om Xml Transformation , čĊĠĠĠĠĠĠĠĠĠĠĠ ĠAt lassian Plugin Xml Transformation čĊĠĠĠ Ġ). forEach Ġ{ čĊĠĠĠĠĠĠĠ Ġit . execute ( current Path , Ġplugin Data ) čĊĠĠĠ Ġ} čĊč Ċ }