Ilya Gorbunov
0eb5bf21e9
Fix maven plugin smoke test
...
- Do not use default encoding to avoid warnings in logs
- Update 'Downloading'/'Downloaded' filters to new maven version
2018-09-06 20:07:54 +03:00
Ilya Gorbunov
d4a195c757
Advance maven project versions to 1.3-SNAPSHOT
2018-08-30 14:49:30 +03:00
Alexander Udalov
0f003802fe
Introduce -Xcommon-sources and pass it correctly from build tool plugins
...
#KT-25196 In Progress
2018-08-21 12:49:10 +02:00
Alexander Udalov
f663b8f554
Fix kotlin-maven-plugin compilation
2018-08-10 18:34:40 +02:00
Ilya Chernikov
a46dd5b30e
Avoid using reflected types in the scripting API
...
since it causes numerous classloading issues. Using the wrapping types
and reload them in the proper context when needed.
Note: this version supports only classes, but the wrapping type could
be extended to support other types in the future.
+ numerous fixes related to proper loading and handling of the templates.
2018-05-28 22:10:56 +02:00
Ilya Chernikov
4742d0a034
Rename scripting plugins to more established scheme
2018-04-04 16:23:56 +02:00
Ilya Chernikov
d05f67127d
Move scripting configuration into compiler plugin
2018-04-04 16:23:55 +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
Yan Zhulanow
39e9d28c63
Kapt: Support 'kapt.kotlin.generated' option in Maven
2018-04-02 19:26:26 +03:00
Alexey Tsvetkov
42c433f950
Avoid removing target/classes dir during IC in Maven
...
#KT-21581 fixed
2018-02-14 16:31:30 +03:00
Yan Zhulanow
7c7c929b0e
Kapt: Disable location mapping by default, allow to enable it manually
2018-02-06 22:16:00 +03:00
Yan Zhulanow
1692d1a087
Kapt: Add missing 'flush()', otherwise the serialized data can be empty
2017-12-18 18:57:38 +09:00
Yan Zhulanow
d4be55df0e
Kapt, Minor: Fix empty option parsing
2017-12-16 02:17:24 +09:00
Yan Zhulanow
4d067ab9ce
Kapt, Maven: Support passing javac/annotation processor options (KT-21565, KT-21566)
2017-12-15 02:35:15 +09:00
Yan Zhulanow
e4f476c09f
Kapt, Maven: Fix running with the non-clean build (KT-20816)
...
Clean target directories for kapt stubs and generated source files.
Filter out the compile destination directory from the classpath.
2017-12-01 22:53:16 +09:00
Yan Zhulanow
381379fb62
Kapt, Maven: Clean directories for generated sources and stubs before AP
2017-12-01 22:53:16 +09:00
Yan Zhulanow
50ab054883
Kapt: Preserve kapt plugin options if there are also options from compiler plugins (KT-20257)
2017-10-16 21:25:32 +03:00
Ilya Gorbunov
b901a8946c
Set 1.2-SNAPSHOT in maven build
2017-10-11 08:50:30 +03:00
Alexey Andreev
e323da3c5e
Fix compilation of Maven JS plugin
2017-10-03 17:23:02 +03:00
Sergey Mashkov
49cbb2219c
Maven: reduce maven plugin output
...
#KT-20400 Fixed
2017-09-29 14:49:41 +03:00
Ilya Gorbunov
1c6b858153
Do not hardcode kotlin version into maven plugin smoke test
2017-09-20 11:52:04 +02:00
Ilya Gorbunov
403f2c6f99
Fix dependencies of kotlin-compiler(+embeddable), remove them from kotlin-maven-plugin
2017-09-20 11:51:36 +02:00
Ilya Chernikov
3aabeca191
Fix maven and android tests after modularizing and rebasing
2017-09-20 11:51:21 +02:00
Mikhail Zarechenskiy
6a1b6d10d8
Setup JDK roots and initialize JDK_HOME in common core environment
...
#KT-20167 Fixed
2017-09-18 08:19:41 +03:00
Alexey Sedunov
aed9d3899e
Misc: Fix compiler argument usages after refactoring
2017-08-03 19:59:53 +03:00
Yan Zhulanow
3d7d1b20ab
Ensure there won't be the same classpath entries in the resulting classpath
2017-08-02 03:36:57 +03:00
Bill Collins
9a40e9b96d
Don't overwrite plugin classpaths detected earlier for annotation processing. Fixes #KT-18022
2017-08-02 03:36:56 +03:00
Alexander Udalov
b2b492447f
Maven plugin: initial support for Java 9 modules
2017-07-12 18:58:36 +03:00
Alexander Udalov
848edc14cb
Maven plugin: fix warnings, update copyrights
2017-07-12 18:58:35 +03:00
Alexey Andreev
a0e1bde594
Allow to embed source files into JS source maps
2017-06-26 18:15:28 +03:00
Alexey Andreev
49b742ab3d
Add new JS source map config options to Maven plugin
2017-06-20 17:40:35 +03:00
Alexander Udalov
fb520e3040
Maven: do not set JVM target to null
...
After a236400 , it's expected that the value of jvmTarget should not be
null. Otherwise ArgumentUtils.convertArgumentsToStringList fails with
NPE
2017-06-06 19:52:04 +03:00
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