@@ -148,6 +148,12 @@ jobs:
148148 > "$fixture/build.gradle"
149149 printf "%s\n" "rootProject.name = 'installer-smoke'" > "$fixture/settings.gradle"
150150 printf '%s\n' 'server:' ' port: 9080' > "$fixture/src/main/resources/application.yml"
151+ printf '%s\n' \
152+ 'package example;' \
153+ 'import org.springframework.boot.autoconfigure.SpringBootApplication;' \
154+ '@SpringBootApplication' \
155+ 'public class InstallerSmokeApplication {}' \
156+ > "$fixture/src/main/java/example/InstallerSmokeApplication.java"
151157 "$CONTEXA_INSTALL_DIR/contexa" init --yes --dir "$fixture"
152158 "$CONTEXA_INSTALL_DIR/contexa" reset --yes --dir "$fixture"
153159 test ! -f "$fixture/contexa/manifest.json"
@@ -193,6 +199,12 @@ jobs:
193199 ) -join "`n") + "`n", $utf8)
194200 [IO.File]::WriteAllText((Join-Path $fixture 'settings.gradle'), "rootProject.name = 'installer-smoke'`n", $utf8)
195201 [IO.File]::WriteAllText((Join-Path $fixture 'src\main\resources\application.yml'), "server:`n port: 9080`n", $utf8)
202+ [IO.File]::WriteAllText((Join-Path $fixture 'src\main\java\example\InstallerSmokeApplication.java'), (@(
203+ 'package example;',
204+ 'import org.springframework.boot.autoconfigure.SpringBootApplication;',
205+ '@SpringBootApplication',
206+ 'public class InstallerSmokeApplication {}'
207+ ) -join "`n") + "`n", $utf8)
196208 & $binary init --yes --dir $fixture
197209 & $binary reset --yes --dir $fixture
198210 if (Test-Path -LiteralPath (Join-Path $fixture 'contexa\manifest.json')) { throw 'reset left manifest behind' }
0 commit comments