Skip to content

Commit

Permalink
Prepare for user project
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgonmic committed Nov 21, 2024
1 parent 165e706 commit b77127d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3,080 deletions.
16 changes: 15 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion.Companion.fromVersion
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig

plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.kotlinMultiplatform)
}

group = "me.user"
version = "1.0-SNAPSHOT"

val kotlin_repo_url: String? = project.properties["kotlin_repo_url"] as String?
val language_version: String? = project.properties["language_version"] as String?

repositories {
mavenCentral()

kotlin_repo_url?.also { maven(it) }
}

kotlin {
Expand All @@ -23,6 +29,14 @@ kotlin {
}
}
}

compilations.configureEach {
compileTaskProvider.configure {
language_version?.let {
compilerOptions.languageVersion.set(fromVersion(it))
}
}
}
}

sourceSets {
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
kotlin.code.style=official
kotlin_version=2.0.20
Loading

0 comments on commit b77127d

Please sign in to comment.