28 lines
563 B
Groovy
28 lines
563 B
Groovy
buildscript {
|
|
ext.kotlin_version = '1.4.10'
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
group 'com.baeldung'
|
|
version '1.0-SNAPSHOT'
|
|
apply plugin: 'kotlin2js'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version"
|
|
testCompile "org.jetbrains.kotlin:kotlin-test-js:$kotlin_version"
|
|
}
|
|
|
|
compileKotlin2Js.kotlinOptions {
|
|
moduleKind = "commonjs"
|
|
outputFile = "node/crypto.js"
|
|
}
|