Skip to content

Commit

Permalink
build maven package for java
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteinich committed Oct 1, 2021
1 parent 57dfa18 commit 77658d0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,16 @@ npx projen
yarn install
```

This will generate an entire repository ready to be published, including Github Workflows for publishing NPM and Pypi packages. The only thing which is needed to be set manually are the tokens for these registries:
This will generate an entire repository ready to be published, including Github Workflows for publishing NPM, Pypi and maven packages. The only thing which is needed to be set manually are the tokens for these registries:

- `NPM_TOKEN`
- `TWINE_PASSWORD`
- `TWINE_USERNAME`
- `MAVEN_GPG_PRIVATE_KEY`
- `MAVEN_GPG_PRIVATE_KEY_PASSPHRASE`
- `MAVEN_PASSWORD`
- `MAVEN_USERNAME`
- `MAVEN_STAGING_PROFILE_ID`

### Updating an existing Provider

Expand Down
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,14 @@ export class CdktfProviderProject extends JsiiProject {
dotNetNamespace: nugetName,
packageId: nugetName,
},
java: {
javaPackage: `${namespace}.cdktf.provider.${providerName}`,
mavenGroupId: `${namespace}`,
mavenArtifactId: `cdktf-provider-${providerName}`,
},
peerDependencyOptions: {
pinnedDevDependency: false,
},
}
});

new CdktfConfig(this, { terraformProvider, providerName, providerVersion, cdktfVersion, constructsVersion });
Expand Down

0 comments on commit 77658d0

Please sign in to comment.