cbmarcum / skeletal

A simple project creation tool that uses packaged templates
Apache License 2.0
17 stars 3 forks source link

update simple java spock gradle template with updates from new cli groovy template #23

Closed cbmarcum closed 1 year ago

cbmarcum commented 1 year ago

to be consistent between templates: settings.gradle

/*
 * This file was generated by the Skeletal project creation tool.
 * https://github.com/cbmarcum/skeletal
 */

lazybones.groovy fix

testSources.eachFile { File file ->
    renameFile(file, testSourcesPath.absolutePath + '/' + file.name)
}

renameFile(new File(mainSourcesPath, 'App.java'), mainSourcesPath.absolutePath + '/' + props.project_class_name + ".java")
renameFile(new File(testSourcesPath, 'AppSpec.groovy'), testSourcesPath.absolutePath + '/' + props.project_class_name + "Spec" + ".groovy")

Review README.md for more changes.