Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JVM] pom with minimal oss requirements #275

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions jvm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ load("@io_bazel_rules_kotlin//kotlin:jvm.bzl", "kt_jvm_library")
load("@io_bazel_rules_kotlin//kotlin:lint.bzl", "ktlint_config")
load("//jvm/dependencies:versions.bzl", "versions")

exports_files([
"pom.tpl",
])

kt_compiler_plugin(
name = "serialization_plugin",
compile_phase = True,
Expand Down
3 changes: 3 additions & 0 deletions jvm/build.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def kt_player_module(
version = VERSION,
deploy_env = deploy_env,
excluded_workspaces = excluded_workspaces,
pom_template = "//jvm:pom.tpl",
module_name = module_name,
main_opts = "//jvm:main_options",
main_srcs = main_srcs,
Expand All @@ -79,10 +80,12 @@ def distribution(
name,
maven_coordinates,
lib_name = None,
pom_template = "//jvm:pom.tpl",
**kwargs):
_distribution(
name = name,
maven_coordinates = maven_coordinates,
lib_name = lib_name,
pom_template = pom_template,
**kwargs
)
42 changes: 42 additions & 0 deletions jvm/pom.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>

<name>Player - {artifactId}</name>
<description>A cross-platform semantic rendering engine</description>
<url>https://player-ui.github.io</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<id>brocollie08</id>
<name>Tony Lin</name>
<email>[email protected]</email>
</developer>
<developer>
<id>sugarmanz</id>
<name>Jeremiah Zucker</name>
<email>[email protected]</email>
</developer>
</developers>
<scm>
<connection>https://github.com/player-ui/player-ui.git</connection>
<developerConnection>https://github.com/player-ui/player-ui.git</developerConnection>
<tag>v{version}</tag>
<url>https://github.com/player-ui/player-ui.git</url>
</scm>

<groupId>{groupId}</groupId>
<artifactId>{artifactId}</artifactId>
<version>{version}</version>
<packaging>{type}</packaging>

<dependencies>
{dependencies}
</dependencies>
</project>