Alexander Udalov
7a25af0f2f
Fix NPE caused by KotlinCompileMojoBase if no "Xcoroutines" value is passed
...
NPE was happening in CLICompiler.chooseCoroutinesApplicabilityLevel
2017-04-17 18:40:35 +03:00
Zalim Bashorov
9783a31779
Remove kotlin-reflect.jar dependency from util module and move reflectionUtil.kt closer to "clients"
...
Main goal is get rid of kotlin-reflect.jar from modules what required for minimal compiler.jar which can compile Kotlin only to JS to make it smaller.
2017-04-17 18:18:38 +03:00
Alexander Udalov
027b83a252
Minor, pass coroutines state explicitly in maven plugin
2017-04-17 15:51:43 +03:00
Ilya Gorbunov
723642c9d4
binary-compatibility-validator: depend on required artifacts to ensure they are built.
...
Read dumped declarations lazily in order not to fail on class initialization.
2017-04-17 15:17:02 +03:00
Ilya Gorbunov
94895c4e4d
Clean warnings in binary-compatibility-validator cases
2017-04-17 14:50:07 +03:00
Alexander Udalov
ae1fb16fe8
Fix compilation of kotlin-gradle-plugin
2017-04-17 11:51:08 +03:00
Alexander Udalov
10f2e9d33a
Revert usages of -X arguments to old form in some places
...
We use the old compiler in Gradle build and in GradleFacetImportTest, so
some changes in f4b6db4 should not have been made yet
2017-04-17 11:33:58 +03:00
Alexander Udalov
f4b6db4dc0
Change format of -X arguments to require value after '='
...
Report a warning when an argument is passed in the old form (with the
whitespace)
#KT-17264 Fixed
2017-04-14 20:07:54 +03:00
Sergey Mashkov
a22ed0f7c0
Maven: minor: fix comment
2017-04-14 13:27:08 +03:00
Sergey Mashkov
2521dacc25
Maven: KT-17093 Import from maven: please provide a special tag for coroutine option
2017-04-14 13:27:06 +03:00
Sergey Mashkov
5010047b1b
KT-16283 Maven compiler plugin warns, "Source root doesn't exist"
2017-04-14 13:27:05 +03:00
Sergey Mashkov
40a5e646c6
KT-10028 Support parallel builds in maven
...
mark all the mojos as not thread safe so Maven should never run them in parallel
2017-04-14 13:27:05 +03:00
Sergey Mashkov
307fdd1024
KT-16762 Maven: JS compiler option main is missing
2017-04-14 13:27:04 +03:00
Sergey Mashkov
6de0d79a78
KT-16743 Update configuration options in Kotlin Maven plugin
...
deprecate parameters module and testModule
2017-04-14 13:27:04 +03:00
Sergey Mashkov
de35863b57
KT-16743 Update configuration options in Kotlin Maven plugin
...
add javaParameters configuration parameter
2017-04-14 13:27:03 +03:00
Sergey Mashkov
e6b729d38b
KT-16743 Update configuration options in Kotlin Maven plugin
...
deprecate parameters module and testModule
2017-04-14 13:27:02 +03:00
Alexey Tsvetkov
c41818b6a7
Minor: use JDK_18 instead of JAVA_HOME to run Maven IC tests
2017-04-13 21:53:28 +03:00
Alexey Tsvetkov
753c99a377
Wrap getDaemonConnection in try-catch
...
Just in case it would throw one day
2017-04-13 21:53:28 +03:00
Alexey Tsvetkov
6b315259d3
Fix "Unexpected message" from daemon when CompilerMessageLocation is null
...
Recently the CompilerMessageLocation.NO_LOCATION was replaced with a null value.
This caused daemon clients to report "Unexpected message" for compiler messages without location.
2017-04-13 21:53:28 +03:00
Alexey Tsvetkov
e160931ec5
Delete daemon client file when Gradle process stops
...
#KT-17177 fixed
2017-04-13 21:53:28 +03:00
Alexey Tsvetkov
34a8896ad4
Minor: rename test KotlinDaemonAdvaced->KotlinDaemonIT
2017-04-13 21:53:28 +03:00
Ilya Chernikov
aaeb53fb8b
Fix compiler client test after introducing nullable CompilerMessageLocation
2017-04-12 11:51:02 +02:00
Alexander Udalov
861d9a1620
Use null instead of CompilerMessageLocation.NO_LOCATION in MessageCollector
2017-04-11 12:08:31 +03:00
Yan Zhulanow
3ee65ac499
Kapt: Support specifying javac options (KT-17245)
2017-04-10 22:48:17 +03:00
Sergey Igushkin
8cdb08cbfe
Fixed duplicated kapt options caused by multiple call to args setup
...
Separated kapt args from other plugin options.
Issues: #KT-16965 Fixed
Fix indentation
2017-04-10 20:59:23 +03:00
Sergey Igushkin
ea3adb0629
Implemented resolving the compiler jar using the class loader
...
Added resolving the compiler jar using the class loader urls as the
first step with the fallback to the original resolution method. Also
helps if the compiler is not present in the classpath dependencies.
Issues: #KT-16580 Fixed
Changed to getting plugin version from the applied plugin instead of
the plugin JAR name.
Removed unnecessary working with version of AbstractKotlinPlugin.
2017-04-10 20:55:19 +03:00
Sergey Igushkin
bda59e58d5
Filling in and reverting annotationProcessor
...
Added reverting processor path back.
Appending processor path instead of setting it.
Issues: #KT-17255 Fixed
(cherry picked from commit 843844b)
Added a test checking that -processorpath is set for all Gradle versions
2017-04-10 20:50:34 +03:00
Sergey Igushkin
64278a06cc
Refactoring in AnnotationProcessingManager.kt.
2017-04-10 20:45:03 +03:00
Sergey Igushkin
80daae90e3
Partial fix for the processor path not being set up properly.
...
Issues: #KT-17255
2017-04-10 20:44:12 +03:00
Ilya Gorbunov
afba967fcf
Use kotlin-stdlib.jar instead of kotlin-runtime.jar as runtime during build
2017-04-10 19:46:06 +03:00
Dmitry Jemerov
406714a1f4
Remove warning for running the compiler under Java 6/7
...
Now the compiler won't even start, so no need to check this manually.
2017-04-10 17:30:03 +02:00
Alexey Tsvetkov
0a42a1c104
Minor: fix maven IC tests with custom local repository
2017-04-08 21:14:49 +03:00
Ilya Gorbunov
e7dc7ec005
Rebuild sources for kotlin-daemon-client and compiler-client-embeddable in maven build
...
Do not build these sources in ant.
Do not require them as artifact dependencies.
2017-04-08 19:07:54 +03:00
Ilya Gorbunov
5aabcb6ea3
Update build instructions in ReadMe to include gradle build step.
...
Also update links and overall readme structure.
2017-04-08 08:37:12 +03:00
Ilya Gorbunov
f5647fb27f
Delete temporary proguard configuration for gradle, change the primary one.
2017-04-08 08:32:05 +03:00
Ilya Gorbunov
337fd4e180
Drop poms that are no longer required. Drop separate unit test modules for stdlib js.
2017-04-08 08:28:50 +03:00
Anton Bannykh
93f11a6da3
Update HtmlUnit driver to version 2.24; run tests using JDK 1.8
...
The old version had very limited TypedArray support, which lead to
browser-example crashes.
The new version of HtmlUnit needs JDK 1.8 to run.
2017-04-07 18:52:56 +03:00
Anton Bannykh
7287645937
JS: fix AMD module integration tests
2017-04-06 21:35:03 +03:00
Ilya Gorbunov
02293dab9e
Add public api dumps for kotlin-reflect and kotlin-stdlib-jre7/8
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
97d1ffb036
Do not build modules with maven which are built with gradle.
...
kotlin-maven-plugin-test:
Remove dependency on kotlin-test-parent that is no longer published and required.
Add dependency on kotlin-runtime as it's no longer coming transitively from kotlin-script-runtime.
Change kotlin version test to reflect manifest implementation title changes.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
3db1613167
Setup dist task to assemble libs for compiler distribution.
...
Produce special stdlib artifact with annotations for dist.
Put js outputs to dist, they're required for JS backend tests.
Use kotlin-compiler for maven, which has all required dependencies bundled.
Clean local directory repository on clean.
Change paths in tests to compiled artifacts.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
0b2cadc638
Provide a method for common publishing configuration.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
92ef26606b
Refactor build to make manifest specification less error-prone.
...
Use legacy implementation title in manifest of JS stdlib for now.
Change the way common jvm project configurations is applied.
Add missing artifacts to common libraries.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
026a76e98c
Assemble protobuf-lite with gradle, and use it in kotlin-reflect.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
d1d62d557d
Create task to run kotlin scripts and use it to strip metadata.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
c2aa906d77
Build reflection classes with gradle: all from main sourceSet
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
f619dbe631
Build and package reflection with gradle
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
4645fc4b7b
Build reflection classes with gradle
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
7a6621cc85
Migrate stdlib generator to gradle and include it to the main project
...
Use latest released kotlin compiler and stdlib to build it.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
e090a44b71
Migrate binary-compatibility-validator tests to gradle.
2017-04-06 20:32:37 +03:00