Skip to content

Commit

Permalink
Remove deprecations from build.gradle file
Browse files Browse the repository at this point in the history
  • Loading branch information
OptimumCode committed Sep 15, 2023
1 parent d0e3c20 commit a1ba8c6
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KaptGenerateStubs
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import com.github.jk1.license.filter.LicenseBundleNormalizer
import com.github.jk1.license.render.JsonReportRenderer

Expand Down Expand Up @@ -79,13 +79,13 @@ test {
}

application {
mainClassName 'com.exactpro.th2.conn.dirty.tcp.core.Main'
mainClass.set('com.exactpro.th2.conn.dirty.tcp.core.Main')
}

applicationName = 'service'

distTar {
archiveName "${applicationName}.tar"
archiveFileName.set("${applicationName}.tar")
}

dockerPrepare {
Expand All @@ -96,19 +96,7 @@ docker {
copySpec.from(tarTree("$buildDir/distributions/${applicationName}.tar"))
}

tasks.withType(KaptGenerateStubs).configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}

compileKotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}

compileTestKotlin {
tasks.withType(KotlinCompile).configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
Expand Down

0 comments on commit a1ba8c6

Please sign in to comment.