Vyacheslav Gerasimov
c2457cae60
Read KotlinCompilerVersion from resource file
...
Writing build number into a public constant field leads to poor gradle
cache reuse between different builds. Public constant value is a part of
public api and its changes affect inputs of dependent modules.
Extracting build number to resource file allows to ignore it from
runtime classpath which fixes same problem for KotlinCompile tasks
2020-03-05 18:05:53 +03:00
Abduqodiri Qurbonzoda
d5c851980c
String.toBoolean() should be String?.toBoolean() #KT-14119
2020-03-05 17:53:29 +03:00
Abduqodiri Qurbonzoda
a32f742893
Inherit ReadWriteProperty from ReadOnlyProperty #KT-27729
2020-03-05 16:53:02 +03:00
Abduqodiri Qurbonzoda
fc22cfa896
String.format does not support no locale #KT-22932
2020-03-05 16:38:43 +03:00
Alexander Udalov
f4d53c18a1
Fix JarContentTest by adding dependency on jar creating task
...
Otherwise tests could be run before the final jar was created and stored
to `build/libs`.
2020-03-05 14:36:24 +01:00
Alexander Udalov
505ec072bb
Remove dependency of JarContentTest on JDK 8
...
It turns out that `jvmTarget` and `javaHome` settings in
build.gradle.kts were changing the module settings and affected the
compilation of kotlinx-metadata-jvm sources. The correct way to use JDK
8 in tests would be to change JVM target / JDK home of the specific
KotlinCompile task via its `kotlinOptions`, but JarContentTest doesn't
need JDK 8 anyway at this moment, so simplify that instead.
2020-03-05 14:36:23 +01:00
Alexander Udalov
8588f96ec8
Fix inspections in kotlin.jvm.internal runtime classes
2020-03-05 14:01:29 +01:00
Alexander Udalov
3a4e540d44
Minor refactoring and style fixes in JarContentTest
...
Inline unnecessary members, remove commented code, refactor according to
the style guide, some other minor improvements
2020-03-05 02:25:00 +01:00
Jinseong Jeon
79790ca227
Avoid uses of plain "kotlin" in metadata deserialization.
...
KT-35587 Fixed
2020-03-05 02:22:36 +01:00
Vyacheslav Gerasimov
744c4c545e
Build: Make DexMethodCount task cacheable, extract print stats to task
2020-03-05 00:47:52 +03:00
Vyacheslav Gerasimov
52b88bf753
Build: Fix various libraryJarWithIr task inputs
2020-03-04 01:14:56 +03:00
Roman Artemev
c2676ded31
[JS IR] Implement KProperty runtime utils
2020-03-03 18:54:36 +03:00
Roman Artemev
536e380331
[JS IR] Fix kotlin.test framework
2020-03-03 18:54:35 +03:00
Roman Artemev
0e67c6ac7d
[JS IR] Update coroutine runtime
2020-03-03 18:54:35 +03:00
Roman Artemev
26237f8bd5
[JS IR] Implement new function references scheme
2020-03-03 18:54:34 +03:00
Vyacheslav Gerasimov
2f087fe7a2
Build: Fix kotlin-stdlib-js-ir:tryRunFullCli task inputs
2020-03-03 18:46:05 +03:00
Vyacheslav Gerasimov
a4030d3abf
Build: Make JavaExec relative path system independent
2020-03-03 16:47:55 +03:00
Vyacheslav Gerasimov
08ac7da7a6
Build: Fix input declaration for :kotlin-stdlib-js-ir:fullRuntimeSources
...
Input order was random because of unordered set
2020-03-03 16:47:55 +03:00
Vyacheslav Gerasimov
bb2cf38617
Build: Make :kotlin-stdlib-js-ir buildKLib tasks cacheable
2020-03-03 16:47:55 +03:00
Vyacheslav Gerasimov
75a3808230
Build: Use sourceMapBaseDirs in :kotlin-stdlib-js:compileKotlin2Js
...
instead of freeCompiler args to avoid snapshotting absolute paths
and fix caching
2020-03-03 14:33:57 +03:00
Ivan Gavrilovic
6d4eb9ae52
KT-36113: Make KAPT classpath snapshot deterministic
...
When snapshotting a classpath entry, sort information about types
so there is no dependency on the order of entries in jar.
Test: ClasspathAnalyzerTest
2020-03-03 14:22:57 +09:00
Ilya Kirillov
a6139f3635
Wizard: minor: fix YamlParsingError package
2020-03-01 21:32:36 +03:00
Ilya Kirillov
a9c96a7cde
Wizard: move downloading Kotlin version phase to the end
2020-03-01 19:07:51 +03:00
Ilya Kirillov
a03510e3c0
Wizard: add tags for project templates
2020-03-01 19:07:50 +03:00
Ilya Kirillov
d639816393
Wizard: use kotlinx-collections-immutable for storing IRs
2020-03-01 19:07:49 +03:00
Vyacheslav Gerasimov
05b5894ef1
Build: Use configurations property for shadowJar in :kotlin-main-kts
...
It marked as classpath and improves cache reuse between different builds
2020-02-29 16:36:02 +03:00
Vyacheslav Gerasimov
8e0f403f02
Build: normalize inputs of :kotlin-reflect:stripMetadata as classpath
2020-02-29 16:33:34 +03:00
Vyacheslav Gerasimov
6e2fb72bb6
Build: Make :kotlin-reflect:relocateCoreSources task cacheable
2020-02-29 16:33:34 +03:00
Vyacheslav Gerasimov
0ebc11270b
Build: Remove duplicated manifestAttributes call from reflectShadowJar
...
manifestAttributes call done in the result jar
2020-02-29 16:32:02 +03:00
Sergey Igushkin
f764d3a021
testCompileOnlyDependencyProcessingForMetadataCompilations -> Gradle 5+
...
This test fails with Gradle 4.9 due to a Gradle bug when Gradle is
unable to pick up task dependencies from providers nested into a file
collection. That doesn't seem feasible to fix.
2020-02-28 20:09:45 +03:00
Sergey Igushkin
b8602fa31a
Fix missing installation dependencies in Gradle integration tests
2020-02-28 20:09:45 +03:00
Ilya Matveev
f53b059410
[Gradle, tests] Fix native compiler arguments test for Windows
2020-02-28 17:50:55 +07:00
Vyacheslav Karpukhin
a01b840eab
Android Import: Search for Android SDK using public API instead of reflection
2020-02-26 19:03:48 +01:00
Abduqodiri Qurbonzoda
fe50bb4b93
KProperty and ReadOnlyProperty type parameter names #KT-16529
2020-02-26 17:34:03 +03:00
Stanislav Erokhin
74348d5ffb
Fix compile configuration for maven compiler plugins
...
Previously in kotlin-maven-noarg & kotlin-maven-serialization plugins
java was compiled before kotlin, and because of that links from java
to kotlin was unresolved.
It was fixed as prescribed by docs: https://kotlinlang.org/docs/reference/using-maven.html#compiling-kotlin-and-java-sources
2020-02-26 12:12:35 +03:00
Ilya Goncharov
ee9be61c20
[Gradle, JS] Fix propogation useCommonJs to irTarget
...
#KT-37036 fixed
2020-02-26 11:40:45 +03:00
Ilya Goncharov
7719dfca4a
[Gradle, JS] Fix timeout for debug
...
#KT-37035 fixed
2020-02-26 11:36:17 +03:00
Ilya Kirillov
870b7d234f
Wizard: refactoring do not use context directly in UI
2020-02-26 11:19:09 +03:00
Ilya Kirillov
ad39d0520a
Wizard: use first enum entry as default value for enumSetting
2020-02-26 11:19:08 +03:00
Ilya Kirillov
3967522c08
Wizard: fix Android minifyEnabled call for groovy
2020-02-26 11:19:08 +03:00
Ilya Kirillov
7e22572324
Wizard: add configuration for Android MPP target
2020-02-26 11:19:08 +03:00
Ilya Kirillov
3eca687611
Wizard: move module configurator settings to companion objects
2020-02-26 11:19:08 +03:00
Ilya Kirillov
4c62f64396
Wizard: minor, not to use reading context directly in some places
2020-02-26 11:19:08 +03:00
Ilya Kirillov
8259bf749d
Wizard: always use all plugin set in tests
2020-02-26 11:19:08 +03:00
Ilya Kirillov
7a3d730aec
Wizard: refactoring: rename contexts
...
TaskRunningContext -> WriteContext,
ValuesReadingContext -> ReadingContext
2020-02-26 11:19:08 +03:00
Ilya Kirillov
1c49b230f4
Wizard: force service to always return non-null value
2020-02-26 11:19:07 +03:00
Ilya Kirillov
05022109fc
Wizard: save some setting values in UI
...
#KT-35585 fixed
2020-02-26 11:19:07 +03:00
Ilya Kirillov
9e47d0b33c
Wizard: move Android SDK Setting to AndroidPlugin
2020-02-26 11:19:07 +03:00
Ilya Kirillov
6228fa4d3e
Wizard: remove unused function
2020-02-26 11:19:07 +03:00
Ilya Kirillov
7448b8beb0
Wizard: fix invalid android package name
...
#KT-36169 fixed
2020-02-26 11:19:07 +03:00