File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2026 David Allison <davidallisongithub@gmail.com>
3+ *
4+ * This program is free software; you can redistribute it and/or modify it under
5+ * the terms of the GNU General Public License as published by the Free Software
6+ * Foundation; either version 3 of the License, or (at your option) any later
7+ * version.
8+ *
9+ * This program is distributed in the hope that it will be useful, but WITHOUT ANY
10+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11+ * PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+ *
13+ * You should have received a copy of the GNU General Public License along with
14+ * this program. If not, see <http://www.gnu.org/licenses/>.
15+ */
16+
17+ // Convention plugin: applies the Kotlin JVM plugin and pins Java/Kotlin
18+ // toolchain settings for pure-JVM (non-Android) modules in this project.
19+ // TODO: create a kotlin-library for future pure-kotlin libraries
20+ // lint-rules did not need this.
21+
22+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
23+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
24+
25+ plugins {
26+ id(" org.jetbrains.kotlin.jvm" )
27+ }
28+
29+ tasks.withType(JavaCompile ::class ).configureEach {
30+ sourceCompatibility = JavaVersion .VERSION_17 .toString()
31+ targetCompatibility = JavaVersion .VERSION_17 .toString()
32+ }
33+
34+ tasks.withType(KotlinCompile ::class ).configureEach {
35+ compilerOptions {
36+ jvmTarget = JvmTarget .JVM_17
37+ }
38+ }
Original file line number Diff line number Diff line change 1- import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3-
41plugins {
5- id(" kotlin" )
6- }
7-
8- tasks.withType(JavaCompile ::class ).configureEach {
9- sourceCompatibility = JavaVersion .VERSION_17 .toString()
10- targetCompatibility = JavaVersion .VERSION_17 .toString()
11- }
12-
13- tasks.withType(KotlinCompile ::class ).all {
14- compilerOptions {
15- jvmTarget = JvmTarget .JVM_17
16- }
2+ id(" ankidroid.kotlin-jvm" )
173}
184
195dependencies {
You can’t perform that action at this time.
0 commit comments