-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
223 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
plugins { | ||
alias(libs.plugins.gradle.kotlin.dsl) | ||
} | ||
|
||
configurations.configureEach { | ||
resolutionStrategy { | ||
force(libs.kotlin.reflect) | ||
force(libs.kotlin.stdlib) | ||
force(libs.kotlin.stdlib.jdk7) | ||
force(libs.kotlin.stdlib.jdk8) | ||
} | ||
} | ||
|
||
val kotlinVersion: String by extra | ||
|
||
dependencies { | ||
api(libs.kotlin.gradle.plugin) | ||
api(libs.detekt.gradle.plugin) | ||
|
||
if (kotlinVersion >= "1.8.0") { | ||
api(libs.kover.gradle.plugin) | ||
} | ||
|
||
// https://stackoverflow.com/questions/76713758/use-version-catalog-inside-precompiled-gradle-plugin | ||
api(files(libs.javaClass.superclass.protectionDomain.codeSource.location)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
plugins { | ||
alias(libs.plugins.gradle.kotlin.dsl) | ||
} | ||
|
||
configurations.configureEach { | ||
resolutionStrategy { | ||
force(libs.kotlin.reflect) | ||
force(libs.kotlin.stdlib) | ||
force(libs.kotlin.stdlib.jdk7) | ||
force(libs.kotlin.stdlib.jdk8) | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(project(":conventions-utils")) | ||
} | ||
|
||
gradlePlugin { | ||
plugins { | ||
named("conventions-kotlin-version-jvm") { | ||
id = "conventions-kotlin-version-jvm" | ||
version = libs.versions.kotlinx.rpc.get() | ||
} | ||
} | ||
|
||
plugins { | ||
named("conventions-kotlin-version-kmp") { | ||
id = "conventions-kotlin-version-kmp" | ||
version = libs.versions.kotlinx.rpc.get() | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...-conventions/kotlin-version-new/src/main/kotlin/conventions-kotlin-version-jvm.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension | ||
import util.projectLanguageVersion | ||
|
||
configure<KotlinJvmProjectExtension> { | ||
compilerOptions(projectLanguageVersion) | ||
} |
12 changes: 12 additions & 0 deletions
12
...-conventions/kotlin-version-new/src/main/kotlin/conventions-kotlin-version-kmp.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi | ||
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension | ||
import util.projectLanguageVersion | ||
|
||
@OptIn(ExperimentalKotlinGradlePluginApi::class) | ||
configure<KotlinMultiplatformExtension> { | ||
compilerOptions(projectLanguageVersion) | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
plugins { | ||
alias(libs.plugins.gradle.kotlin.dsl) | ||
} | ||
|
||
configurations.configureEach { | ||
resolutionStrategy { | ||
force(libs.kotlin.reflect) | ||
force(libs.kotlin.stdlib) | ||
force(libs.kotlin.stdlib.jdk7) | ||
force(libs.kotlin.stdlib.jdk8) | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(project(":conventions-utils")) | ||
} | ||
|
||
gradlePlugin { | ||
plugins { | ||
named("conventions-kotlin-version-jvm") { | ||
id = "conventions-kotlin-version-jvm" | ||
version = libs.versions.kotlinx.rpc.get() | ||
} | ||
} | ||
|
||
plugins { | ||
named("conventions-kotlin-version-kmp") { | ||
id = "conventions-kotlin-version-kmp" | ||
version = libs.versions.kotlinx.rpc.get() | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...-conventions/kotlin-version-old/src/main/kotlin/conventions-kotlin-version-jvm.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
import util.setLanguageVersion | ||
|
||
setLanguageVersion() |
7 changes: 7 additions & 0 deletions
7
...-conventions/kotlin-version-old/src/main/kotlin/conventions-kotlin-version-kmp.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
import util.setLanguageVersion | ||
|
||
setLanguageVersion() |
18 changes: 18 additions & 0 deletions
18
gradle-conventions/kotlin-version-old/src/main/kotlin/util/CompilerOptions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
package util | ||
|
||
import org.gradle.api.Project | ||
import org.gradle.kotlin.dsl.withType | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
fun Project.setLanguageVersion() { | ||
tasks.withType<KotlinCompile>().all { | ||
kotlinOptions { | ||
freeCompilerArgs += "-language-version=1.7" | ||
freeCompilerArgs += "-api-version=1.7" | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
Kotlin,gradle-kotlin-dsl | ||
1.9.24,4.1.0 | ||
1.9.23,4.1.0 | ||
1.9.22,4.1.0 | ||
1.9.21,4.1.0 | ||
1.9.20,4.1.0 | ||
1.9.10,4.1.0 | ||
1.9.0,4.1.0 | ||
1.8.22,4.0.6 | ||
1.8.21,4.0.6 | ||
1.8.20,4.0.6 | ||
1.8.10,4.0.6 | ||
1.8.0,4.0.0 | ||
1.7.22,2.3.3 | ||
1.7.21,2.3.3 | ||
1.7.20,2.3.3 | ||
1.7.10,2.3.3 | ||
1.7.0,2.3.3 | ||
Kotlin,ksp,atomicfu,serialization,detekt-gradle-plugin,gradle-kotlin-dsl,binary-compatibility-validator,kover | ||
1.9.24,1.0.20,0.22.0,1.6.1,1.23.6,4.1.0,0.14.0,0.8.0 | ||
1.9.23,1.0.19,0.22.0,1.6.1,1.23.6,4.1.0,0.14.0,0.8.0 | ||
1.9.22,1.0.17,0.22.0,1.6.1,1.23.6,4.1.0,0.14.0,0.8.0 | ||
1.9.21,1.0.16,0.22.0,1.6.1,1.23.6,4.1.0,0.14.0,0.8.0 | ||
1.9.20,1.0.14,0.22.0,1.6.1,1.23.6,4.1.0,0.14.0,0.8.0 | ||
1.9.10,1.0.13,0.22.0,1.6.0,1.23.3,4.1.0,0.14.0,0.8.0 | ||
1.9.0,1.0.13,0.22.0,1.6.0,1.23.1,4.1.0,0.14.0,0.8.0 | ||
1.8.22,1.0.11,0.21.0,1.5.1,1.23.0,4.0.6,0.14.0,0.8.0 | ||
1.8.21,1.0.11,0.21.0,1.5.1,1.23.0,4.0.6,0.14.0,0.8.0 | ||
1.8.20,1.0.11,0.21.0,1.5.0,1.23.0,4.0.6,0.14.0,0.8.0 | ||
1.8.10,1.0.9,0.20.0,1.5.0,1.23.0,4.0.6,0.12.1,0.8.0 | ||
1.8.0,1.0.9,0.20.0,1.4.1,1.23.0,4.0.0,0.12.0,0.8.0 | ||
1.7.22,1.0.8,0.18.5,1.4.1,1.22.0,2.3.3,0.12.0,0.0.0 | ||
1.7.21,1.0.8,0.18.5,1.4.1,1.22.0,2.3.3,0.12.0,0.0.0 | ||
1.7.20,1.0.8,0.18.5,1.4.1,1.22.0,2.3.3,0.12.0,0.0.0 | ||
1.7.10,1.0.6,0.18.0,1.4.0,1.22.0,2.3.3,0.12.0,0.0.0 | ||
1.7.0,1.0.6,0.18.0,1.4.0,1.22.0,2.3.3,0.12.0,0.0.0 |
Oops, something went wrong.