Alexey Tsvetkov
fd9e42a233
Do not print OUTPUT message as warning in Maven
...
Before the change Maven + IC had been reporting OUTPUT
messages as warnings since OUTPUT was removed
from CompilerMessageSeverity.VERBOSE
2017-05-26 15:16:41 +03:00
baratynskiy
09e4ea55c7
kotlin-maven-plugin: add tools.jar dependency if -Xuse-javac is specified
2017-05-17 17:48:47 +03:00
Sergey Mashkov
fd0578b564
KT-10028 Support parallel builds in maven
...
Mark mojo's as thread safe as users confirmed that all related errors
seem to be fixed
2017-05-15 12:55:33 +03:00
Anton Bannykh
2e9a59819a
JS: support internal visibility from friend modules
...
Friend modules should be provided using the -Xfriend-modules flag
in the same format as -libraries. No manual configuration required for
JPS, Gradle and Maven plugins.
Friend modules could be switched off using the -Xfriend-modules-disabled
flag. Doing that will
* prevent internal declarations from being exported,
* values provided by -Xfriend-modules ignored,
* raise a compilation error on attemps to use internal declarations from other modules
Fixes #KT-15135 and #KT-16568.
2017-05-04 21:44:17 +03:00
Alexander Udalov
fcf44af294
Change how kotlinc and tools display their version
...
- Display the Kotlin version in kotlin-gradle-plugin. This is needed
because if "-version" is specified in compiler arguments, the "info"
level of the message printed by the compiler in CLICompiler prevents
it from being displayed by default (unless "--debug" is passed to
Gradle).
- Display the version of JRE the compiler is running on. This will be
helpful to diagnose Java 9 related issues in the future.
- In CLI, also display the executable name (kotlinc-jvm or kotlinc-js)
2017-04-28 20:49:54 +03:00
Alexander Udalov
5bd3716637
Fix compilation of kotlin-maven-plugin and kotlin-script-util
2017-04-28 16:31:11 +03:00
Sergey Mashkov
96160606ba
Maven: KT-15050 setup logger so IDEA's core could log error
...
Introduce system property kotlin.compiler.X.enable.idea.logger=true
The reason is that I suspect that the error is somewhere at com.intellij.ide.plugins.PluginManagerCore#loadDescriptorFromJar but unfortunately default logger doesn't log messages at "info" log level so we can't see why exactly does it fail.
Users can enable IDEA's logger to see more details.
2017-04-18 12:31:39 +03:00
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
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
Alexander Udalov
861d9a1620
Use null instead of CompilerMessageLocation.NO_LOCATION in MessageCollector
2017-04-11 12:08:31 +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
30d6af7aae
Provide incremental compilation for Maven
...
#KT-11916 fixed
To use the IC either:
1. set the `kotlin.compiler.incremental` property to `true` in a pom.xml:
```
<properties>
<kotlin.compiler.incremental>true</kotlin.compiler.incremental>
</properties>
```
2. pass the `kotlin.compiler.incremental` property in a command line:
```
mvn install -Dkotlin.compiler.incremental=true
```
When IC is on Kotlin plugin is expected to print the warning in the log:
```
Using experimental Kotlin incremental compilation
```
After each call an incremental compiler will also log how many files it has compiled:
```
Compiled %SOME_NUMBER% Kotlin files using incremental compiler
```
Note that the first build will be non-incremental.
For more diagnostic information (such as an exact list of compiled files) use the `kotlin.compiler.incremental.log.level` system property:
```
mvn install -Dkotlin.compiler.incremental=true -Dkotlin.compiler.incremental.log.level=info
```
To force the rebuild just run the 'clean' goal:
```
mvn clean install
```
2017-04-05 21:00:43 +03:00
Yan Zhulanow
2afc27a462
Initial implementation of kapt for Maven (KT-14478)
2017-03-22 22:02:29 +03:00
Alexander Udalov
7dfa3bea18
Update tools & libraries projects to use JDK 8 when needed
2017-03-21 17:45:53 +03:00
Alexander Udalov
33a0ae0fcd
Skip kotlin-maven-plugin integration test if "skipTests" is defined
...
Similarly to kotlin-maven-plugin-test/pom.xml
2017-03-21 17:45:51 +03:00
Ilya Gorbunov
1296c5444b
Fix warning that failed maven plugin smoke test.
2017-03-07 13:56:11 +03:00
Yan Zhulanow
349095cd14
Maven: Make compiler plugin option reporting more user-friendly
2017-02-08 19:01:03 +03:00
Alexander Udalov
464820458e
JS: rename "-library-files" argument to "-libraries" and change separator
...
Use the system separator (':' or ';') instead of commas
#KT-16083 Fixed
2017-01-31 16:26:35 +03:00
Alexander Udalov
e5680565b3
JS: drop "-kjsm" flag, merge logic with "-meta-info"
...
#KT-16049 Fixed
2017-01-30 11:31:03 +03:00
Ilya Gorbunov
43003cffbb
Make kotlin-runtime dependency optional for kotlin script executor for maven, but still add if it's found.
2017-01-24 22:04:46 +03:00
Sergey Mashkov
e500eba59f
Maven: test js compiler test scope dependencies
2017-01-24 19:39:05 +03:00
Sergey Mashkov
39ad8fb22c
Maven: tests support for multiplatform projects
2017-01-13 15:34:13 +03:00
Sergey Mashkov
c7ed7cc6e4
Maven: add source roots automatically from dependency multiplatform modules (with metadata goal)
2017-01-10 19:36:45 +03:00
Sergey Mashkov
60f95e078f
Maven: metadata mojo initial implementation
2017-01-10 19:36:43 +03:00
Yan Zhulanow
f3d001077b
Move Maven subplugin test to kotlin-maven-plugin-test module
2016-12-15 18:36:17 +03:00
Alexander Udalov
9218965821
Minor, add an enlightening comment to plugins/verify.groovy at Maven plugin tests
2016-12-15 13:07:22 +03:00
Ilya Chernikov
b1cd98f2d5
Refactor and fix script annotation processing
2016-12-15 07:26:07 +01:00
Ilya Chernikov
fbd4c6eb61
Implement invokable/invoker interface on the generic repl evaluator, refactor reflection utils on the way
2016-12-15 07:26:06 +01:00
Yan Zhulanow
4d638c2cfd
Allopen: Add Maven plugin for all-open
2016-12-09 20:01:05 +03:00
Sergey Mashkov
0f5d51a5c2
Resolve dependency jars
2016-12-09 20:01:04 +03:00
Sergey Mashkov
3149c75130
Add integration test for Kotlin compiler plugin for Maven
2016-12-09 20:01:01 +03:00
Sergey Mashkov
f59377011c
Initial Kotlin plugin support in Maven
2016-12-09 20:01:00 +03:00
Alexander Udalov
414daef001
Rename KotlinVersion->KotlinCompilerVersion, move to module util.runtime
...
Rename to avoid confusion with the recently added kotlin.KotlinVersion
2016-12-07 21:11:15 +03:00
Alexander Udalov
c49c019250
Add option to restore fallback to compiler built-ins + resurrect Maven build
2016-10-26 19:02:31 +03:00
Ilya Gorbunov
2c9b2652c1
kotlin-maven-plugin: Add apiVersion parameter linked with kotlin.compiler.apiVersion property.
...
Test apiVersion parameter is applied as explicitly and as implicitly inferred from languageVersion.
#KT-14298
2016-10-13 08:37:34 +03:00
Ilya Gorbunov
ea51070446
Refactor: make languageVersion configuration parameter common for jvm and js kotlin maven compiler plugin.
2016-10-13 08:37:33 +03:00
Ilya Chernikov
1a137357e5
Add support for custom script compilation and execution to maven plugin, add simple test, relevant refactorings on the compiler side
2016-10-12 15:37:49 +02:00
Yan Zhulanow
78a4e90132
Minor: Fix Maven plugin compilation (configuration parameter is not required now in analyzeAndGenerate(), cherrypick problem)
2016-09-12 19:07:57 +03:00
Yan Zhulanow
015130832b
Kapt: allow to use Kapt from compileBunchOfSources()
2016-09-10 17:36:53 +03:00
Yan Zhulanow
6eb3d7e002
Kapt: Refactor kapt type wrappers. Now every ordinary (not NoType) type has a backed PsiType so it's easy to call utility functions from IntelliJ.
...
(cherry picked from commit 0a684aa)
2016-08-29 16:31:16 +03:00
Ilya Gorbunov
0f8bf310f2
Kotlin script execution for maven: include kotlin-runtime as explicit dependency for script.
...
Relates to #KT-11839
2016-08-17 12:40:50 +03:00