Adding retro Java 17 compatibility

* Moving back to Java 17 compatibility. I'll change demo-remote a little later, because otherwise I have to break the project for some time.

* Prepares version 0.1.3
This commit is contained in:
julien Lengrand-Lambert
2025-10-25 23:43:04 +01:00
committed by GitHub
parent f829d56a43
commit d982bc94cb
6 changed files with 16 additions and 7 deletions

2
.idea/misc.xml generated
View File

@@ -4,7 +4,7 @@
<component name="FrameworkDetectionExcludesConfiguration"> <component name="FrameworkDetectionExcludesConfiguration">
<file type="web" url="file://$PROJECT_DIR$" /> <file type="web" url="file://$PROJECT_DIR$" />
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_24" project-jdk-name="temurin-21" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="temurin-21" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" /> <output url="file://$PROJECT_DIR$/out" />
</component> </component>
</project> </project>

View File

@@ -66,7 +66,8 @@ The parser extracts `meta[property^=og:]` tags and builds structured data models
## Development Notes ## Development Notes
- **JVM Toolchain**: Java 24 (see `jvmToolchain(24)` in build files) - **JVM Toolchain**: Java 17 (see `jvmToolchain(17)` in build files)
- **Minimum Java Version**: Java 17 (required by Ksoup dependency)
- **Testing**: CI matrix tests on Java 17 and 23 via GitHub Actions - **Testing**: CI matrix tests on Java 17 and 23 via GitHub Actions
- **Dependencies**: Core library uses Ksoup (v0.2.5) for HTML parsing and network requests - **Dependencies**: Core library uses Ksoup (v0.2.5) for HTML parsing and network requests
- **Maven Coordinates**: Group `fr.lengrand`, artifact `opengraphkt`, currently at `0.1.2-SNAPSHOT` - **Maven Coordinates**: Group `fr.lengrand`, artifact `opengraphkt`, currently at `0.1.2-SNAPSHOT`

View File

@@ -6,7 +6,7 @@ Thank you for your interest in contributing to OpenGraphKt! This document provid
### Prerequisites ### Prerequisites
- Java 24 (JVM toolchain) - Java 17 or later (JVM toolchain configured for Java 17)
- Gradle 8.14.3+ (wrapper included) - Gradle 8.14.3+ (wrapper included)
- Git - Git

View File

@@ -24,7 +24,7 @@ tasks.test {
} }
kotlin { kotlin {
jvmToolchain(24) jvmToolchain(17)
} }
application { application {

View File

@@ -5,7 +5,7 @@ plugins {
} }
group = "fr.lengrand" group = "fr.lengrand"
version = "0.1.3-SNAPSHOT" version = "0.1.3"
repositories { repositories {
mavenCentral() mavenCentral()
@@ -33,8 +33,16 @@ tasks.jar {
} }
} }
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlin { kotlin {
jvmToolchain(24) jvmToolchain(17)
compilerOptions {
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
}
} }
mavenPublishing { mavenPublishing {

View File

@@ -24,5 +24,5 @@ tasks.test {
useJUnitPlatform() useJUnitPlatform()
} }
kotlin { kotlin {
jvmToolchain(24) jvmToolchain(17)
} }