import { assert } from "tsafe/assert"; import { Reflect } from "tsafe/Reflect"; import type { BuildOptions } from "./buildOptions"; type BuildOptionsLike = { groupId: string; artifactId: string; themeVersion: string; keycloakifyBuildDirPath: string; }; { const buildOptions = Reflect(); assert(); } export function generatePom(params: { buildOptions: BuildOptionsLike }) { const { buildOptions } = params; const { pomFileCode } = (function generatePomFileCode(): { pomFileCode: string; } { const pomFileCode = [ ``, ``, ` 4.0.0`, ` ${buildOptions.groupId}`, ` ${buildOptions.artifactId}`, ` ${buildOptions.themeVersion}`, ` ${buildOptions.artifactId}`, ` `, ` jar`, ` `, ` UTF-8`, ` `, ` `, ` `, ` `, ` org.apache.maven.plugins`, ` maven-shade-plugin`, ` 3.5.1`, ` `, ` `, ` package`, ` `, ` shade`, ` `, ` `, ` `, ` `, ` `, ` `, ` `, ` `, ` io.phasetwo.keycloak`, ` keycloak-account-v1`, ` 0.1`, ` `, ` `, `` ].join("\n"); return { pomFileCode }; })(); return { pomFileCode }; }