Skip to content

Commit

Permalink
move kotlin-jvm plugin into conventions, specify target compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mfwgenerics committed Jan 11, 2023
1 parent 6cbda28 commit 2ab492d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
1 change: 1 addition & 0 deletions build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ repositories {
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0")
implementation("com.palantir.gradle.gitversion:gradle-git-version:0.15.0")
}
20 changes: 19 additions & 1 deletion build-logic/src/main/kotlin/conventions.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

repositories {
mavenCentral()
}

plugins {
kotlin("jvm")

id("com.palantir.git-version")
}

Expand All @@ -8,4 +16,14 @@ group = "io.koalaql"
version = gitVersion()

check("$version".isNotBlank() && version != "unspecified")
{ "invalid version $version" }
{ "invalid version $version" }

java {
targetCompatibility = JavaVersion.VERSION_1_8
}

tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}
2 changes: 0 additions & 2 deletions markout/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ repositories {

plugins {
id("publish")

kotlin("jvm") version "1.8.0"
}

dependencies {
Expand Down
2 changes: 0 additions & 2 deletions readme/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ repositories {
}

plugins {
kotlin("jvm") version "1.8.0"

id("io.koalaql.kapshot-plugin") version "0.1.0"

application
Expand Down

0 comments on commit 2ab492d

Please sign in to comment.