Commit Graph

1144 Commits

Author SHA1 Message Date
Alexander Udalov 53e90b6d40 Replace dependencies on kotlin-reflect with kotlin-reflect-api
See the previous commit for information on the kotlin-reflect vs
kotlin-reflect-api distinction.

Add kotlin-reflect as an explicit runtime dependency of most of the test
configurations because even though they all depend on tests-common, the
runtime dependency on kotlin-reflect is not exported from tests-common
to other modules because the projectTests dependency is not transitive.

Original commit: aca74cef0e
2017-11-28 12:35:49 +01:00
Alexey Tsvetkov e06f002f45 Rebuild when language/api version is changed (JPS)
#KT-20757 fixed

Original commit: 913a997f24
2017-11-23 14:46:23 +03:00
Leonid Startsev 4266515228 More entry points for compiler plugins
* In Kotlin/JS JPS compilation
* In kotlin-common CLI compiler
* In kotlin-common gradle build

Original commit: d6e5551237
2017-11-23 12:12:01 +03:00
Alexey Tsvetkov 272c198ff6 Avoid deserializing .kotlin_module as class proto
#KT-20184 fixed

Original commit: 18261838b6
2017-11-16 14:47:59 +03:00
Nikolay Krasko c09c919763 Report rebuild reason in rebuild function
Original commit: 643f771c24
2017-11-15 16:12:38 +03:00
Alexander Udalov cf3ad8689d Split core into descriptors, descriptors.jvm, deserialization, descriptors.runtime
Original commit: 02981038f3
2017-11-10 18:58:31 +01:00
Alexey Sedunov 70778b1062 Misc: Fix deserialization of CommonCompilerArguments.freeArgs
#KT-20938 Fixed

Original commit: cfad305826
2017-11-07 19:25:02 +03:00
Alexander Udalov cfbb0f1b00 Move compiler/tests-common/{src -> tests}, adjust dependencies
Original commit: 33549362cb
2017-10-31 07:36:45 +01:00
Alexander Udalov 45102d8ded Rename module ':compiler.tests-common' -> ':compiler:tests-common'
Original commit: c2276e2ccb
2017-10-31 07:36:45 +01:00
Alexey Sedunov c8f8e6829e Gradle: Import test output path for JavaScript modules
Original commit: 3319fdba6d
2017-10-26 20:59:40 +03:00
Alexey Sedunov 5ec73d6fbd Misc: Protect freeArgs with FreezableVar
Original commit: 87f3d24f9b
2017-10-24 15:43:51 +03:00
Alexey Andreev 1079d74422 Support generation of relative path in JS source maps in JPS builder
See KT-20820

Original commit: 2fbecfdd9c
2017-10-23 17:19:50 +03:00
Anton Bannykh 19aa785e60 JPS JS: fix friend path detection in projects imported from Gradle (KT-18963 fixed)
Original commit: b2e53644a5
2017-10-20 19:16:14 +03:00
Nikolay Krasko edb34f3f5f Request path from URI before construction file
Original commit: bc6f2f6659
2017-10-12 12:00:35 +03:00
Nikolay Krasko 0b9884d4bf Fix tests failure on Windows agents because of wrong slashes
Original commit: 3c0329b458
2017-10-12 12:00:35 +03:00
Alexey Andreev 2cf01f60b3 JS: generate paths in source maps relative to .map file location
See KT-19818

Original commit: 9008791a54
2017-10-06 15:24:25 +03:00
Alexey Andreev d42ddff160 JS: rename -source-map-source-roots to -source-map-base-dirs
See KT-19906

Original commit: 21e91c4052
2017-10-03 14:26:37 +03:00
Alexey Sedunov b1ec19281d Kotlin Facet: Fix deserialization of "implements" dependency
Original commit: ea99a2b537
2017-10-02 18:14:04 +03:00
Denis Zharkov 3b83f3c98f Update lookupTracker testData
Just the order of lookups has been changed

Original commit: b77cc54122
2017-09-28 14:01:30 +03:00
Alexey Tsvetkov 060686e22e Change test data so IC and non IC warnings count match
When IC is on and new Kotlin class is referencing
new Java class, new Kotlin file is compiled twice,
because JPS thinks new Kotlin class is affected by
new Java class (see https://youtrack.jetbrains.com/issue/KT-20318).

This does not happen when IC is off, and KotlinBuilder
requests chunk rebuild (see previous commit).

I decided to remove the reference, because the issue
is now known, and the reference is non critical for the test.

Original commit: 1c7b8ec938
2017-09-26 16:35:24 +03:00
Alexey Tsvetkov 6d868d3d67 Request CHUNK_REBUILD when IC is off and there are dirty Kotlin files
Otherwise unexpected compile error might happen,
when there are Groovy files, but they are not dirty,
so Groovy builder does not generate source stubs,
and Kotlin builder is filtering out output directory
from classpath (because it may contain outdated Java classes).

Previously the issue was not detected,
because it was not possible to turn off the IC completely (in JPS),
only switch to the legacy IC.

    #KT-20138

Original commit: 7a5e0e1107
2017-09-26 16:35:24 +03:00
Ilya Chernikov 345ae1382d Fix embeddable compiler dependencies, fix dist task, use runtimeJar...
dependencies where appropriate, some helpers refactoring

Original commit: d61695be55
2017-09-20 11:52:00 +02:00
Ilya Chernikov 8be31c1c27 Comment out obsolete kannotator tests
(cherry picked from commit b318d97)

Original commit: 4073280b50
2017-09-20 11:51:55 +02:00
Ilya Chernikov 3657e07cb7 Add missing artifact, fix some deps and publishing
Original commit: 46884bec84
2017-09-20 11:51:38 +02:00
Ilya Chernikov ec36f5761f Fix tests in the new build infrastructure
Original commit: d039d191f2
2017-09-19 23:58:30 +02:00
Ilya Chernikov b0fc11f480 Clean most of the shared source roots conflicts
Original commit: a61facf3d1
2017-09-19 23:58:29 +02:00
Alexander Podkhalyuzin e3deaa5778 Clean idea files generated on the gradle import, add them to .gitignore
Original commit: 3f8170d369
2017-09-19 23:58:27 +02:00
Ilya Chernikov 478c623bd2 Continue switching projects to improved dsl: sourceSets and test running
Original commit: deda50dbbb
2017-09-19 21:37:26 +02:00
Ilya Chernikov 5fc83f7893 Fix project structure after rebase on master
Original commit: 336e24b837
2017-09-19 21:37:25 +02:00
Ilya Chernikov 5a8250a36d Refactor: project renaming, using improved build dsl
Original commit: b6c255cea5
2017-09-19 21:37:22 +02:00
Ilya Chernikov c0563313a4 Refactoring - renaming projects, applying sourceSets DSL
Original commit: 96d5e0bb21
2017-09-19 21:37:18 +02:00
Ilya Chernikov 4e5b37e265 Refactor and clean preloader project
Original commit: 513ab08edd
2017-09-19 21:37:16 +02:00
Ilya Chernikov ec0fbbe632 Implement Gradle Kotlin DSL build
Original commit: 61dfb75e0e
2017-09-19 21:37:06 +02:00
Alexey Sedunov 17601aacb5 Kotlin Facet: Support "implements" relation between modules
#KT-17593 Fixed

Original commit: bdad58cec6
2017-09-08 15:38:14 +03:00
Nikolay Krasko 8a6ed0dac4 Force remove JpsModel in BaseKotlinJpsBuildTestCase tests
Original commit: 6fd3ce07b3
2017-09-08 12:56:28 +03:00
Alexey Sedunov d39c78f5af Kotlin Facet: Avoid reparse of additional arguments during analysis
Original commit: 78b1fb2e93
2017-09-07 17:39:18 +03:00
Alexey Tsvetkov ed553b80e9 Add test where unused file is removed
Original commit: cb1ffdccd7
2017-08-29 04:28:10 +03:00
Alexey Tsvetkov 88798072a6 Fix typo in test name
Original commit: cf72b14b34
2017-08-29 04:28:08 +03:00
Alexey Tsvetkov c6608a057e Make test case more useful
Original commit: 141c889a84
2017-08-29 04:28:08 +03:00
Alexey Tsvetkov 9aef8a5588 Add JS specific build logs to inline properties IC tests
Unlike the JVM target platform, the JS back-end does
not track getters' and setters' usages separately,
so when either accessor of some property is changed,
all usages of that property will be rebuilt.

Original commit: 5f9bad5905
2017-08-29 04:28:07 +03:00
Alexey Tsvetkov 92b567139c Refactor inline properties tests
Original commit: 73b63bb343
2017-08-29 04:28:07 +03:00
Alexey Tsvetkov 30f808400b Mock constant search in JPS tests
Original commit: b73d5cbe1f
2017-08-29 04:28:06 +03:00
Alexey Tsvetkov 3021bce5d1 Move JVM specific IC tests to separate dir
Original commit: 2312013c41
2017-08-29 04:28:06 +03:00
Alexey Tsvetkov 9189d7e51f Update lookup tracker test "classifierMembers"
Before the change, the initial build has been failing,
so lookups from deserialized descriptors were not tested.

Original commit: 556c43ae00
2017-08-29 04:28:06 +03:00
Alexey Tsvetkov b72f00260b Avoid processing JS IC output when compilation failed
Original commit: 4a591bf5b6
2017-08-29 04:28:05 +03:00
Alexey Tsvetkov 4fa346877c Rename IncrementalCacheImpl->IncrementalJvmCache
Original commit: 919daefb0e
2017-08-29 04:28:04 +03:00
Alexey Tsvetkov 32e44dfe91 Fix searching serialized classes package contains multiple fragments
Original commit: 1c4ada2008
2017-08-29 04:28:03 +03:00
Alexey Tsvetkov 602929d142 Move JVM specific IC tests with class hierarchy changes
Original commit: 0a5fe3ef7c
2017-08-29 02:24:38 +03:00
Alexey Tsvetkov 45b383baa3 Avoid using JVM only APIs in IC tests to reuse with JS
Original commit: e16c5ddb97
2017-08-29 02:24:38 +03:00
Alexey Tsvetkov f81f5421a9 Move multi-module IC tests to separate dir
At the moment they are used only with JPS

Original commit: 23bc907d3f
2017-08-29 02:24:37 +03:00