Skip to content

Commit

Permalink
fix ktlint and configure compatibility (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredsburrows authored and shashachu committed Jun 17, 2019
1 parent af72025 commit 563b136
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,18 @@ allprojects {
repositories {
gradlePluginPortal()
}

tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

kotlinOptions {
jvmTarget = '1.8'
}
}
}
7 changes: 0 additions & 7 deletions ktlint-ruleset-template/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ plugins {

group = 'com.github.username'

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

repositories {
jcenter()
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
Expand Down
9 changes: 0 additions & 9 deletions ktlint/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,3 @@ dependencies {
testImplementation deps.assertj
testImplementation deps.jimfs
}

compileKotlin {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

kotlinOptions {
jvmTarget = '1.8'
}
}

0 comments on commit 563b136

Please sign in to comment.