Ilya Chernikov
04ffe7754e
Refactoring properties collection after review
2018-08-23 09:51:53 +03:00
Ilya Chernikov
74f8a541c0
Grand refactoring of the scripting DSL + many minor usability refactorings around it
2018-08-23 09:51:53 +03:00
Ilya Chernikov
45eaca1290
Add diagnostics chaining
2018-08-23 09:51:53 +03:00
Ilya Chernikov
3fb3aa5ad1
Setup props once, fix initialization problem
2018-08-23 09:51:53 +03:00
Ilya Chernikov
c41717d03b
Make definition a part of the basic hosts, simplify usages
2018-08-23 09:51:53 +03:00
Ilya Chernikov
70ec004aaa
Sorting default jvm props and basic implementations
2018-08-23 09:51:53 +03:00
Ilya Chernikov
fe2a11142e
Renaming, commenting sample
2018-08-23 09:51:53 +03:00
Ilya Chernikov
3629583942
Add overridable method "setup" for defining properties
2018-08-23 09:51:53 +03:00
Ilya Chernikov
1de37ca765
Make KotlinScript annotation accepting all params needed to define a script
2018-08-23 09:51:53 +03:00
Ilya Chernikov
dafbd59707
Add shorter aliases for properties
2018-08-23 09:51:53 +03:00
Ilya Chernikov
df870b47b8
Add helpers for jvm dependencies from context
2018-08-23 09:51:53 +03:00
Ilya Chernikov
100b908a94
Add properties builders to the dsl, implement a builder for refineConfiguration
2018-08-23 09:51:53 +03:00
Ilya Chernikov
e5e1b8d100
Improve generic DSL
2018-08-23 09:51:53 +03:00
Ilya Chernikov
7a621405ae
Add generic properties builder dsl, convert maven example to it
2018-08-23 09:51:53 +03:00
Ilya Chernikov
d0ed86c11c
Add REPL interfaces to scripting API
2018-08-23 09:51:53 +03:00
Ilya Chernikov
5ca4a21edf
Convert evaluator interface to function
2018-08-23 09:51:53 +03:00
Ilya Chernikov
9b7eeebaaa
Convert compiler interface to function
2018-08-23 09:51:53 +03:00
Ilya Chernikov
cf2162c445
Refactor properties
2018-08-23 09:51:53 +03:00
Ilya Chernikov
904917c194
Make script definition a property bag directly
2018-08-23 09:51:53 +03:00
Ilya Chernikov
8953bba47c
Pass scripting (host) environment independently from properties/configuration
2018-08-23 09:51:53 +03:00
Ilya Chernikov
91e6c0b77c
Remove evaluator from script definition, simplify interface
2018-08-23 09:51:53 +03:00
Ilya Chernikov
e61ba1fd70
Replace dedicated configurator with definition properties + refine fun
2018-08-23 09:51:53 +03:00
Ilya Chernikov
a54675abe7
Clean and fix new scripting API
2018-08-23 09:51:53 +03:00
Ilmir Usmanov
4a7703ed66
Implement correct is check for SuspendFunction
...
Let callable references implement SuspendFunction
Do not generate CHECKCAST SuspendFunction when LV is 1.2
#KT-25825: Fixed
2018-08-22 16:21:27 +03:00
Alexey Tsvetkov
32d910320f
Annotate KotlinNativeCompile#outputFile
2018-08-21 23:49:42 +03:00
Sergey Igushkin
ef85fe7ab2
Always apply the java-base plugin from the new MPP plugin
...
This fixes misconfigured test tasks and the `Usage` attribute
compatibility rule missing that is added by `java-base`.
Issue #KT-26301 Fixed
2018-08-21 22:54:50 +03:00
Sergey Igushkin
2040cdde4b
Add missing Gradle task input path sensitivity
...
Fix after the commit 0f003802f
2018-08-21 22:54:49 +03:00
Alexander Udalov
e41e28271b
Use kotlinx-metadata-jvm of version 0.0.4 in kotlin-reflect build script
...
To prevent various problems with non-shaded artifact (shading was added
in 0.0.3)
2018-08-21 17:12:02 +02:00
Alexander Udalov
852760b3b0
Report error on incompatible .kotlin_module files in classpath
...
Also remove obsolete test wrongAbiVersionNoErrors
#KT-25973 Fixed
#KT-26266 Open
2018-08-21 17:12:02 +02:00
Sergey Igushkin
674e464230
Fix Kotlin source directories not added into the Java source set srcDirs
...
Before the new MPP, Kotlin source directories were added to the Java
source set's `allJava` and `allSource` by all of the Kotlin plugins,
including common and JS ones. As it turned out, this was required by the
IntelliJ Gradle import.
* Make all `KotlinSourceSetProcessor`s (not just JVM) check whether a
compilation has a Java source set and add the Kotlin source
directories to `allSource` and `allJava`
* Also disable the unclear resource `exclude` for the Java source set
that filters Kotlin source directories out of the resources
Issue #KT-26020 Fixed
Issue #KT-26267 Fixed
2018-08-21 18:05:52 +03:00
Roman Elizarov
4fe2730f4a
SuccessOrFailure.getOrDefault
2018-08-21 17:07:20 +03:00
Alexander Udalov
0f003802fe
Introduce -Xcommon-sources and pass it correctly from build tool plugins
...
#KT-25196 In Progress
2018-08-21 12:49:10 +02:00
Denis Zharkov
d35e73d29b
Get rid of COROUTINE_SUSPENDED replacement in SuspendFunction wrappers
2018-08-21 13:46:01 +03:00
Denis Zharkov
ca39cc47c9
Support calling experimental coroutines API in JVM
...
The support is very limited, though
#KT-25683 Fixed
2018-08-21 13:46:01 +03:00
Denis Zharkov
20c7a97bcd
Make experimental/release COROUTINE_SUSPENDED reference the same instance
...
It's necessary when mixing experimental/release coroutines together
#KT-25683 In Progress
2018-08-21 13:44:02 +03:00
Denis Zharkov
db34555800
Use package property COROUTINE_SUSPENDED instead of enum entry
...
For sake of encapsulation: actual property content might be
different from the entry
2018-08-21 13:44:02 +03:00
Alexey Tsvetkov
272f9b8a10
Recompile all subclasses of changed classes
...
Previously inter-project IC recompiled only direct subclasses
of changed classes
#KT-25455 fixed
2018-08-21 04:32:32 +03:00
Alexey Tsvetkov
73f7c2ef3c
Use file trees in InspectClassesForMultiModuleIC
...
#KT-26208
2018-08-21 04:32:32 +03:00
Alexey Tsvetkov
41a47ea50f
Minor: remove redundant default argument 'weakTesting = false'
2018-08-21 04:32:31 +03:00
Alexey Tsvetkov
c9a62e078a
Minor: remove GradleICReporter
2018-08-21 04:32:31 +03:00
Alexey Tsvetkov
30f3622b27
Implement inter-project JS IC with Gradle
...
#KT-25025 fixed
2018-08-21 04:32:31 +03:00
Alexey Tsvetkov
02af631e14
Minor: move tests for incremental compilation of Kotlin when Java changes
2018-08-21 03:53:57 +03:00
Alexey Tsvetkov
638c1eadff
Avoid rebuild when '--verbose' is used in Gradle
...
#KT-23472 fixed
2018-08-20 23:41:11 +03:00
Alexey Tsvetkov
d09629972a
Use same system property to avoid deleting module file in JPS and Gradle
2018-08-20 23:41:11 +03:00
ilmat192
2251440f04
Basic native support in kotlin-multiplatform ( #1811 )
...
* Add dependency on KN shared in gradle-plugin
* Basic support for Kotlin/Native:
* Target presets
* Compilation into a klib
* Compilation into native binraies: framework and executable
* Basic dependencies between projects
* No jars in native publications
* Replace '-' with '_' in framework names
* Escape quotes in native command lines on Windows
* Move targets from Kotlin/Native repo
* Download KN compiler using Gradle's mechanisms
* Support source set dependencies in native
2018-08-19 20:45:31 +07:00
Sergey Igushkin
b125f1e23e
Revert "Fix source set resources filtering broken by refactoring"
...
This reverts commit 6af6834
2018-08-17 17:54:43 +03:00
Sergey Igushkin
1a3dd67176
Enable metadata publishing for new MPP and consumption from source sets
...
* Add configurations for consuming source sets metadata (extending the
source set's dependency configurations). These configurations will be
used by the IDE to pick up the dependencies metadata.
* Remove the universal preset from the default presets, create a
metadata target by default for compiling and publishing the metadata
of `commonMain` (in the future, we will publish and consume the
metadata of the other source sets as well).
* Make the classpath configurations of common modules consume the
metadata and thus ensure compatibility of 1.2.x MPP with the new MPP
model.
2018-08-17 15:12:44 +03:00
Ilya Chernikov
2a4cef3ac2
Avoid "Failed to initialize native filesystem for Windows" warning from the platform on script compilation
2018-08-17 09:49:46 +02:00
Jonathan Lermitage
66bb744e3c
Update Maven central repository url to latest version
2018-08-17 09:46:07 +02:00
Sergey Igushkin
6af6834966
(minor) Fix source set resources filtering broken by refactoring
...
Before the last change in this logic, the resources filtering used
the original Kotlin source directories, not those with Java filtered
out.
Make sure that the Java source directories that are added to the Kotlin
source set are excluded from the resources, and all the related
configuration works lazily, i.e. supports source sets modification
after configuration took place.
2018-08-17 03:22:30 +03:00