Skip to content

Commit

Permalink
build: turn off junit for sample java pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
agdimech committed Mar 5, 2022
1 parent d59497d commit bf8a661
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ const configureSamplePy = (project: PythonProject): PythonProject => {
}

const configureSampleJava = (project: JavaProject): JavaProject => {
project.testTask.exec("mvn test");

project.deps.postSynthesize = () => {
const parser = new XMLParser({
ignoreDeclaration: true
Expand Down Expand Up @@ -308,8 +310,13 @@ const samplePdkPipelineJava = configureSampleJava(new JavaProject({
name: "sample-pdk-pipeline-java",
version: "0.0.0",
sample: false,
junit: false,
deps: [
"software.amazon.awscdk/[email protected]",
],
testDeps: [
"org.junit.jupiter/[email protected]",
"org.junit.jupiter/[email protected]"
]
}));

Expand Down
2 changes: 1 addition & 1 deletion samples/sample-nx-monorepo/src/nx-monorepo-sample-java.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ new pdk_projen.PDKPipelineJavaProject({
outdir: 'packages/infra',
name: 'infra',
version: '0.0.0',
deps: ["software.aws.awsprototypingsdk/[email protected]"],
deps: ['software.aws.awsprototypingsdk/[email protected]'],
});

monorepo.synth();

0 comments on commit bf8a661

Please sign in to comment.