Nuclio Java SDK


Лицензия

Лицензия

Категории

Категории

Java Языки программирования CLI Взаимодействие с пользователем
Группа

Группа

io.nuclio
Идентификатор

Идентификатор

nuclio-sdk-java
Последняя версия

Последняя версия

1.1.0
Дата

Дата

Тип

Тип

pom
Описание

Описание

Nuclio Java SDK
Nuclio Java SDK
Ссылка на сайт

Ссылка на сайт

https://github.com/nuclio/nuclio-sdk-java
Организация-разработчик

Организация-разработчик

io.nuclio
Система контроля версий

Система контроля версий

https://github.com/nuclio/nuclio-sdk-java

Скачать nuclio-sdk-java

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/io.nuclio/nuclio-sdk-java/ -->
<dependency>
    <groupId>io.nuclio</groupId>
    <artifactId>nuclio-sdk-java</artifactId>
    <version>1.1.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/io.nuclio/nuclio-sdk-java/
implementation 'io.nuclio:nuclio-sdk-java:1.1.0'
// https://jarcasting.com/artifacts/io.nuclio/nuclio-sdk-java/
implementation ("io.nuclio:nuclio-sdk-java:1.1.0")
'io.nuclio:nuclio-sdk-java:pom:1.1.0'
<dependency org="io.nuclio" name="nuclio-sdk-java" rev="1.1.0">
  <artifact name="nuclio-sdk-java" type="pom" />
</dependency>
@Grapes(
@Grab(group='io.nuclio', module='nuclio-sdk-java', version='1.1.0')
)
libraryDependencies += "io.nuclio" % "nuclio-sdk-java" % "1.1.0"
[io.nuclio/nuclio-sdk-java "1.1.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

nuclio Java SDK

Java SDK for nuclio.

This SDK is for building nuclio Java handlers.

Adding as a dependency

See https://search.maven.org/artifact/io.nuclio/nuclio-sdk-java/1.1.0/jar

Building a Handler

To implement a handler you need to write a class the implements io.nuclio.EventHandler.

nuctl build does the following logic, depends on the value of -p:

  • If it's a jar, use it
  • If it's a directory and there's handler.jar there, use it
  • If it's a directory with only single jar (including sub directories), use it
  • If there's a build.gradle file there - run nuclioJar task and use jar from build directory
  • If there's no build.gradle, generate one, build and use jar from build directory

Build will work also if the path passed is a single Java file.

You can specify dependencies using (inline in Java file or Jar) build configuration

// @nuclio.configure
//
// function.yaml:
//   spec:
//     build:
//       dependencies:
//         - group: com.google.code.gson"
//           name: gson"
//           version: 2.8.2"
//         - group: com.google.guava"
//           name: guava"
//           version: 23.6-jre"

The default image is using OpenJDK 9

If you have dependencies in other packages, create a fat/uber Jar with all the dependencies. We currently do not support maven/sbt/ant/... builds

Building the SDK

gradle jar

Please use Java 8 to build the SDK jar for release

io.nuclio

Версии библиотеки

Версия
1.1.0
1.0.0