Nikolay Krasko
1630386712
Move to JDK_X_Y variables
2022-09-21 22:53:19 +00:00
Ilya Kirillov
7fbfb1bd95
Fix cooperative development setup for kt-master
2022-03-02 13:46:24 +01:00
Nikita Bobko
9ec658b0ac
[imltogradle] Fix kotlinc libs generator
...
kotlinc libs were changed from maven libs to plain JPS libs which
contain `../build/repo` jars
KT-MR-5457
2022-01-17 20:42:56 +01:00
Vyacheslav Gerasimov
f7a9065b75
Build: Use intellij maven repo instead of downloaded IDEA
...
#KTI-82
2021-12-16 21:48:23 +03:00
Vyacheslav Gerasimov
049066f8ac
Replace systemIndependentPath from Idea with invariantSeparatorsPath
2021-12-16 21:48:21 +03:00
Nikita Bobko
5455800de4
[imltogradle] Exclude 'kotlin.util.compiler-dependencies' module from generation
...
This module is used as helper module in JPS project module to make sure that IDEA will download
all required dependencies. There are some dependencies which IDEA cannot determine as used so
we force it to download them (kotlinc.kotlin-dist, kotlinc.kotlin-compiler-testdata)
We don't need this module in Gradle project model
This commit fixes:
```
Could not resolve project :prepare:ide-plugin-dependencies:kotlin-compiler-testdata-for-ide.
Required by:
project :kotlin-ide.kotlin.util.compiler-dependencies
```
2021-08-11 02:17:52 +02:00
Nikita Bobko
747cc7d55d
[imltogradle] Fix other kotlinc libraries which don't follow kotlinc.* naming
...
e.g. kotlin-reflect
2021-08-11 02:17:51 +02:00
Nikita Bobko
784273ac5b
[imltogradle] Add additional check for absence of snapshot version in JpsLikeJarDependency
2021-08-11 02:17:51 +02:00
Nikita Bobko
493fdbd418
Fix kotlin stdlib handling for 212 IDEA in ide-iml-to-gradle-generator
2021-08-11 02:17:51 +02:00
Nikita Bobko
a97b4ea4ae
Fix UnsupportedClassVersionError when running ./gradlew generateIdePluginGradleFiles
...
This commit fixes:
```
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/intellij/jps/impl/JpsIdePluginManagerImpl has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
```
2021-08-07 00:07:30 +03:00
Nikita Bobko
dac4fe7507
Adapt coop-dev for 212 platform
2021-08-07 00:07:28 +03:00
Igor Yakovlev
64afba299f
[imltogradle] Don't use deprecated kotlinOptions.jdkHome in generated build.gradle.kts files
2021-07-05 17:52:04 +02:00
Nikita Bobko
306f8b7358
[imltogradle] Add "imls in same directory are not allowed" check
2021-06-18 17:42:23 +02:00
Nikolay Krasko
80677c88cb
Update gradle task in generated files
2021-06-17 18:36:10 +03:00
Nikolay Krasko
c8ae9a7090
[imltogradle] Speedup files traversing by ignoring directories
2021-06-17 18:36:09 +03:00
Nikolay Krasko
6139f095e7
Disable dependencies verification for kotlin-ide projects
2021-06-17 18:36:06 +03:00
Nikolay Krasko
71ee9cf1be
Fix generateIdeaGradleFiles on Windows
2021-06-17 18:36:04 +03:00
Nikita Bobko
526a664077
[imltogradle] Add a bit of logging
2021-06-16 21:58:36 +03:00
Nikita Bobko
c954fa4900
Make it possible to attach community version of kotlin-ide
2021-06-16 21:58:34 +03:00
Nikita Bobko
02a56a3077
[imltogradle] Fix 'Configuration with name 'compileOnlyApi' not found'
2021-06-14 16:56:55 +02:00
Nikita Bobko
ce0bef6b60
Update 211 platform version for Kotlin plugin
2021-06-14 16:56:55 +02:00
Nikita Bobko
3bf7eef4d8
[imltogradle] Generate maven repos based on 'jarRepositories.xml' from Community
...
This commit minimizes difference between build.gradle.kts
files generated from ultimate & community infrastructure
2021-06-14 16:56:55 +02:00
Nikita Bobko
8bb98f8f86
[imltogradle] Do not resolve transitive dependencies in gralde if don't resolve them in JPS
...
This fixes problems of Gradle not being possible to find transitive maven artifacts
if actually we don't need them
2021-06-09 15:16:18 +02:00
Nikita Bobko
bf287c0b85
[imltogradle] Don't generate unnecessary tests-jar with real dependencies when a module doesn't have any source root
...
This helps to prevent "fake" circular dependencies when
module A depends on tests of module B but module B doesn't have test source roots
In particular this commit fixes when running `:kotlin-ide.kotlin.generators:testClasses` task:
```
Circular dependency between the following tasks:
:kotlin-ide.kotlin.gradle.gradle-tooling:compileTestJava
+--- :kotlin-ide.kotlin.gradle.gradle-tooling:compileTestKotlin
| \--- :kotlin-ide.kotlin.test-framework:testJar
| +--- :kotlin-ide.kotlin.test-framework:compileTestKotlin
| | +--- :kotlin-ide.kotlin.idea:testJar
| | | +--- :kotlin-ide.kotlin.idea:compileTestKotlin
| | | | \--- :kotlin-ide.kotlin.gradle.gradle-tooling:testJar
| | | | +--- :kotlin-ide.kotlin.gradle.gradle-tooling:compileTestKotlin (*)
| | | | \--- :kotlin-ide.kotlin.gradle.gradle-tooling:testClasses
| | | | \--- :kotlin-ide.kotlin.gradle.gradle-tooling:compileTestJava (*)
| | | \--- :kotlin-ide.kotlin.idea:testClasses
| | | \--- :kotlin-ide.kotlin.idea:compileTestJava
| | | +--- :kotlin-ide.kotlin.gradle.gradle-tooling:testJar (*)
| | | \--- :kotlin-ide.kotlin.idea:compileTestKotlin (*)
| | \--- :kotlin-ide.kotlin.jvm:testJar
| | +--- :kotlin-ide.kotlin.jvm:compileTestKotlin
| | | +--- :kotlin-ide.kotlin.gradle.gradle-tooling:testJar (*)
| | | +--- :kotlin-ide.kotlin.idea:testJar (*)
| | | \--- :kotlin-ide.kotlin.repl:testJar
| | | +--- :kotlin-ide.kotlin.repl:compileTestKotlin
| | | | \--- :kotlin-ide.kotlin.idea:testJar (*)
| | | \--- :kotlin-ide.kotlin.repl:testClasses
| | | \--- :kotlin-ide.kotlin.repl:compileTestJava
| | | +--- :kotlin-ide.kotlin.idea:testJar (*)
| | | \--- :kotlin-ide.kotlin.repl:compileTestKotlin (*)
| | \--- :kotlin-ide.kotlin.jvm:testClasses
| | \--- :kotlin-ide.kotlin.jvm:compileTestJava
| | +--- :kotlin-ide.kotlin.gradle.gradle-tooling:testJar (*)
| | +--- :kotlin-ide.kotlin.idea:testJar (*)
| | +--- :kotlin-ide.kotlin.jvm:compileTestKotlin (*)
| | \--- :kotlin-ide.kotlin.repl:testJar (*)
| \--- :kotlin-ide.kotlin.test-framework:testClasses
| \--- :kotlin-ide.kotlin.test-framework:compileTestJava
| +--- :kotlin-ide.kotlin.idea:testJar (*)
| +--- :kotlin-ide.kotlin.jvm:testJar (*)
| \--- :kotlin-ide.kotlin.test-framework:compileTestKotlin (*)
\--- :kotlin-ide.kotlin.test-framework:testJar (*)
```
2021-06-08 17:15:17 +02:00
Nikita Bobko
af12b2fdf0
[imltogradle] Replace "Exported transitive dependency" with original module name reference
2021-05-28 14:03:07 +02:00
Nikita Bobko
6a7770573c
[imltogradle] Support attaching 211 IDEA
2021-05-28 14:03:07 +02:00
Nikita Bobko
09321e5e41
Implement ide-iml-to-gradle-generator
...
This module is used to generate build.gradle.kts files
of Kotlin IDE plugin
2021-05-20 16:09:14 +02:00