Ivan Kylchik
225b064470
Implement new 'mix' test mode
...
This mode must be used when one configuration will run several tests
for different JUnit versions.
2021-10-25 00:14:20 +03:00
Pavel Kunyavskiy
0bd4dbc0c1
[K/N] Disable debug info in runtime by default
...
Bundle grows 200mb if debug info is enabled, it's too much.
But probably, this can be useful for debug, so we need gradle option.
2021-10-11 11:45:24 +00:00
Andrey Uskov
4a99f04b41
Add simple test of KAPT working under JDK 16
2021-10-10 16:40:35 +03:00
Alexander Likhachev
f27f91b03a
[Build] Make JVM target settings logic less imperative
...
Previously actual value was dependent on the order of calls to `updateJvmTarget` and `configureJava9Compilation` in build script that may lead to inconsistencies
2021-09-29 16:34:11 +00:00
Dmitriy Novozhilov
825ecc3a6f
[Build] Remove JDK 15 and 16 from JdkMajorVersion
...
They are replaced with JDK 17 LTS release
2021-09-28 13:01:48 +03:00
Ilya Kirillov
65b6e7076b
Fix cooperative development configuration
...
Deprecated testCompile was not available, replace with testApi
2021-09-27 21:20:36 +03:00
Vyacheslav Gerasimov
8d2fafa3ce
Build: Fix various warnings in build files
...
Required for Gradle 7+ #KTI-559
2021-09-26 20:10:29 +03:00
Vyacheslav Gerasimov
f91d6958a8
Build: Rework runtimeJar helper and drop redundant configuration
...
#KTI-559
2021-09-26 20:10:29 +03:00
Vyacheslav Gerasimov
ab146bd6d4
Build: Fix deprecated Gradle configurations usages
...
for migration to Gradle 7+ #KTI-559
2021-09-26 18:28:44 +03:00
Yahor Berdnikau
24d088242c
Use JVM toolchain for buildSrc module.
...
Before this change buildSrc module was compiled with current user JDK.
For example on CI it is JDK 1.8. But when the user is using JDK
different from 1.8, buildSrc compilation misses remote build cache. This
may lead to full project recomplilation on the user side.
2021-09-22 11:35:07 +00:00
Mikhail Glukhikh
ed035d99ab
Migrate -Xopt-in to -opt-in in Gradle Kotlin scripts
2021-09-03 15:40:47 +03:00
Ilya Gorbunov
ed1bee6975
Setup Kotlin compilation of java 9 source sets consistently
...
Usually, java 9 source sets contain only module-info.java file, so
Kotlin compilation does not run because there are no .kt sources.
However, it can still start after some incremental changes and
thus it's important to have its JVM target configured consistently
with Java compilation of the same source set.
2021-08-25 18:34:38 +03:00
Nikolay Krasko
9e0ba8c3d2
Clean up 193.6494.7 mentionings
2021-08-12 21:15:30 +03:00
Nikita Bobko
dac4fe7507
Adapt coop-dev for 212 platform
2021-08-07 00:07:28 +03:00
Alexander Udalov
e0643a4185
Build: use -Xskip-runtime-version-check globally in project
2021-08-06 22:36:22 +02:00
Dmitriy Novozhilov
13b5f87f3a
[Build] Add gradle properties for different sets of modularized testdata
2021-08-05 15:22:42 +03:00
Dmitriy Novozhilov
d7368c341e
[Build] Update kotlin-build-gradle-plugin version to 0.0.32
2021-08-05 15:22:41 +03:00
Nikolay Krasko
bb718f2e0b
Allow reading signing parameters from environment variables (KTI-552)
2021-08-03 17:54:09 +03:00
Dmitriy Novozhilov
e4d2351e03
[Build] Add JDK_17 to list of toolchains
2021-08-01 22:23:34 +03:00
Mikhael Bogdanov
228100ef09
Upgrade toolchain to api/lv 1.4
2021-07-29 19:45:53 +02:00
Alexander Udalov
0a9498f7e2
Build: suppress deprecated JVM target warning globally
...
There seems to be no point in configuring the compiler argument per
project. This argument will be deleted soon anyway, when we remove
support for JDK 1.6 & 1.7.
Also remove `disableDeprecatedJvmTargetWarning`. It didn't have any
effect in all modules where it was applied because these modules
reassign `freeCompilerArgs` anyway, with
`-Xsuppress-deprecated-jvm-target-warning` in it.
2021-07-27 13:35:39 +02:00
Nikolay Krasko
83023c2073
Remove 202 platform support in build scripts
2021-07-23 16:58:28 +03:00
Alexander Udalov
a383d45534
Disable -Werror if test.progressive.mode is enabled
...
The reason is that when advancing language version, for example from 1.5
to 1.6, there is a brief period between bootstraps where the
bootstrapped compiler has latest stable language version 1.6, yet the
project is still built with 1.5. That leads to a (correct) warning that
progressive mode makes no sense unless the latest language version is
used, which fails the build because of Werror.
When testing bootstrap in progressive mode, we don't actually care about
these warnings, so disable Werror in this case.
The only case where this could matter would be if we were introducing
_warnings_ in progressive mode and checking that there are no new
warnings on Kotlin would be important for us, but so far progressive
mode has only been used to turn already existing warnings to errors.
2021-07-22 15:41:51 +02:00
Nikolay Krasko
a1a1bda5f3
Drop unused runIdeTask and excludeInAndroidStudio from localDependencies
2021-07-21 11:23:56 +02:00
Ilya Muradyan
014765a302
Add dependencies-maven-all artifact
2021-07-19 21:31:48 +03:00
Alexander Udalov
35f6337de3
Remove obsolete kotlin.build.useIR flag
...
(cherry picked from commit 91e47f1fd7 )
2021-07-13 14:01:19 +02:00
Yahor Berdnikau
de22a467a1
Ensure default toolchain is also set to java only modules.
...
^KT-46972 Fixed
2021-07-09 19:36:27 +03:00
Vyacheslav Gerasimov
a915eddf22
Build: Upgrade Idea Ext plugin to 1.0.1
2021-07-08 23:24:09 +03:00
Simon Ogorodnik
ca86b7ff7d
[Build] Make getToolchainCompilerFor private and fix LibrariesCommon
2021-07-08 17:06:31 +00:00
Simon Ogorodnik
c0e479eadb
[Build] Allow to override JDK 10 with JDK 11
2021-07-08 17:06:31 +00:00
Simon Ogorodnik
18eccdbc1f
[Build] Allow to override JDK 9 with JDK 11
2021-07-08 17:06:30 +00:00
Simon Ogorodnik
a31bdc6454
[Build] Respect overrides in getToolchainLauncherFor
2021-07-08 17:06:29 +00:00
Simon Ogorodnik
bf25ccfc0e
[Build] Allow kotlin.build.isObsoleteJdkOverrideEnabled=true on CI
2021-07-08 17:06:28 +00:00
Mikhail Glukhikh
7d583973ab
Disable -Werror in FIR mode inside disableDeprecatedJvmTargetWarning
2021-07-06 18:27:53 +03:00
Yahor Berdnikau
c3a3e99724
Fix toolchain is not applied for modules with 'java' plugin.
...
Use common base java plugin for configuration action: 'java-base'.
^KT-46972 Fixed
2021-07-05 23:15:44 +02:00
Pavel Punegov
269f83f86e
Update kotlin-build-gradle-plugin to 0.0.31
2021-07-05 19:43:28 +00:00
Yahor Berdnikau
1bd0607b53
Fix toolchain jdk override was not working for all modules.
...
Now it also considers the case when separate tasks toolchain
are configured or module only has java toolchain.
^KT-46972 Fixed
2021-07-05 21:15:04 +02:00
Yahor Berdnikau
7e70c93cbf
Allow to avoid using JDK 1.6 and JDK 1.7 in the repo.
...
This behaviour could be enabled via adding
'kotlin.build.isObsoleteJdkOverrideEnabled=true'
to the 'local.properties' file.
^KT-46972 Fixed
2021-07-05 14:11:13 +00:00
Yahor Berdnikau
7789054547
Migrate repo to use JVM toolchains Gradle feature.
...
^KT-46972 Fixed
2021-07-05 14:11:12 +00:00
Yahor Berdnikau
08d831934a
Revert "Build: add temporary option to suppress jdkHome warning"
...
This reverts commit 1dfcec3a93 .
2021-07-05 14:11:11 +00:00
Vyacheslav Gerasimov
aff9d96e8a
Build: Update gradle enterprise and test distribution plugins
2021-07-04 18:15:36 +03:00
Vyacheslav Gerasimov
58f1fb644f
Build: Stop publishing jars with original classifier
...
#KTI-580
2021-06-17 19:43:10 +03:00
Vyacheslav Gerasimov
fb805028c1
Build: Add runtimeJar variant to the default java component if present
2021-06-17 19:43:09 +03:00
Vyacheslav Gerasimov
a0469a1d62
Build: Make Gradle plugin publications reuse POMs from the main one
...
#KTI-571
2021-06-17 19:43:07 +03:00
Nikolay Krasko
6139f095e7
Disable dependencies verification for kotlin-ide projects
2021-06-17 18:36:06 +03:00
Nikita Bobko
c954fa4900
Make it possible to attach community version of kotlin-ide
2021-06-16 21:58:34 +03:00
Steffi Stumpos
8baf570ee7
Build: Publish the new compiler test infrastructure
2021-06-12 04:33:31 +03:00
Nikolay Krasko
b6b983aa2a
Update kotlin:kotlin-build-gradle-plugin 0.0.29 -> 0.0.30 (KTI-563)
...
Remove ultimate mentioning
2021-06-09 22:19:53 +03:00
Nikolay Krasko
32f811e0ec
Build: Cleanup old platforms from the build
2021-06-09 17:43:53 +03:00
Nikolay Krasko
a4005cef19
Build: Drop ultimate, cidr and kmm from the build (KTI-563)
2021-06-09 17:43:52 +03:00