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
12 changes: 10 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# separate terms of service, privacy policy, and support
# documentation.

name: Java CI with Maven
name: Kotlin CI with Maven

on:
push:
Expand Down Expand Up @@ -36,4 +36,12 @@
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/*-reports/TEST-*.xml'
annotate_only: true
annotate_only: true

- name: Run codacy-coverage-reporter
uses: codacy/[email protected]

Check warning on line 42 in .github/workflows/maven.yml

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

.github/workflows/maven.yml#L42

An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: "reports/target/site/kover/report.xml"
# or a comma-separated list for multiple reports
# coverage-reports: <PATH_TO_REPORT>, <PATH_TO_REPORT>
3 changes: 2 additions & 1 deletion .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
-Dkotlin.compiler.incremental=true
-Dkotlin.compiler.incremental=true
-T12C
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# langchain4j-kotlin
[![Java CI with Maven](https://github.com/kpavlov/langchain4j-kotlin/actions/workflows/maven.yml/badge.svg?branch=main)](https://github.com/kpavlov/langchain4j-kotlin/actions/workflows/maven.yml)
[![Kotlin CI with Maven](https://github.com/kpavlov/langchain4j-kotlin/actions/workflows/maven.yml/badge.svg?branch=main)](https://github.com/kpavlov/langchain4j-kotlin/actions/workflows/maven.yml)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/644f664ad05a4a009b299bc24c8be4b8)](https://app.codacy.com/gh/kpavlov/langchain4j-kotlin/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![Codacy Coverage](https://app.codacy.com/project/badge/Coverage/644f664ad05a4a009b299bc24c8be4b8)](https://app.codacy.com/gh/kpavlov/langchain4j-kotlin/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)

Kotlin enhancements for [LangChain4j](https://github.com/langchain4j/langchain4j).

Expand Down
25 changes: 25 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<packaging>pom</packaging>
<modules>
<module>langchain4j-core-kotlin</module>
<module>reports</module>
</modules>

<properties>
Expand Down Expand Up @@ -150,6 +151,11 @@
<artifactId>detekt-maven-plugin</artifactId>
<version>1.23.7</version>
</plugin>
<plugin>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kover-maven-plugin</artifactId>
<version>0.9.0-RC</version>
</plugin>
</plugins>
</pluginManagement>

Expand Down Expand Up @@ -190,6 +196,25 @@
</execution>
</executions>
</plugin>
<plugin>
<!-- https://kotlin.github.io/kotlinx-kover/maven-plugin/#goals -->
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kover-maven-plugin</artifactId>
<executions>
<execution>
<id>instr</id>
<goals>
<goal>instrumentation</goal>
</goals>
</execution>
<execution>
<id>kover-log</id>
<goals>
<goal>log</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.ozsie</groupId>
<artifactId>detekt-maven-plugin</artifactId>
Expand Down
63 changes: 63 additions & 0 deletions reports/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?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>
<parent>
<groupId>me.kpavlov.langchain4j.kotlin</groupId>
<artifactId>langchain4j-kotlin-aggregator</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>reports</artifactId>
<packaging>pom</packaging>

<dependencies>
<dependency>
<groupId>me.kpavlov.langchain4j.kotlin</groupId>
<artifactId>langchain4j-core-kotlin</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kover-maven-plugin</artifactId>
<executions>
<execution>
<id>kover-xml</id>
<goals>
<goal>report-xml</goal>
</goals>
</execution>
<execution>
<id>kover-verify</id>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>

<configuration>
<aggregate>true</aggregate>
<logGroupBy>CLASS</logGroupBy>
<warningInsteadOfFailure>true</warningInsteadOfFailure>
<rules>
<rule>
<groupBy>CLASS</groupBy>
<bounds>
<bound>
<aggregationForGroup>COVERED_COUNT</aggregationForGroup>
<minValue>100</minValue>
</bound>
</bounds>
</rule>
</rules>
</configuration>
</plugin>
</plugins>
</build>

</project>
Loading