blob: 7ab12dc967c20f55a3318480029efab9dca97306 [file] [log] [blame]
Jeff Gaston2f575882023-04-19 13:47:50 -04001// This file applies configuration common to projects in buildSrc
Jeff Gaston78a97ef2023-08-08 11:29:04 -04002
3import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
4
Jeff Gastond72edf22021-08-24 11:53:54 -04005apply plugin: "kotlin"
Jeff Gastond72edf22021-08-24 11:53:54 -04006
7buildscript {
Jeff Gaston09154192023-09-18 14:28:45 -04008 project.ext.supportRootFolder = buildscript.sourceFile.parentFile.parentFile
9 apply from: "${buildscript.sourceFile.parent}/repos.gradle"
Jeff Gastond72edf22021-08-24 11:53:54 -040010 repos.addMavenRepositories(repositories)
11 dependencies {
12 classpath(libs.kotlinGradlePluginz)
13 }
14}
15
Jeff Gastond72edf22021-08-24 11:53:54 -040016dependencies {
Aurimas Liutikas6d38ebc2022-08-04 16:04:12 -070017 implementation(project(":jetpad-integration"))
Jeff Gastond72edf22021-08-24 11:53:54 -040018}
19
Jeff Gaston09154192023-09-18 14:28:45 -040020apply from: "${buildscript.sourceFile.parent}/shared-dependencies.gradle"
Jeff Gaston2f575882023-04-19 13:47:50 -040021
Jim Sprochef5fb012022-12-06 15:28:12 -080022java {
Ivan Gavrilovic259a516e2023-04-27 12:26:46 +010023 sourceCompatibility = JavaVersion.VERSION_17
24 targetCompatibility = JavaVersion.VERSION_17
Jim Sprochef5fb012022-12-06 15:28:12 -080025}
26
Aurimas Liutikasf07d44c2023-12-07 07:08:53 -080027project.tasks.withType(Jar).configureEach { task ->
Jeff Gastond72edf22021-08-24 11:53:54 -040028 task.reproducibleFileOrder = true
29 task.preserveFileTimestamps = false
30}
Jeff Gaston5e3e7de2022-04-21 14:49:47 -040031
Jeff Gaston78a97ef2023-08-08 11:29:04 -040032project.repos.addMavenRepositories(project.repositories)
33tasks.withType(KotlinCompile).configureEach {
34 kotlinOptions {
35 jvmTarget = "17"
36 freeCompilerArgs += [
37 "-Werror",
Aurimas Liutikas1e162f02024-03-13 10:35:39 -070038 "-Xskip-metadata-version-check",
39 "-Xjdk-release=17",
Jeff Gaston78a97ef2023-08-08 11:29:04 -040040 ]
41 languageVersion = "1.8"
42 apiVersion = "1.8"
43 }
44}