diff --git a/build.gradle b/build.gradle index 5eeb960..1b4d5c7 100644 --- a/build.gradle +++ b/build.gradle @@ -1,12 +1,39 @@ -group 'nl.astraeus' -version '0.1.16-SNAPSHOT' +buildscript { + ext.kotlin_version = '1.3.70' + repositories { + maven { + url "http://nexus.astraeus.nl/nexus/content/groups/public" + } + mavenCentral() + } + dependencies { + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} + +plugins { + id("org.jetbrains.kotlin.js") version "1.3.70" +} -apply plugin: 'kotlin2js' -apply plugin: 'kotlin-dce-js' apply plugin: 'idea' apply plugin: 'maven' apply plugin: 'maven-publish' +group 'nl.astraeus' +version '0.1.16-SNAPSHOT' + +kotlin { + target { + browser { + webpackTask { + output.libraryTarget = "umd" + } + } + } +} + +compileKotlinJs.kotlinOptions.moduleKind = "umd" + idea { module { name = "komp" @@ -21,20 +48,7 @@ repositories { } ext { - kotlin_version = '1.3.50' -} - -buildscript { - ext.kotlin_version = '1.3.50' - repositories { - maven { - url "http://nexus.astraeus.nl/nexus/content/groups/public" - } - mavenCentral() - } - dependencies { - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } + kotlin_version = '1.3.70' } dependencies { @@ -56,9 +70,11 @@ uploadArchives { } } +/* compileKotlin2Js { kotlinOptions.sourceMap = true kotlinOptions.sourceMapEmbedSources = "always" // remaining configuration options } +*/ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index ef9b31b..6e17301 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,6 @@ +#Wed Mar 04 13:29:12 CET 2020 +distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-all.zip +zipStoreBase=GRADLE_USER_HOME diff --git a/komp.iml b/komp.iml index c4732cc..9bacbca 100644 --- a/komp.iml +++ b/komp.iml @@ -1,5 +1,5 @@ - + @@ -28,23 +28,14 @@ - - - + - - - - - - - \ No newline at end of file diff --git a/komp.ipr b/komp.ipr index e5af0f9..e47b9ec 100644 --- a/komp.ipr +++ b/komp.ipr @@ -1,5 +1,13 @@ + + + $PROJECT_DIR$/build/libs + + + + + @@ -199,6 +208,8 @@ + + @@ -298,40 +309,40 @@ - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/komp_main.iml b/komp_main.iml new file mode 100644 index 0000000..a31b333 --- /dev/null +++ b/komp_main.iml @@ -0,0 +1,48 @@ + + + + + + COMPILATION_AND_SOURCE_SET_HOLDER + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/komp_test.iml b/komp_test.iml new file mode 100644 index 0000000..a3a0c2d --- /dev/null +++ b/komp_test.iml @@ -0,0 +1,93 @@ + + + + + + + komp_main + + COMPILATION_AND_SOURCE_SET_HOLDER + browserTest|komp:test|Js + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index cdfb107..fadcfdf 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,2 +1,3 @@ rootProject.name = 'komp' +enableFeaturePreview('GRADLE_METADATA')