Ilya Chernikov
7cca1a72d3
Fix after review: add stdlib to the script compilation classpath by default
2018-04-04 16:23:56 +02:00
Ilya Chernikov
d50798c4cf
Refactor script-util context tools to simplify its usage in the new scripting
2018-04-04 16:23:56 +02:00
Ilya Chernikov
4742d0a034
Rename scripting plugins to more established scheme
2018-04-04 16:23:56 +02:00
Ilya Chernikov
00320bad8d
Implement support for additional receivers in the backend
2018-04-04 16:23:56 +02:00
Ilya Chernikov
611aff6b61
J2K: ScriptContext - convert
2018-04-04 16:23:56 +02:00
Ilya Chernikov
cf4cca3683
J2K: ScriptContext - rename
2018-04-04 16:23:56 +02:00
Ilya Chernikov
87de1dff03
Implement support for additional receivers for script in frontend
2018-04-04 16:23:56 +02:00
Ilya Chernikov
e79d3dd035
Fix scripting in the frontend after refactorings
2018-04-04 16:23:55 +02:00
Ilya Chernikov
1cb9592fcc
Change samples after adding configuration dsl
2018-04-04 16:23:55 +02:00
Ilya Chernikov
0f0934aaa2
Change jvm implementation after adding configuration dsl
2018-04-04 16:23:55 +02:00
Ilya Chernikov
1723ff658d
Refactoring heterogeneous map handling, add dsl builders
2018-04-04 16:23:55 +02:00
Ilya Chernikov
63d601e1be
Implement scripting configuration gradle plugin
2018-04-04 16:23:55 +02:00
Ilya Chernikov
d05f67127d
Move scripting configuration into compiler plugin
2018-04-04 16:23:55 +02:00
Ilya Chernikov
1514a113b8
minor: Add maven deps example template to the discovery resource folder
2018-04-04 16:23:55 +02:00
Ilya Chernikov
0c06ec9088
Implement script templates discovery in the idea plugin
2018-04-04 16:23:54 +02:00
Ilya Chernikov
d07a3f2bdd
Implement script templates discovery in the cli compiler
2018-04-04 16:23:54 +02:00
Ilya Chernikov
f496fbb625
Add new scripting libs to proguard library jars
...
so proguard do not complain for missing classes
2018-04-04 16:23:54 +02:00
Ilya Chernikov
548bf26c58
Add new scripting support to the gradle plugin
2018-04-04 16:23:54 +02:00
Ilya Chernikov
c764365da5
Add new scripting support to the compiler
2018-04-04 16:23:54 +02:00
Ilya Chernikov
3f22e28a51
Implement basic support of the new scripting in the frontend and plugin
2018-04-04 16:23:54 +02:00
Ilya Chernikov
3732422e6a
Add example scripting hosts with tests:
...
the simple scripting host and the one with maven resolving
2018-04-04 16:23:54 +02:00
Ilya Chernikov
c48a74b84a
Implement base jvm scripting infrastructure
2018-04-04 16:23:54 +02:00
Ilya Chernikov
aac7f97121
Add new experimental scripting API
2018-04-04 16:23:53 +02:00
Mikhael Bogdanov
4aec9499b5
Add @RequireKotlin(1.2.40) on interface with @JvmDefaults and its subinterfaces
2018-04-04 16:17:38 +02:00
Mikhael Bogdanov
be33a9bf3b
Update test data
2018-04-04 14:55:39 +02:00
Mikhael Bogdanov
a27d1b7a3b
Update @JvmDefault documentation
2018-04-04 14:55:39 +02:00
Natalia Selezneva
a6019cc5fb
Rearrange script definition contributors to avoid old EP appear before new EP
...
Fix highlighting of build.gradle.kts files with LivePlugin enabled
^KT-23571 Fixed
2018-04-04 12:44:04 +03:00
Dmitry Jemerov
e05b54a2b4
Fix unsupported syntax in code style settings example
2018-04-04 11:35:04 +02:00
Alexander Udalov
0439abba46
Check that kotlin.stdlib is explicitly required in module-info
...
Writing a Jigsaw-modular Kotlin program which doesn't require
kotlin.stdlib doesn't make sense because it most likely will fail at
runtime, on access to anything from the standard library. Previously, we
checked that kotlin.stdlib was in the module graph, but that's not
enough, we should also check that the source module requires it.
'-Xallow-kotlin-package' can be used to disable the error.
Add a test checking that an indirect (transitive) dependency is also OK
2018-04-03 21:50:25 +02:00
Ilya Gorbunov
7501d2ad69
Make JDK 9 required to build the project
2018-04-03 21:24:35 +02:00
Ilya Gorbunov
299d6fa772
Use default compileJava9Java task to build java9 source set
2018-04-03 21:24:34 +02:00
Ilya Gorbunov
bd4abaa8bf
Improve JDK discovery for JDK9+ on Windows
2018-04-03 21:24:07 +02:00
Alexander Udalov
828cc6dbf3
Add module-info.java for kotlin-reflect
...
The standard way of loading resources with built-ins metadata from the
current class loader no longer works in the modular mode on Java 9
because the current class loader is for module 'kotlin.reflect', but the
metadata is located in the module 'kotlin.stdlib'. On Java 9, we now use
the class loader of 'kotlin.stdlib' to load these resources.
#KT-21266 Fixed
2018-04-03 21:24:03 +02:00
Alexander Udalov
2d41c7d462
Add module-info.java for standard Kotlin libraries
...
Using the new multi-release jar feature, store compiled
module-info.class files into META-INF/versions/9 instead of the artifact
root. Hopefully, this will break fewer tools which do not support
module-info.class files because any sane tool should not do anything
with files in META-INF because before Java 9 that directory only
contained resources.
Upgrade some Maven plugins to newer versions which do not fail on
module-info.class files
#KT-21266 In Progress
2018-04-03 21:22:14 +02:00
Alexey Tsvetkov
650e97f200
Temporarily turn off source map generation in JS IC tests
...
Until IncrementalJsCompilerRunnerTestGenerated$ClassHierarchyAffected.testEnumEntryRemoved
is fixed
2018-04-03 21:11:12 +03:00
Alexey Tsvetkov
6f59b6da8e
Use daemon if available for parsing files in JPS
2018-04-03 21:11:12 +03:00
Alexey Tsvetkov
3eb968807e
Invalidate usages of removed classes before round
...
#KT-23165 fixed
2018-04-03 21:11:12 +03:00
Alexey Tsvetkov
8cd0f13f2b
Convert KotlinSourceFileCollector: simplify after conversion
2018-04-03 21:11:11 +03:00
Alexey Tsvetkov
3f36f472b3
Convert KotlinSourceFileCollector: actual conversion
2018-04-03 21:11:11 +03:00
Alexey Tsvetkov
336d63c0a3
Convert KotlinSourceFileCollector: rename file
2018-04-03 21:11:11 +03:00
Alexey Tsvetkov
bd779cb26e
Remove usages of deprecated API
2018-04-03 21:11:11 +03:00
Alexey Tsvetkov
58e4b704c6
Replace reflection with direct call
2018-04-03 21:11:11 +03:00
Alexey Tsvetkov
fa9c80e05c
Convert CompilerRunnerUtil: actual conversion
2018-04-03 21:11:11 +03:00
Alexey Tsvetkov
f27b6c0d8d
Convert CompilerRunnerUtil: rename file
2018-04-03 21:11:11 +03:00
Alexey Tsvetkov
455fe7fe61
Reformat jps-plugin module
2018-04-03 21:11:11 +03:00
Dmitry Jemerov
ecb9a39f94
Report errors when trying to build decompiled text for light class
2018-04-03 19:45:37 +02:00
Mikhael Bogdanov
08ff1de248
Update test data
2018-04-03 19:38:37 +02:00
Mikhael Bogdanov
2c56f0bfd3
Require 'jvmDefaultFlag' for default super calls
2018-04-03 19:18:19 +02:00
Mikhael Bogdanov
db59e916fb
Inline utility method
2018-04-03 19:18:18 +02:00
Mikhael Bogdanov
3f5fea05de
Write 'RequireKotlin' annotation on @JvmDefault members
2018-04-03 19:18:17 +02:00