Skip to content

Commit d995e01

Browse files
committed
assert kotlin sources compile to java 1.8
1 parent 9477468 commit d995e01

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ Feel free to use, modify, and distribute this code as needed.
88
For Kotlin DSL (`build.gradle.kts`), add this to your dependencies block:
99
```kotlin
1010
dependencies {
11-
implementation("com.cjcrafter:openai:1.2.4")
11+
implementation("com.cjcrafter:openai:1.2.5")
1212
}
1313
```
1414
For Maven projects, add this to your `pom.xml` file in the `<dependencies>` block:
1515
```xml
1616
<dependency>
1717
<groupId>com.cjcrafter</groupId>
1818
<artifactId>openai</artifactId>
19-
<version>1.2.4</version>
19+
<version>1.2.5</version>
2020
</dependency>
2121
```
22-
See the [maven repository](https://central.sonatype.com/artifact/com.cjcrafter/openai/1.2.4) for gradle/ant/etc.
22+
See the [maven repository](https://central.sonatype.com/artifact/com.cjcrafter/openai/1.2.5) for gradle/ant/etc.
2323

2424

2525
# Working Example

build.gradle.kts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import com.github.breadmoirai.githubreleaseplugin.GithubReleaseTask
22

33
group = "com.cjcrafter"
4-
version = "1.2.4"
4+
version = "1.2.5"
55

66
plugins {
77
`java-library`
@@ -25,16 +25,9 @@ dependencies {
2525
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
2626
}
2727

28-
tasks {
29-
compileJava {
30-
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
31-
options.release.set(8)
32-
}
33-
javadoc {
34-
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
35-
}
36-
processResources {
37-
filteringCharset = Charsets.UTF_8.name() // We want UTF-8 for everything
28+
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
29+
kotlinOptions {
30+
jvmTarget = "1.8"
3831
}
3932
}
4033

0 commit comments

Comments
 (0)