Upgrade project to Java 17 and Gradle 8

This commit is contained in:
2023-12-11 14:13:25 +01:00
parent 88f2089310
commit c020549cac
10 changed files with 315 additions and 228 deletions

View File

@@ -11,21 +11,21 @@ subprojects {
group 'com.bartlomiejpluta'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = 17
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.jvmTarget = "17"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.jvmTarget = "17"
}
dependencies {
// compileOnly important!!! We do not want to put the api into the zip file since the main program has it already!
compileOnly project(':api')
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation project(':api')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
kapt(group: 'org.pf4j', name: 'pf4j', version: "3.2.0")
compileOnly(group: 'org.pf4j', name: 'pf4j', version: "3.2.0") {
implementation(group: 'org.pf4j', name: 'pf4j', version: "3.2.0") {
exclude group: "org.slf4j"
}
}
@@ -46,7 +46,7 @@ subprojects {
with jar
}
into('lib') {
from configurations.compile
from configurations.implementation
}
archiveExtension = 'zip'
}