Aleksei.Cherepanov
47a1dd27dd
Fix after review KT-CR-4441 of cc5382b3
...
Simplify API of InlineConstTracker
In ConstLowering: Move transformer logic to another class to avoid mutable state. Avoid marking all files in module as module. Support of inner classes.
#KT-46506 Fixed
2021-09-22 01:55:18 +03:00
Aleksei.Cherepanov
cc5382b37e
[JPS] Fix incremental build after changing Java constant
...
InlineConstantTracker implemented for tracking changed java static final constants, that used in kotlin.
#KT-46506 Fixed
2021-09-11 13:00:00 +03:00
Alexander Udalov
11902c7f8f
Fix warnings in daemon-related modules
2021-08-06 22:36:59 +02:00
Mikhael Bogdanov
228100ef09
Upgrade toolchain to api/lv 1.4
2021-07-29 19:45:53 +02:00
Alexander Udalov
698c0bb2a9
Replace --illegal-access workaround with --add-exports
...
--illegal-access=permit doesn't work since JDK 17.
#KT-47152 Fixed
2021-07-26 19:27:09 +02:00
Andrey Uskov
92b08dfcfb
Revert "Unify the way to set compiler options using System.properties"
...
This reverts commit 28e4e775
2021-06-23 11:34:04 +03:00
Andrey Uskov
28e4e77542
Unify the way to set compiler options using System.properties
...
Now compiler flags with boolean values which are controlled by system
properties could be set in similar way. The following syntax is
appropriate. For setting flag:
'-DflagName,'-DflagName=[y|Y|true|TRUE|yes|YES|on|ON]'
for unsetting flag:
'-DflagName=[n|N|false|FALSE|no|NO|off|OFF]'
2021-06-22 19:35:28 +03:00
Yahor Berdnikau
1bb64ffa22
Revert "Print path to java executable Kotlin daemon was started with."
...
This reverts commit 3e69bcba474d498c74a0e9827aa833f2381d43d8.
2021-06-18 10:50:22 +00:00
Yahor Berdnikau
f9ec6bb66a
Revert "Optionally make java executable path contribute to the daemon id."
...
This reverts commit ac86ad252f .
2021-06-18 10:50:21 +00:00
Yahor Berdnikau
201b6dfa60
Print path to java executable Kotlin daemon was started with.
...
Useful for tests to validate toolchain correct behaviour.
^KT-45611 In Progress
2021-04-29 20:43:57 +03:00
Yahor Berdnikau
ac86ad252f
Optionally make java executable path contribute to the daemon id.
...
This change will allow to start Kotlin daemon instances using different
from the current user JDK version and use it to compile Kotlin files.
Old behaviour, when java executable path is not set, is still working
and still,by default, using current user JDK version.
For example, user for some reason wants to use JDK 1.8 as active one,
but compile current project using JDK 16.
Main goal is to support Gradle toolchains.
^KT-45611 In Progress
2021-04-24 11:12:47 +03:00
Alexander Likhachev
16dc0a7d29
[Gradle] Read more system properties through Gradle providers
...
Related to #KT-43605
2021-04-08 14:28:05 +03:00
Alexander Likhachev
3537c699b5
[Gradle] Read system properties at configuration time using Gradle providers
...
The change is a step to fully support Gradle configuration cache.
Relates to #KT-43605
Relates to #KT-44611
2021-03-04 19:36:11 +03:00
Alexander Udalov
1d6b198915
Build: suppress version and JVM target warnings
...
To further reduce the output on each build.
2021-02-18 12:17:17 +01:00
Alexander Udalov
80daf120e6
Apply illegal-access=permit workaround for JDK 16+
...
Apparently, the openjdk commit that enabled JEP 396 (encapsulated JDK
defaults) is effective since jdk-16+28:
https://github.com/openjdk/jdk/commit/ed4c4ee7
2021-02-11 12:12:39 +01:00
Alexander Udalov
e7cf34a2a9
Workaround illegal access problem in daemon for JDK 17-ea
...
Otherwise Kotlin cannot be used in Gradle since
https://github.com/openjdk/jdk/commit/ed4c4ee7 where JDK internals
started to be encapsulated by default.
For some reason, using
listOf("--add-opens", "java.base/java.util=ALL-UNNAMED")
doesn't help, so use the more general `--illegal-access=permit`.
#KT-43704
2021-01-29 21:29:08 +01:00
Ilya Gorbunov
090b562db7
Use NIO Files for creating temp files: scripting, daemon, main-kts
2020-11-20 06:09:37 +03:00
Alexander Udalov
a9ddf02556
Replace deprecated usages of max/min with maxOrNull/minOrNull
2020-08-25 20:33:59 +02:00
Alexander Udalov
425b192a5f
Fix warnings in build-common/daemon code
2020-08-20 14:58:11 +02:00
Ilya Muradyan
9db9e2ad57
Fix build error messages
2020-06-16 13:34:40 +02:00
Vyacheslav Gerasimov
4aa3040550
Build: Use runtimeOnly instead of deprecated runtime
...
maven-publish plugin uses `runtimeOnly` for runtime scope instead of
`runtime`
2020-06-14 20:31:26 +03:00
Ilya Chernikov
c2eaa3d955
Fix ThreadDeath exception on stopping daemon thread
...
#KT-30086 fixed
2020-04-21 16:49:10 +02:00
Vyacheslav Gerasimov
db3b01d2d4
Build: Centralize compiler dist build logic in :kotlin-compiler project
2019-06-27 17:56:48 +03:00
Vyacheslav Gerasimov
4f090f2744
Build: Use default jar task in kotlin-daemon-client
2019-06-27 17:56:47 +03:00
Anton Bannykh
c3170d1908
JS: cache metadata, grouped by package FQN
2019-05-28 23:33:17 +03:00
Vadim Brilyantov
01a05a5495
Move daemon jar from compiler
2019-05-17 15:51:52 +03:00
Vadim Brilyantov
ced973b707
Introduce new Kotlin Daemon without RMI abstraction
2019-05-17 15:51:51 +03:00
Vyacheslav Gerasimov
adb896d74c
Build: Introduce embedded configuration used for fatJars
2019-04-10 17:54:06 +03:00
Vyacheslav Gerasimov
92248d609f
Build: Centralize build logic for kotlin-plugin in :prepare:idea-plugin
2019-04-10 17:54:06 +03:00
Vyacheslav Gerasimov
a42f607ecf
Build: Fix artifacts signing for maven central
...
With gradle > 5.0 `publish()` helper call should be done before
`noDefaultJar()` or any other artifact hacks, otherwise singing plugin doesn't sign any jars
2019-02-27 13:21:17 +03:00
Anton Bannykh
4b39e2df12
JS: (review fix) Header -> InlineData
2019-02-14 15:14:28 +03:00
Anton Bannykh
6d26bf9622
JS: don't load binary AST unless required by the inliner
2019-02-14 15:14:28 +03:00
Mikhael Bogdanov
a122cba862
Switch Kotlin project to jvm-target 1.8
...
#KT-29405
2019-01-31 07:43:05 +01:00
Alexey Tsvetkov
12e481192a
Don't use project root as working directory for Kotlin daemon
...
On windows using a project's root
as a working directory for the daemon
seems to prevent removing the directory
when the daemon runs.
Different projects may share an instance of the daemon,
so the issue will be present only in a project
which started the daemon.
2019-01-21 22:42:55 +03:00
Vyacheslav Gerasimov
818910267e
Remove 173 bunch files
2019-01-14 21:29:02 +03:00
Vyacheslav Gerasimov
c768130f89
Remove gradle/ext-releases-local repo, native platform is now available on jcenter
2018-09-12 15:52:15 +03:00
Vyacheslav Gerasimov
bc544d764a
Refactor build repositories to reduce number of unnecessary request
...
Setup for all projects only local, jcenter and bootstrap repositories
2018-08-27 18:09:26 +03:00
Alexander Udalov
4122021090
Add BinaryVersion to DeserializationContext
...
This will be useful to implement version-dependent deserialization,
which is needed for gradual fixes of issues in metadata
#KT-25120 In Progress
2018-07-18 17:58:46 +02:00
Vyacheslav Gerasimov
01db78d776
Build: Introduce Project extension properties for source sets
2018-06-22 21:42:30 +03:00
Vyacheslav Gerasimov
992a31af88
Build: introduce javaPluginConvention extension on project
...
`ExtensionAware.the<T>()` introduced in gradle 4.7 made existing calls `the<JavaPluginConvention>()` invalid (on wrong receiver)
2018-06-13 19:43:03 +03:00
Sergey Rostov
ce96c1b9a8
jps, daemon: fix javascript inline functions tracking
...
inline function hash should computed after compilation
2018-06-08 09:46:50 +03:00
Sergey Rostov
1cbef873ec
jps: implement mpp and js daemon compiler services
...
#KT-24635 fixed
2018-06-08 09:46:41 +03:00
Vyacheslav Gerasimov
8c88ac69df
Cleanup .181 bunch files
2018-04-27 18:25:21 +03:00
Vyacheslav Gerasimov
bc403ce744
Switch to 181 platform
2018-04-27 18:25:17 +03:00
Vyacheslav Gerasimov
a0e20eefc6
181: Fix dependencies for 181
2018-04-11 16:28:29 +03:00
Alexey Tsvetkov
b420671a1d
Introduce jps-compatible-base plugin to create necessary configurations
...
To avoid generating static accessors (via kotlinDslAccessorsSnapshot),
we need to create all necessary configurations during 'plugins'
block evaluation.
2018-03-26 16:09:29 +03:00
Alexey Tsvetkov
8a82c1618c
Use Plugins DSL in Kotlin Gradle scripts
...
When plugins DSL is used, there is no need to
manually generate typesafe accessors for extensions and
conventions (by running `./gradlew kotlinDslAccessorsSnapshot`).
2018-03-26 16:09:29 +03:00
Alexey Tsvetkov
c736f229ce
Always depend on runtimeJar of kotlin-daemon-client
2018-03-14 13:29:32 +03:00
Yan Zhulanow
6e65a4810e
Make a project-wide embeddedComponents configuration for embedding external binaries to project artifacts
2018-03-02 03:15:32 +03:00
Yan Zhulanow
07ede20dc5
Pill: Import KotlinPlugin artifact
2018-03-02 03:15:28 +03:00