28 lines
		
	
	
		
			590 B
		
	
	
	
		
			Groovy
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			590 B
		
	
	
	
		
			Groovy
		
	
	
		
			Executable File
		
	
	
	
	
| buildscript {
 | |
|     ext.kotlin_version = '1.2.41'
 | |
|     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"
 | |
| }
 |