Ilya Kirillov
b9226ce54f
Wizard: automatically determine Kotlin version based on Kotlin plugin version
...
For snapshot plugin just take the latest eap or stable version
2020-01-24 11:12:40 +03:00
Ilya Kirillov
5392ff128f
Wizard: move "validation error" string from message to title
2020-01-24 11:12:36 +03:00
Ilya Kirillov
7527e4b02d
Wizard: remove duplicated string validator
2020-01-24 11:12:09 +03:00
Ilya Kirillov
b33ae61508
Wizard: add validators for POM data
2020-01-24 11:12:08 +03:00
Ilya Kirillov
7df1b54c82
Wizard: Show message when module has no configurable settings
2020-01-24 11:12:06 +03:00
Ilya Kirillov
923f646b3d
Wizard: Move test framework settings to module configurators
2020-01-24 11:12:04 +03:00
Ilya Kirillov
ba62ba39f1
Wizard: Move module templates to modules: separate SourcetModuleIR to MultiplatformModuleIR & SourcesetIR
2020-01-24 11:12:03 +03:00
Ilya Kirillov
0ebcf482ca
Wizard: move module templates to modules
2020-01-24 11:12:02 +03:00
Ilya Kirillov
479f6a4402
Wizard: add kotlin native console application template
2020-01-24 11:11:59 +03:00
Ilya Kirillov
9e96cd4507
Wizard: do not print binaries specification for all native targets
...
#KT-35719 fixed
2020-01-24 11:11:58 +03:00
Ilya Kirillov
bf93d767b3
Wizard: sort & distinct imports in Gradle build files
2020-01-24 11:11:57 +03:00
Ilya Kirillov
dd882c2717
Wizard: move fqName to import in NativeTargetConfigurator
2020-01-24 11:11:56 +03:00
Ilya Kirillov
97416e651e
Wizard: add irs for build files from targets
2020-01-24 11:11:55 +03:00
Ilya Kirillov
2a83111fa3
Wizard: do not add empty gradle project to settings.gradle
2020-01-24 11:11:54 +03:00
Ilya Kirillov
afc320ac8d
Wizard: use settings.gradle instead of .kts for Groovy DSL Gradle projects
...
#KT-35694 fixed
2020-01-24 11:11:53 +03:00
Ilya Kirillov
4f4106a17e
Wizard: print repositories for Maven
...
#KT-35715 fixed
2020-01-24 11:11:52 +03:00
Ilya Kirillov
bced2655e8
Wizard: retrieve repositories from artifacts
2020-01-24 11:11:51 +03:00
Ilya Kirillov
baedd2a253
Wizard: correctly add Kotlin dependencies to singleplatform modules with gradle dsl build system
...
#KT-35695 fixed
2020-01-24 11:11:47 +03:00
Ilya Kirillov
796848b5a9
Wizard: fix adding invalid dependencies for maven build files
...
#KT-35711 fixed
2020-01-24 11:11:45 +03:00
Ilya Kirillov
029dad4d9e
Wizard: allow dashes for module names
...
#KT-35584 fixed
2020-01-24 11:11:40 +03:00
Ilya Kirillov
89199e5cc0
Wizard: fix incorrect ktor repository
...
#KT-35718 fixed
2020-01-24 11:11:34 +03:00
Ilya Kirillov
2df499b12d
Wizard: remove redundant return in native target configuration
...
#KT-35720 fixed
2020-01-24 11:11:33 +03:00
Ilya Kirillov
bfe3b58264
Wizard: fix swapped artifactId and groupId fields titles
...
#KT-35690 fixed
2020-01-24 11:11:32 +03:00
Abduqodiri Qurbonzoda
e89893b6fd
Optimize ArrayDeque tests run time
2020-01-24 05:52:18 +03:00
Ilya Gorbunov
8733d5f9ed
ArrayDeque: avoid triggering JDK 1.6 bug in tests
...
Use System.arraycopy instead of Arrays.copyOfRange to
avoid triggering JDK-7174363 bug in copyOfRange.
Fix package of ArrayDequeTest
2020-01-24 01:39:48 +03:00
Andrey Uskov
beb3165839
Added FUS extensions and new metrics for reporting statistics from gradle
2020-01-23 20:47:21 +03:00
Andrey Uskov
bac0309a9b
Added tests to gradle statistics reporter
2020-01-23 20:47:20 +03:00
Andrey Uskov
33d89e15b5
Metric description and anonymization rules added
...
Added metrics and their anonymization rules added. Persisted gradle
statistical information will not contain any sensitive information.
#KT-33404 Fixed
2020-01-23 20:47:19 +03:00
Andrey Uskov
763e02b3e8
Collecting performance information in Gradle plugin supported
...
The build performance information is collected during the build
when the Kotlin Gradle plugin is applied. Only hashed values are
saved if they may contain sensitive information. Numeric metrics
obtained on the basis of user's project are saved with random seed.
Persisted information is saved in gradleUserHomeDir.
#KT-33404 Fixed
2020-01-23 20:47:19 +03:00
Ilya Gorbunov
76759d3a5f
Drop compatibility stub for experimental unsigned API from 1.3.0
2020-01-23 19:38:02 +03:00
Ilya Gorbunov
8f37ace9ee
Finally drop deprecated mod functions from numeric types
...
#KT-26654
2020-01-23 19:28:22 +03:00
Roman Golyshev
a2b2c47b51
KT-34795 Use maven(...) instead of maven { setUrl(...) } for gradle scripts generation
...
- Use new syntax in tests, but not in actual gradle files
- Reuse public `toKotlinRepositorySnippet` instead of private one
- ^KT-34795 Fixed
2020-01-23 13:45:16 +03:00
Abduqodiri Qurbonzoda
1203df7405
Deprecate floating point to integral types lesser than Int #KT-30360
2020-01-22 23:27:35 +03:00
Abduqodiri Qurbonzoda
e459542e6f
Add removeFirst(OrNull) and removeLast(OrNull) methods to MutableList
2020-01-22 23:22:28 +03:00
Abduqodiri Qurbonzoda
b6849efd47
Common ArrayDeque
2020-01-22 23:22:21 +03:00
Alexander Udalov
3ca0f8a569
Fix incorrect message for new nullability assertion exception in 1.4
...
#KT-36026 Fixed
2020-01-22 14:41:20 +01:00
Ilya Matveev
2c66c3b0b6
Gradle, native: Allow setting destination directory for binaries
...
Issue #KT-29395 fixed
2020-01-22 17:29:32 +07:00
Ilya Matveev
df46dfc63d
Gradle, native: Don't pass to compiler missing klib files
...
We don't compile a klib if there are no sources for it (NO-SOURCE
checks). So, we need to take this fact into account and don't
pass such libraries to compiler in dependent modules. See also:
GH-2617 in the K/N repo.
This patch checks that a klib file exists before passing it to the
compiler.
2020-01-22 17:29:31 +07:00
Ilya Matveev
ce45df2c96
Gradle, tests: Skip building in native binaries test for Groovy DSL
...
This test is one of the most time-consuming tests because
it builds a lot of final native binaries. Moreover, it exists
in two versions: for Groovy DSL and for Kotlin DSL. The only
difference between these versions is build script DSL.
This patch disables project building for the Groovy DSL version to
reduce total test execution time. Now this test only checks that
project configuration is successful. But it's enough to detect DSL
problems.
2020-01-22 17:29:30 +07:00
Ilya Matveev
01622f069e
Gradle, native: Support exporting dependencies for static and shared libs
...
Issue #KT-35352 fixed
2020-01-22 17:29:30 +07:00
Alexander Udalov
e34a207725
Implement KTypeProjection.toString
...
The implementation is checked by tests on typeOf.
#KT-30071 Fixed
2020-01-21 19:34:01 +01:00
Ilya Chernikov
75441386e3
Use scripting cache earlier in the pipeline:
...
before initializing compiler and processing callbacks
2020-01-21 17:42:48 +01:00
Ilya Chernikov
c7d9eaed40
Speed up REPL package member declaration provider
...
about 10-15% on specific test
also preparing test infrastructure for it
2020-01-21 17:42:48 +01:00
Ilya Chernikov
1b65ec75ad
Immplement default cache in main-kts
2020-01-21 17:42:48 +01:00
Ilya Chernikov
a4752087db
Get rid of kotlinx.coroutines usage in saved script runner
...
to reduce dpendencies for the save dscipt running
2020-01-21 17:42:48 +01:00
Ilya Chernikov
5f15cacb1b
Fix ivy mapping to the maven repos in main-kts
2020-01-21 17:42:48 +01:00
Ilya Chernikov
d15d62a338
Check REPL snippet syntax before calling analysis
...
restores the behaviour of the GenericRepl implementation and fixes
issues then invalid code is being compiled
#KT-34888 fixed
2020-01-21 17:42:48 +01:00
Tsvetan
5f0e3018db
KT-27856 Add contracts to Timing.kt lambdas ( #1987 )
2020-01-21 15:42:21 +03:00
Yaroslav Chernyshev
401baa35ab
[Gradle, Native] Implement custom name for generated framework for XCode
2020-01-21 10:23:53 +03:00
Ilya Gorbunov
1336da8453
Rename Clock to TimeSource, ClockMark to TimeMark
...
Step 2: rename classes and interfaces.
Provide deprecated typealiases to smooth migration.
2020-01-21 03:28:35 +03:00