Skip to content

Commit

Permalink
assert kotlin sources compile to java 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
CJCrafter committed Mar 29, 2023
1 parent 9477468 commit d995e01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ Feel free to use, modify, and distribute this code as needed.
For Kotlin DSL (`build.gradle.kts`), add this to your dependencies block:
```kotlin
dependencies {
implementation("com.cjcrafter:openai:1.2.4")
implementation("com.cjcrafter:openai:1.2.5")
}
```
For Maven projects, add this to your `pom.xml` file in the `<dependencies>` block:
```xml
<dependency>
<groupId>com.cjcrafter</groupId>
<artifactId>openai</artifactId>
<version>1.2.4</version>
<version>1.2.5</version>
</dependency>
```
See the [maven repository](https://central.sonatype.com/artifact/com.cjcrafter/openai/1.2.4) for gradle/ant/etc.
See the [maven repository](https://central.sonatype.com/artifact/com.cjcrafter/openai/1.2.5) for gradle/ant/etc.


# Working Example
Expand Down
15 changes: 4 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import com.github.breadmoirai.githubreleaseplugin.GithubReleaseTask

group = "com.cjcrafter"
version = "1.2.4"
version = "1.2.5"

plugins {
`java-library`
Expand All @@ -25,16 +25,9 @@ dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
}

tasks {
compileJava {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
options.release.set(8)
}
javadoc {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
}
processResources {
filteringCharset = Charsets.UTF_8.name() // We want UTF-8 for everything
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}

Expand Down

0 comments on commit d995e01

Please sign in to comment.