Merge pull request #7 from aSemy/feat/additional-kotlin-targets
enable Kotlin Native and JS targets
This commit is contained in:
commit
2eb1c45f95
10 changed files with 2031 additions and 37 deletions
|
@ -5,5 +5,14 @@ org.freemarker:freemarker:2.3.30=koverJvmReporter
|
|||
org.jetbrains.intellij.deps:coverage-report:1.0.19=koverJvmReporter
|
||||
org.jetbrains.intellij.deps:intellij-coverage-agent:1.0.721=koverJvmAgent,koverJvmReporter
|
||||
org.jetbrains.intellij.deps:intellij-coverage-reporter:1.0.721=koverJvmReporter
|
||||
org.jetbrains.intellij.deps:trove4j:1.0.20200330=kotlinKlibCommonizerClasspath
|
||||
org.jetbrains.kotlin:kotlin-compiler-embeddable:1.9.0=kotlinKlibCommonizerClasspath
|
||||
org.jetbrains.kotlin:kotlin-daemon-embeddable:1.9.0=kotlinKlibCommonizerClasspath
|
||||
org.jetbrains.kotlin:kotlin-klib-commonizer-embeddable:1.9.0=kotlinKlibCommonizerClasspath
|
||||
org.jetbrains.kotlin:kotlin-reflect:1.6.10=kotlinKlibCommonizerClasspath
|
||||
org.jetbrains.kotlin:kotlin-script-runtime:1.9.0=kotlinKlibCommonizerClasspath
|
||||
org.jetbrains.kotlin:kotlin-stdlib-common:1.9.0=kotlinKlibCommonizerClasspath
|
||||
org.jetbrains.kotlin:kotlin-stdlib:1.9.0=kotlinKlibCommonizerClasspath
|
||||
org.jetbrains:annotations:13.0=kotlinKlibCommonizerClasspath
|
||||
org.jetbrains:annotations:16.0.2=koverJvmReporter
|
||||
empty=koverExternalArtifacts
|
||||
|
|
|
@ -7,3 +7,5 @@ org.gradle.welcome=never
|
|||
# enableKgpDependencyResolution provides a smoother import experience in multiplatform projects
|
||||
# https://kotlinlang.org/docs/whatsnew1820.html#preview-of-gradle-composite-builds-support-in-kotlin-multiplatform
|
||||
kotlin.mpp.import.enableKgpDependencyResolution=true
|
||||
# hide warning "Some Kotlin/Native targets cannot be built on this mingw_x64 machine and are disabled"
|
||||
kotlin.native.ignoreDisabledTargets=true
|
||||
|
|
1926
gradle/kotlin-js-store/yarn.lock
Normal file
1926
gradle/kotlin-js-store/yarn.lock
Normal file
File diff suppressed because it is too large
Load diff
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
3
gradlew
vendored
Executable file → Normal file
3
gradlew
vendored
Executable file → Normal file
|
@ -83,7 +83,8 @@ done
|
|||
# This is normally unused
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
|
|
|
@ -17,6 +17,60 @@ dependencyResolutionManagement {
|
|||
name = "Sonatype Snapshots"
|
||||
mavenContent { snapshotsOnly() }
|
||||
}
|
||||
|
||||
// Declare the Node.js & Yarn download repositories
|
||||
exclusiveContent {
|
||||
forRepository {
|
||||
ivy("https://nodejs.org/dist/") {
|
||||
name = "Node Distributions at $url"
|
||||
patternLayout { artifact("v[revision]/[artifact](-v[revision]-[classifier]).[ext]") }
|
||||
metadataSources { artifact() }
|
||||
content { includeModule("org.nodejs", "node") }
|
||||
}
|
||||
}
|
||||
filter { includeGroup("org.nodejs") }
|
||||
}
|
||||
|
||||
exclusiveContent {
|
||||
forRepository {
|
||||
ivy("https://github.com/yarnpkg/yarn/releases/download") {
|
||||
name = "Yarn Distributions at $url"
|
||||
patternLayout { artifact("v[revision]/[artifact](-v[revision]).[ext]") }
|
||||
metadataSources { artifact() }
|
||||
content { includeModule("com.yarnpkg", "yarn") }
|
||||
}
|
||||
}
|
||||
filter { includeGroup("com.yarnpkg") }
|
||||
}
|
||||
|
||||
// workaround for https://youtrack.jetbrains.com/issue/KT-51379
|
||||
exclusiveContent {
|
||||
forRepository {
|
||||
ivy("https://download.jetbrains.com/kotlin/native/builds") {
|
||||
name = "Kotlin Native"
|
||||
patternLayout {
|
||||
// example download URLs:
|
||||
// https://download.jetbrains.com/kotlin/native/builds/releases/1.7.20/linux-x86_64/kotlin-native-prebuilt-linux-x86_64-1.7.20.tar.gz
|
||||
// https://download.jetbrains.com/kotlin/native/builds/releases/1.7.20/windows-x86_64/kotlin-native-prebuilt-windows-x86_64-1.7.20.zip
|
||||
// https://download.jetbrains.com/kotlin/native/builds/releases/1.7.20/macos-x86_64/kotlin-native-prebuilt-macos-x86_64-1.7.20.tar.gz
|
||||
listOf(
|
||||
"macos-x86_64",
|
||||
"macos-aarch64",
|
||||
"osx-x86_64",
|
||||
"osx-aarch64",
|
||||
"linux-x86_64",
|
||||
"windows-x86_64",
|
||||
).forEach { os ->
|
||||
listOf("dev", "releases").forEach { stage ->
|
||||
artifact("$stage/[revision]/$os/[artifact]-[revision].[ext]")
|
||||
}
|
||||
}
|
||||
}
|
||||
metadataSources { artifact() }
|
||||
}
|
||||
}
|
||||
filter { includeModuleByRegex(".*", ".*kotlin-native-prebuilt.*") }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,8 @@ import org.jetbrains.dokka.gradle.DokkaTask
|
|||
|
||||
plugins {
|
||||
buildsrc.conventions.lang.`kotlin-multiplatform-jvm`
|
||||
buildsrc.conventions.lang.`kotlin-multiplatform-js`
|
||||
buildsrc.conventions.lang.`kotlin-multiplatform-native`
|
||||
buildsrc.conventions.publishing
|
||||
id("application")
|
||||
id("com.github.ben-manes.versions")
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -19,6 +19,8 @@ import org.jetbrains.dokka.gradle.DokkaTask
|
|||
|
||||
plugins {
|
||||
buildsrc.conventions.lang.`kotlin-multiplatform-jvm`
|
||||
buildsrc.conventions.lang.`kotlin-multiplatform-js`
|
||||
buildsrc.conventions.lang.`kotlin-multiplatform-native`
|
||||
buildsrc.conventions.publishing
|
||||
id("com.github.ben-manes.versions")
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue