octokit / source-generator

6 stars 3 forks source link

Add a Kiota generated Java SDK #50

Open andreaTP opened 5 months ago

andreaTP commented 5 months ago

Hi @kfcampbell and @nickfloyd ๐Ÿ‘‹ ,

after the work we have done in Kiota on Java it would be great to start distributing a Java SDK ๐Ÿ˜„ Here I started to spearhead the effort, but it will require some help on your side to be finalized, e.g. creating the java-sdk repository.

The generated code can be compiled using Maven with a minimal pom.xml like:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.github.api</groupId>
    <artifactId>github-java-sdk</artifactId>
    <version>0.0.1</version>
    <properties>
        <kiota.libs.version>0.12.1</kiota.libs.version>
        <jakarta.annotation.version>2.1.1</jakarta.annotation.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>com.microsoft.kiota</groupId>
            <artifactId>microsoft-kiota-abstractions</artifactId>
            <version>${kiota.libs.version}</version>
        </dependency>
        <dependency>
            <groupId>jakarta.annotation</groupId>
            <artifactId>jakarta.annotation-api</artifactId>
            <version>${jakarta.annotation.version}</version>
        </dependency>
    </dependencies>
</project>

Happy to answer any questions and assist in the process!

andreaTP commented 5 months ago

cc. @baywet