Skip to content

Commit f7aa4d7

Browse files
ilgonmicdmitrievanthony
andauthoredAug 13, 2020
Prepare for Kotlin 1.4.0 (#156)
* Prepare for M2 * Update declarations.json. * Change kotlin version and kotlinx html version * Update on latest pre release Kotlin * Build against 1.4-M2 * Build against 1.4-M3 * Add dev into release * Use Kotlin 1.4.0-rc * Prepare for Kotlin 1.4.0 * Back settings.gradle.kts * dev and eap repository for Kotlin 1.4.0 * Use 'all' Gradle Wrapper Co-authored-by: dmitrievanthony <[email protected]>
1 parent 0151d53 commit f7aa4d7

7 files changed

+34
-20
lines changed
 

‎build.gradle.kts

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import kotlinx.html.js.*
2-
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsSetupTask
1+
import Build_gradle.MavenPomFile
2+
import kotlinx.html.js.packageJson
33
import org.apache.tools.ant.taskdefs.condition.Os
4+
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsSetupTask
45

56
/**
67
* This build script supports following parameters:
@@ -13,7 +14,7 @@ import org.apache.tools.ant.taskdefs.condition.Os
1314
* -PversionTag - works together with "branch-build" profile and overrides "-SNAPSHOT" suffix of the version.
1415
*/
1516
plugins {
16-
kotlin("multiplatform") version "1.3.61"
17+
kotlin("multiplatform") version "1.4.0"
1718
id("maven-publish")
1819
}
1920

@@ -104,6 +105,10 @@ repositories {
104105
jcenter()
105106
mavenCentral()
106107

108+
// It is just for release against pre-release versions
109+
maven { url = uri("https://dl.bintray.com/kotlin/kotlin-eap") }
110+
maven { url = uri("https://dl.bintray.com/kotlin/kotlin-dev") }
111+
107112
when {
108113
/** Allow all profiles but release to use development and SNAPSHOT dependencies. */
109114
!hasProperty("release") -> {
@@ -139,6 +144,7 @@ kotlin {
139144
}
140145

141146
js {
147+
moduleName = project.name
142148
browser {
143149
testTask {
144150
useKarma {
@@ -258,7 +264,7 @@ tasks.register<Task>("generate") {
258264
}
259265

260266
tasks.register<Copy>("jsPackagePrepare") {
261-
dependsOn("jsMainClasses")
267+
dependsOn("jsLegacyMainClasses")
262268
tasks["assemble"].dependsOn(this)
263269

264270
group = "build"
@@ -369,7 +375,7 @@ fun MavenPomFile.config(config: MavenPomFile.() -> Unit = {}) {
369375
}
370376

371377
tasks.withType<GenerateModuleMetadata> {
372-
enabled = false
378+
enabled = true
373379
}
374380

375381
fun MavenPublication.jar(taskName: String, config: Action<Jar>) = artifact(tasks.create(taskName, Jar::class, config))

‎gradle.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# The following property is required to mitigate issue https://github.com/gradle/gradle/issues/11412.
22
systemProp.org.gradle.internal.publish.checksums.insecure=true
3-
kotlin.code.style=official
3+
kotlin.code.style=official
4+
kotlin.js.compiler=both

‎gradle/wrapper/gradle-wrapper.jar

-8 Bytes
Binary file not shown.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

‎gradlew.bat

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ if "%DIRNAME%" == "" set DIRNAME=.
2929
set APP_BASE_NAME=%~n0
3030
set APP_HOME=%DIRNAME%
3131

32+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
33+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34+
3235
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
3336
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
3437

‎settings.gradle.kts

+10-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
rootProject.name = "kotlinx-html"
1+
rootProject.name = "kotlinx-html"
2+
3+
pluginManagement {
4+
repositories {
5+
mavenCentral()
6+
gradlePluginPortal()
7+
maven(url = "https://dl.bintray.com/kotlin/kotlin-eap")
8+
maven(url = "https://dl.bintray.com/kotlin/kotlin-dev")
9+
}
10+
}

‎src/jvmTest/resources/declarations.json

+7-12
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,9 @@
268268
"members": [
269269
{"visibility": "public", "declaration": "final fun <anonymous>(p1: kotlin.Any?): kotlin.Unit", "name": "invoke", "desc": "(Ljava/lang/Object;)Ljava/lang/Object;"},
270270
{"visibility": "public", "declaration": "final fun <anonymous>(p1: kotlin.Any?): kotlin.Unit", "name": "invoke", "desc": "(Ljava/lang/Object;)V"},
271-
{"name": "getOwner", "desc": "()Lkotlin/reflect/KDeclarationContainer;"},
272-
{"name": "getName", "desc": "()Ljava/lang/String;"},
273-
{"name": "getSignature", "desc": "()Ljava/lang/String;"},
274271
{"visibility": "public", "declaration": "final fun <anonymous>(p1: kotlin.Any?): kotlin.Unit", "name": "<init>", "desc": "()V"},
275272
{"name": "INSTANCE", "desc": "Lkotlinx/html/consumers/Trace_jvmKt$trace$1;"},
276-
{"visibility": "public", "declaration": "final class <closure-Trace_jvmKt$trace$1> : kotlin.jvm.internal.FunctionReference, (message: kotlin.Any?) -> kotlin.Unit", "name": "<clinit>", "desc": "()V"}
273+
{"visibility": "public", "declaration": "final class <closure-Trace_jvmKt$trace$1> : kotlin.jvm.internal.FunctionReferenceImpl, (kotlin.Any?) -> kotlin.Unit", "name": "<clinit>", "desc": "()V"}
277274
]
278275
},
279276
{
@@ -745,9 +742,9 @@
745742
{"visibility": "public", "declaration": "fun kotlinx.html.FIELDSET.legEnd(classes: kotlin.String? = ..., block: kotlinx.html.LEGEND.() -> kotlin.Unit = ...): kotlin.Unit", "name": "legEnd$default", "desc": "(Lkotlinx/html/FIELDSET;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V"},
746743
{"visibility": "public", "declaration": "fun kotlinx.html.FIGURE.legEnd(classes: kotlin.String? = ..., block: kotlinx.html.LEGEND.() -> kotlin.Unit = ...): kotlin.Unit", "name": "legEnd", "desc": "(Lkotlinx/html/FIGURE;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V"},
747744
{"visibility": "public", "declaration": "fun kotlinx.html.FIGURE.legEnd(classes: kotlin.String? = ..., block: kotlinx.html.LEGEND.() -> kotlin.Unit = ...): kotlin.Unit", "name": "legEnd$default", "desc": "(Lkotlinx/html/FIGURE;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V"},
748-
{"visibility": "public", "declaration": "val kotlinx.html.Draggable.true_: kotlinx.html.Draggable", "name": "true_$annotations", "desc": "(Lkotlinx/html/Draggable;)V"},
745+
{"visibility": "public", "declaration": "val kotlinx.html.Draggable.true_: kotlinx.html.Draggable", "name": "getTrue_$annotations", "desc": "(Lkotlinx/html/Draggable;)V"},
749746
{"visibility": "public", "declaration": "inline fun kotlinx.html.Draggable.<get-true_>(): kotlinx.html.Draggable", "name": "getTrue_", "desc": "(Lkotlinx/html/Draggable;)Lkotlinx/html/Draggable;"},
750-
{"visibility": "public", "declaration": "val kotlinx.html.Draggable.false_: kotlinx.html.Draggable", "name": "false_$annotations", "desc": "(Lkotlinx/html/Draggable;)V"},
747+
{"visibility": "public", "declaration": "val kotlinx.html.Draggable.false_: kotlinx.html.Draggable", "name": "getFalse_$annotations", "desc": "(Lkotlinx/html/Draggable;)V"},
751748
{"visibility": "public", "declaration": "inline fun kotlinx.html.Draggable.<get-false_>(): kotlinx.html.Draggable", "name": "getFalse_", "desc": "(Lkotlinx/html/Draggable;)Lkotlinx/html/Draggable;"},
752749
{"visibility": "public", "declaration": "typealias OBJECT_ = kotlinx.html.OBJECT", "name": "OBJECT_$annotations", "desc": "()V"},
753750
{"visibility": "public", "declaration": "typealias VAR_ = kotlinx.html.VAR", "name": "VAR_$annotations", "desc": "()V"},
@@ -759,16 +756,16 @@
759756
{"visibility": "public", "declaration": "fun kotlinx.html.FlowOrPhrasingContent.var_(classes: kotlin.String? = ..., block: kotlinx.html.VAR.() -> kotlin.Unit): kotlin.Unit", "name": "var_$default", "desc": "(Lkotlinx/html/FlowOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V"},
760757
{"visibility": "public", "declaration": "fun kotlinx.html.FlowOrInteractiveOrPhrasingContent.object_(classes: kotlin.String? = ..., block: kotlinx.html.OBJECT.() -> kotlin.Unit = ...): kotlin.Unit", "name": "object_", "desc": "(Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V"},
761758
{"visibility": "public", "declaration": "fun kotlinx.html.FlowOrInteractiveOrPhrasingContent.object_(classes: kotlin.String? = ..., block: kotlinx.html.OBJECT.() -> kotlin.Unit = ...): kotlin.Unit", "name": "object_$default", "desc": "(Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V"},
762-
{"visibility": "public", "declaration": "var kotlinx.html.LABEL.for_: kotlin.String", "name": "for_$annotations", "desc": "(Lkotlinx/html/LABEL;)V"},
759+
{"visibility": "public", "declaration": "var kotlinx.html.LABEL.for_: kotlin.String", "name": "getFor_$annotations", "desc": "(Lkotlinx/html/LABEL;)V"},
763760
{"visibility": "public", "declaration": "fun kotlinx.html.LABEL.<get-for_>(): kotlin.String", "name": "getFor_", "desc": "(Lkotlinx/html/LABEL;)Ljava/lang/String;"},
764761
{"visibility": "public", "declaration": "fun kotlinx.html.LABEL.<set-for_>(value: kotlin.String): kotlin.Unit", "name": "setFor_", "desc": "(Lkotlinx/html/LABEL;Ljava/lang/String;)V"},
765-
{"visibility": "public", "declaration": "var kotlinx.html.OUTPUT.for_: kotlin.String", "name": "for_$annotations", "desc": "(Lkotlinx/html/OUTPUT;)V"},
762+
{"visibility": "public", "declaration": "var kotlinx.html.OUTPUT.for_: kotlin.String", "name": "getFor_$annotations", "desc": "(Lkotlinx/html/OUTPUT;)V"},
766763
{"visibility": "public", "declaration": "fun kotlinx.html.OUTPUT.<get-for_>(): kotlin.String", "name": "getFor_", "desc": "(Lkotlinx/html/OUTPUT;)Ljava/lang/String;"},
767764
{"visibility": "public", "declaration": "fun kotlinx.html.OUTPUT.<set-for_>(value: kotlin.String): kotlin.Unit", "name": "setFor_", "desc": "(Lkotlinx/html/OUTPUT;Ljava/lang/String;)V"},
768-
{"visibility": "public", "declaration": "var kotlinx.html.CommonAttributeGroupFacade.onTouchcancel: kotlin.String", "name": "onTouchcancel$annotations", "desc": "(Lkotlinx/html/CommonAttributeGroupFacade;)V"},
765+
{"visibility": "public", "declaration": "var kotlinx.html.CommonAttributeGroupFacade.onTouchcancel: kotlin.String", "name": "getOnTouchcancel$annotations", "desc": "(Lkotlinx/html/CommonAttributeGroupFacade;)V"},
769766
{"visibility": "public", "declaration": "fun kotlinx.html.CommonAttributeGroupFacade.<get-onTouchcancel>(): kotlin.String", "name": "getOnTouchcancel", "desc": "(Lkotlinx/html/CommonAttributeGroupFacade;)Ljava/lang/String;"},
770767
{"visibility": "public", "declaration": "fun kotlinx.html.CommonAttributeGroupFacade.<set-onTouchcancel>(newValue: kotlin.String): kotlin.Unit", "name": "setOnTouchcancel", "desc": "(Lkotlinx/html/CommonAttributeGroupFacade;Ljava/lang/String;)V"},
771-
{"visibility": "public", "declaration": "var kotlinx.html.CommonAttributeGroupFacade.onTouchmove: kotlin.String", "name": "onTouchmove$annotations", "desc": "(Lkotlinx/html/CommonAttributeGroupFacade;)V"},
768+
{"visibility": "public", "declaration": "var kotlinx.html.CommonAttributeGroupFacade.onTouchmove: kotlin.String", "name": "getOnTouchmove$annotations", "desc": "(Lkotlinx/html/CommonAttributeGroupFacade;)V"},
772769
{"visibility": "public", "declaration": "fun kotlinx.html.CommonAttributeGroupFacade.<get-onTouchmove>(): kotlin.String", "name": "getOnTouchmove", "desc": "(Lkotlinx/html/CommonAttributeGroupFacade;)Ljava/lang/String;"},
773770
{"visibility": "public", "declaration": "fun kotlinx.html.CommonAttributeGroupFacade.<set-onTouchmove>(newValue: kotlin.String): kotlin.Unit", "name": "setOnTouchmove", "desc": "(Lkotlinx/html/CommonAttributeGroupFacade;Ljava/lang/String;)V"}
774771
]
@@ -8535,8 +8532,6 @@
85358532
"visibility": "public",
85368533
"class": "kotlinx/html/dom/HTMLDOMBuilder",
85378534
"members": [
8538-
{"name": "$$delegatedProperties", "desc": "[Lkotlin/reflect/KProperty;"},
8539-
{"visibility": "public", "declaration": "final class HTMLDOMBuilder : kotlinx.html.TagConsumer<org.w3c.dom.Element>", "name": "<clinit>", "desc": "()V"},
85408535
{"visibility": "private", "declaration": "final val path: kotlin.collections.ArrayList<org.w3c.dom.Element> /* = java.util.ArrayList<org.w3c.dom.Element> */", "name": "path", "desc": "Ljava/util/ArrayList;"},
85418536
{"visibility": "private", "declaration": "final var lastLeaved: org.w3c.dom.Element?", "name": "lastLeaved", "desc": "Lorg/w3c/dom/Element;"},
85428537
{"visibility": "private", "declaration": "final val documentBuilder: javax.xml.parsers.DocumentBuilder", "name": "documentBuilder$delegate", "desc": "Lkotlin/Lazy;"},

0 commit comments

Comments
 (0)
Please sign in to comment.