mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Pass the class loader to archetypes.
This commit is contained in:
parent
7963e2fc99
commit
471410a9bc
5 changed files with 11 additions and 9 deletions
|
@ -58,7 +58,7 @@ class PomTest @Inject constructor() : KobaltTest() {
|
|||
args.buildFile = file.absolutePath
|
||||
args.archetypes = "java"
|
||||
|
||||
ProjectGenerator(Kobalt.INJECTOR.getInstance(PluginInfo::class.java)).run(args)
|
||||
ProjectGenerator(Kobalt.INJECTOR.getInstance(PluginInfo::class.java)).run(args, javaClass.classLoader)
|
||||
|
||||
var contents = file.readText()
|
||||
Assert.assertTrue(contents.contains("group = \"${pom.groupId}\""), "Should find the group defined")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue