Yahor Berdnikau
351e9c7592
[repo] Update Dokka to 1.8.20 version
...
This release also fixes some problems with KGP-api documentation
publication.
2023-07-06 11:07:48 +00:00
Yahor Berdnikau
1fdda8962d
[repo] Migrate 'preparePublication' task into buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
7bfe59253f
[repo] Migrate 'manifestAttributes()' into buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
db1086f005
[repo] Migrate 'configureFrontendIr()' into buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
73a757c105
[repo] Migrate Groovy build scripts to use 'publish()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
d7fc4a1d27
[repo] Migrate Groovy build scripts to use 'sourcesJar()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
6d5f1c84a7
[repo] Migrate Groovy build scripts to use 'javadocJar()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
5de2b5aeb4
[repo] Migrate Groovy build scripts to use 'kotlinStdlib()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Bogdan Mukvich
45e56f9c14
Disable SBOM for Gradle plugins
...
Current implementation causes publishing to fail
^KTI-1282
2023-06-30 07:55:45 +00:00
Nikolay Krasko
ac0e493bac
Temporary disable sbom publication for gradle plugin configuration
...
When signing is enabled it leads to error
```
Build file '/Users/Shared/Projects/kotlin/libraries/tools/kotlin-gradle-plugin-api/build.gradle.kts' line: 13
Cannot change dependencies of dependency configuration ':kotlin-gradle-plugin-api:commonApi' after it has been included in dependency resolution.
```
When running with
```
gradle :kotlin-test:publish -Psigning.gnupg.keyName=* -Psigning.gnupg.passphrase=* -PsigningRequired=true
```
2023-06-28 18:00:14 +00:00
cristiangarcia
650b00e1b2
Improve DexMethodCount task
...
Use lazy api to set the file and avoid configuring Jar tasks
2023-06-28 07:48:20 +00:00
Alexander Udalov
ecc1f9fb0b
Update to kotlinx-metadata-jvm 0.6.2
...
Migrate to the new API in kotlin-reflect build script, remove obsolete
workarounds.
2023-06-27 14:32:15 +00:00
Nikolay Krasko
d4c8636c70
Relocate aalto-xml and stax2-api dependencies in embeddable compiler (KT-59631)
...
Two additional dependencies were added during 213 platform migration:
com.fasterxml:aalto-xml
org.codehaus.woodstox:stax2-api
Packages were not relocated and now might cause failures such as
```
Caused by: java.lang.NoSuchMethodError: 'void com.fasterxml.aalto.in.ReaderConfig.setXMLResolver(javax.xml.stream.XMLResolver)'
```
if proguard classes of kotlin-compiler-embeddable are registered early
in the classpath.
2023-06-27 12:48:37 +00:00
Bogdan Mukvich
53ce5c22ca
Add SBOM publishing for kotlin-test libraries
...
^KTI-1273
2023-06-27 09:02:18 +00:00
Bogdan Mukvich
acb97d8cc9
Add SBOM for gradle plugins
...
^KTI-1273
2023-06-27 09:02:17 +00:00
Alexander Udalov
c66bc36382
Build: fix some warnings in buildSrc and build.gradle.kts
2023-06-26 15:42:21 +00:00
Alexander.Likhachev
862f8f235c
[Build] Bump Gradle version to 8.1.1
...
#KTI-1221 In Progress
2023-06-22 15:16:08 +00:00
Alexander.Likhachev
786653baf2
[Build] Use separate sbom directories per publication
...
Currently, `SpdxSbomTask` declares output file not as `@OutputFile`, but `@OutputDirectory` leading to overlapping outputs problem. This way the problem is worked around.
#KTI-1221 In Progress
2023-06-22 15:16:08 +00:00
Alexander.Likhachev
58490ea184
[Build] Configure sourcesJar task dependencies explicitly
...
The `sourcesJar` task uses outputs of code generation tasks, thus it should be declared, so Gradle would know that's not a misconfiguration.
https://docs.gradle.org/8.1/userguide/validation_problems.html#implicit_dependency
#KTI-1221 In Progress
2023-06-22 15:16:08 +00:00
Alexander.Likhachev
01276bbe49
[Build] Fix buildscripts deprecation warnings
...
#KTI-1221 In Progress
2023-06-22 15:16:08 +00:00
Dmitriy Novozhilov
fd670d33cb
[FIR plugin] Compile annotations in plugin sandbox to jvm and js
...
This is needed for further testing of plugins with JS backend
2023-06-21 06:56:59 +00:00
Vyacheslav Gerasimov
8a6548cd7a
Build: Add dokka to implicitDependencies
...
#KTI-72
2023-06-16 12:19:00 +00:00
Vyacheslav Gerasimov
7c1ffc4eb2
Build: Introduce global implicitDependencies configuration
...
It is used to pre-download all dependencies and check that
verification-metadata.xml is up-to-date
#KTI-72
2023-06-16 12:19:00 +00:00
Alexander Shabalin
da1fde2477
[K/N] Enable custom allocator by default ^KT-55364
2023-06-13 10:22:04 +00:00
Yahor Berdnikau
4a501a257e
[Gradle] Restore Kapt import compatibility with older Kotlin plugin releases
...
Still supported IDEA/Kotlin plugin releases relies on
'kotlin-annotation-processing-gradle' artifact name in compiler plugins
classpath. I've restored this publication usage until we will stop
support Kotlin plugin versions that doesn't know about
'kotlin-annotation-processing-embeddable' name.
^KTIJ-25586 Fixed
2023-06-07 13:21:57 +00:00
cristiangarcia
46d113605b
Adopt configuration-avoidance where possible
...
Before this change `./gradlew help` (with native enabled)
Created immediately: 1322
Created during configuration: 1541
after this change:
Created immediately: 596
Created during configuration: 1509
To know more about configuration avoidance: https://docs.gradle.org/current/userguide/task_configuration_avoidance.html
2023-06-06 14:27:42 +00:00
Bogdan Mukvich
303b01b89b
Add SBOM configuration for all published artifacts by default
2023-06-06 13:27:26 +00:00
Vyacheslav Gerasimov
e0a477f16d
Build: Refactor sbom configuration & wire it with main publication
2023-06-06 13:27:25 +00:00
Bogdan Mukvich
02de693a12
Configure SBOM should return artifact
2023-06-06 13:27:25 +00:00
Bogdan Mukvich
1e4f78dcff
Update spdx-gradle-plugin
2023-06-06 13:27:25 +00:00
Alexander Shabalin
aea8bac7d2
[K/N] Do not compile for deprecated targets and legacy MM
...
^KT-56533
^KT-58853
2023-05-30 16:44:58 +00:00
Yahor Berdnikau
9f12dae117
[repo] fix KGP pom has multiple dependencies on KGP-api
2023-05-26 13:20:41 +00:00
Nikolay Krasko
15825549a2
Auto provide JDK_21_0 env variable to relevant tests
...
KTI-1229
2023-05-26 09:05:54 +00:00
Nataliya.Valtman
06ac8a10cd
Use FlowParameter for buildFinish event
...
Support build scan report for Gradle 8.1
#KT-55740: Fixed
#KT-58251: Fixed
2023-05-25 14:24:16 +00:00
cristiangarcia
d32d5346a2
Fix gradle deprecations in Kotlin Native
...
Merge-request: KT-MR-10267
Merged-by: Cristian Garcia <Cristian.Garcia-Marin@jetbrains.com >
2023-05-22 12:39:57 +00:00
Dmitriy Dolovov
42a8b28337
[Native][tests] Don't track used memory when running in TeamCity
2023-05-12 13:58:18 +00:00
Pavel Kargashinsky
4b6ed128a2
[MPP] Use android.sdk from kotlin/dependencies for functionalTests
2023-05-12 13:26:40 +00:00
Alexander.Likhachev
44d9a2136b
Bump language version for Gradle plugins' dependencies to 1.5
...
#KT-58569 Fixed
2023-05-12 12:59:39 +00:00
Bogdan Mukvich
303f7493cc
Do not publish SBOM artifact by default
...
* In case we generate several artifacts like in kotlin-compiler
there are separate jar and zip modules which differ in content
2023-05-10 16:03:01 +00:00
Bogdan Mukvich
bbe5418a85
Add SBOM to dist compiler task
2023-05-10 16:03:01 +00:00
Alexander.Likhachev
4ec48cfb82
[Gradle] Add Gradle 8.1+ plugin variant
2023-05-10 12:21:06 +00:00
Bogdan Mukvich
dccb7a221c
Add SBOM plugin and configuration
2023-05-09 08:46:06 +00:00
Bogdan Mukvich
e7989eecf5
Add function to get toolchain JDK home location
2023-04-27 12:25:20 +00:00
Nataliya.Valtman
2a391f7330
Move kotlin-build-statistic project to :compiler
2023-04-25 11:29:09 +00:00
nataliya.valtman
e34dd043da
Add minimal statistic report for JPS build
...
Fix build stat for gradle 8
#KT-56438 Fixed
2023-04-25 11:29:09 +00:00
Yahor Berdnikau
eb4e96a113
Add kotlin-build-tools-enum-compat workaround
...
It acts as a workaround for the case when build tools or dependencies
are compiled with latest 'kotlin-stdlib' version, but at a runtime older
'kotlin-stdlib' is provided, which does not know about new
`EnumEntries`.
^KT-57317 Fixed
2023-04-21 14:57:17 +00:00
Roman Golyshev
d4cffb8a5a
[213] Switch to 213 platform
...
KTI-1114
2023-04-21 13:19:04 +00:00
Alexander.Likhachev
ec4fab57a7
[Build] Add the kotlin- prefix to the build tools API modules names
...
KT-57396
2023-04-19 09:09:26 +00:00
Alexander.Likhachev
22720f62f6
[Build] Add build-tools-api to KGP install dependencies
...
#KT-57397 In Progress
2023-04-18 18:19:24 +00:00
Yahor Berdnikau
cc1aaf4ba8
Add api compatible way to get if project isolation is enabled
...
Gradle 8.0 internal API has changed returned type. To fix incorrect KGP
behaviour has to add additional Gradle 8.0 plugin variant and provide
project isolation start parameter accessor implementation for older
Gradle versions.
^KT-55624 In Progress
2023-04-18 15:21:43 +00:00