Commit Graph

54836 Commits

Author SHA1 Message Date
pyos 08ea982688 Remove imports of javafx from Gradle build files 2019-05-20 17:31:28 +02:00
Vyacheslav Gerasimov c2a2d80d4c Build: Minor cleanup & format root build.gradle.kts 2019-05-20 15:16:22 +03:00
Vyacheslav Gerasimov 40e9f48bd0 Build: Fix cache redirector configuration for all projects
Since we forcing project evaluation in root build script cache redirector
should be configured before we do so, otherwise `afterEvaluate` is not called
2019-05-20 15:16:22 +03:00
Vadim Brilyantov d5be5bd96e Fix obsolete compiler classpath in SourceSectionsTest 2019-05-20 14:23:34 +03:00
Igor Yakovlev 611b6f36ce Remove redundant import from QuickFixMultiFileTestGenerated 2019-05-20 12:50:09 +03:00
Mikhail Glukhikh b68e536e2a Add note about inspection highlighting range 2019-05-20 12:31:58 +03:00
KilianCallebaut 3451c60f93 Suggest to replace manual range with explicit indices or iterable
#KT-14344 Fixed
2019-05-20 12:24:52 +03:00
Alexander Udalov 8cda5cb849 Regenerate tests 2019-05-20 11:18:54 +02:00
Toshiaki Kameyama 2c424afefa Elvis -> if intention: don't produce boilerplate code for return/break/continue/throw in RHS
#KT-14369 Fixed
2019-05-20 11:15:41 +03:00
Natalia Selezneva 160de2dbe2 Do not load script dependencies if all script templates aren't loaded 2019-05-20 10:41:15 +03:00
Natalia Selezneva 58eca451c4 Sdk passed in script dependencies should be used during script resolve
PsiElementFinder doesn't find classes from sdks that aren't Project SDK, so when Script Sdk differs from it we need to additionally search classes in script sdk using KotlinScriptDependenciesClassFinder (as we do for classes from ScriptDependencies.classpath)

^KT-31152 Fixed
2019-05-20 10:41:15 +03:00
Natalia Selezneva 5bc7b61497 Refactoring: move ScriptBinariesScopeCache to ScriptDependenciesCache 2019-05-20 10:41:14 +03:00
Natalia Selezneva c2717b3006 Filter out all non JavaSdk from script sdks 2019-05-20 10:41:14 +03:00
Natalia Selezneva 144ff8ae91 Refactoring: move method that find sdk for script to ScriptDependenciesManager 2019-05-20 10:41:14 +03:00
Natalia Selezneva 2f5deefd0a Scripts refactoring: move all scripts caches to ScriptDependenciesCache
Introduce base class for caches based on SLRUMap (with write lock) to avoid exceptions with concurrent map modifications
2019-05-20 10:41:13 +03:00
Natalia Selezneva 1ef4d987d1 Add debug log for script dependencies loading process 2019-05-20 10:41:13 +03:00
Sergey Rostov 6388cdc3b7 Gradle, js, npm: skip KotlinProjectExtensions from different class loaders 2019-05-20 09:55:37 +03:00
Sergey Rostov 9a90627b32 Gradle, js: fix supporting sub targets DSL in build.gradle.kts 2019-05-20 09:55:36 +03:00
Sergey Rostov 3a9f3525f1 Gradle, js, npm: skip old Kotlin2JsPlugin compilations 2019-05-20 09:55:36 +03:00
Sergey Rostov 7589d89a59 Gradle, js: create run task only when project evaluated
As it may be created after js target configuration by java application plugin
2019-05-20 09:55:36 +03:00
Sergey Rostov 15e0d6af92 Gradle, js, npm: fix case when resolver visits dependents projects first 2019-05-20 09:55:36 +03:00
Sergey Rostov 52f01ef43f Gradle, js: implement NpmSimpleLinker for cases when there are no npm dependencies 2019-05-20 09:55:36 +03:00
Sergey Rostov 75708dad87 Gradle, js: fix task input annotations 2019-05-20 09:55:36 +03:00
Sergey Rostov 48fd3b6b87 Gradle, tests: don't use gradle testing internals by default 2019-05-20 09:55:35 +03:00
Ting-Yuan Huang 75646f97a4 MoveCompanionObjectFields: copy constants into interfaces
Fields having const attribute in companion objects are observable in
Java and should be copied to outer interfaces.
2019-05-20 08:43:00 +02:00
Toshiaki Kameyama 6ff776ba65 Convert property to function: fix incorrectly conversion when property has explicit generic type
#KT-29192 Fixed
2019-05-19 14:57:25 +07:00
Toshiaki Kameyama 354f8f0bf1 Redundant 'suspend' modifier inspection: don't report when function has suspend operator invoke
#KT-25465 Fixed
2019-05-18 11:54:57 +03:00
Sergey Rostov cf5577dfa6 Gradle, tests: fix cleanAllTests task name 2019-05-18 08:15:43 +03:00
Sergey Rostov cec2e8c61a Gradle, js: update npm packages versions 2019-05-18 08:15:42 +03:00
Sergey Rostov 775ed2f9e5 Gradle: introduce "target" DSL function for single platform plugins 2019-05-18 08:15:42 +03:00
Sergey Rostov b8fd4f56bb Gradle, js: introduce commonJs() dsl function 2019-05-18 08:15:42 +03:00
Sergey Rostov 83042afd5c Gradle, js, webpack: report progress
#KT-31013
2019-05-18 08:15:41 +03:00
Sergey Rostov 77dd806742 Gradle, js, yarn: split into workspaces and simple implementations
#KT-31018
	#KT-31017
2019-05-18 08:15:41 +03:00
Sergey Rostov fab879bf33 Gradle, js, npm: store imported packages as yarn workspaces
#KT-30530
2019-05-18 08:15:41 +03:00
Sergey Rostov 64f997daa4 Gradle, tests: fix type in "prepend" 2019-05-18 08:15:40 +03:00
Sergey Rostov 68cb28d76f Gradle, js, karma: source maps support
#KT-31478
	#KT-31011
	#KT-30573
2019-05-18 08:15:40 +03:00
Sergey Rostov 9a6a2e14a5 Gradle, js, tests: don't add prefix if platform and/or sub target name is null 2019-05-18 08:15:39 +03:00
Sergey Rostov 5d8f2acf5f Gradle, js: create npm packages per compilation
#KT-30530
2019-05-18 08:15:39 +03:00
Sergey Rostov b195d18d2d Gradle, js: resolve npm dependencies without task only during IDEA import
#KT-30530
2019-05-18 08:15:39 +03:00
Sergey Rostov 09e81ddd21 Gradle, js: create one npmResolve per build (share between subprojects)
#KT-30530
2019-05-18 08:15:38 +03:00
Sergey Rostov 8166cfb054 Gradle, js, npm: remove hoisted gradle node modules. Split results collection from shared cache.
#KT-30530
2019-05-18 08:15:38 +03:00
Sergey Rostov eb3c701040 Gradle, js, npm: resolver between projects
#KT-30530
2019-05-18 08:15:38 +03:00
Sergey Rostov 5cfe117fd7 Gradle, js: use project.whenEvaluated instead of project.afterEvaluate 2019-05-18 08:15:37 +03:00
Sergey Rostov 2d51e2bca5 Gradle, js, dsl: use ConfigureUtil.configure for Groovy compatibility 2019-05-18 08:15:37 +03:00
Sergey Rostov 04a5b5a367 Gradle, js, krama: use web pack config directory
#KT-31011
2019-05-18 08:15:37 +03:00
Sergey Rostov c2a6654194 Gradle, js: don't use any subtarget by default 2019-05-18 08:15:36 +03:00
Sergey Rostov 2a2f59ae1c Gradle, js, run: fix run dependencies on browserRun and nodeRun 2019-05-18 08:15:36 +03:00
Sergey Rostov 156d50646d Gradle, js, test: add basic @Input for test frameworks settings 2019-05-18 08:15:36 +03:00
Sergey Rostov e435b9352a Gradle, js: aggregate jsTest task should work the same way as all tests aggregator
E.g: individual test tasks should not fail build, aggregate reports should be created.
Also this task should not be included in check (as all tests should be already executed
from the all tests aggregated task).
2019-05-18 08:15:35 +03:00
Sergey Rostov 26c2afd8d5 Gradle, js, karma: show output as progress 2019-05-18 08:15:35 +03:00