Skip to content
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
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Changelog

---

## [0.15.4] - 2024-11-15

### Added

- Only source code pass to the poly function with a separate `sourceSode` field

### Changed

-

### Fixed

-

---
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Java Client Library

* Latest released version 0.15.3
* Latest released version 0.15.4
* Latest snapshot version 0.15.4-SNAPSHOT

## Introduction
Expand Down Expand Up @@ -55,7 +55,7 @@ Nice to have some customers looking around here! So, you'll need to run the foll
2. **Update the project.** Add the following to your project's `pom.xml`:
```xml
<properties>
<poly.version>0.15.3</poly.version>
<poly.version>0.15.4</poly.version>
</properties>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.polyapi</groupId>
<artifactId>parent-pom</artifactId>
<version>0.15.3-SNAPSHOT</version>
<version>0.15.4-SNAPSHOT</version>
<relativePath>../parent-pom</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.polyapi</groupId>
<artifactId>parent-pom</artifactId>
<version>0.15.3-SNAPSHOT</version>
<version>0.15.4-SNAPSHOT</version>
<relativePath>../parent-pom</relativePath>
</parent>
<artifactId>library</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion parent-pom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.polyapi</groupId>
<artifactId>parent-pom</artifactId>
<version>0.15.3-SNAPSHOT</version>
<version>0.15.4-SNAPSHOT</version>
<packaging>pom</packaging>
<name>PolyAPI Java parent POM</name>
<url>https://polyapi.io</url>
Expand Down
2 changes: 1 addition & 1 deletion polyapi-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.polyapi</groupId>
<artifactId>parent-pom</artifactId>
<version>0.15.3-SNAPSHOT</version>
<version>0.15.4-SNAPSHOT</version>
<relativePath>../parent-pom</relativePath>
</parent>
<artifactId>polyapi-maven-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class PolyFunction {
private String description;
private String context;
private String code;
private String sourceCode;
private String language = "java";
private String returnType;
private Visibility visibility;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public List<PolyFunction> deployFunctions(List<String> functionFilters, boolean
throw new PolyApiMavenPluginException(e); // FIXME: Throw the appropriate exception.
}
polyFunction.setCode(jsonParser.toJsonString(codeObject));
polyFunction.setSourceCode(codeObject.getCode());
polyFunction.setContext(Optional.ofNullable(annotation.context()).filter(not(String::isBlank)).orElseGet(declaringClass::getPackageName));
log.debug("Poly function context is '{}'", polyFunction.getContext());
log.debug("Processing parameters.");
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.polyapi</groupId>
<artifactId>polyapi-java</artifactId>
<version>0.15.3-SNAPSHOT</version>
<version>0.15.4-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>parent-pom</module>
Expand Down