Slackbot
10/17/2023, 2:10 PMVampire
10/17/2023, 3:08 PMSebastian Schuberth
10/17/2023, 3:13 PMproject(":name") in another project's build.gradle.kts, but I don't want that project to exist "on disk", like by having its own build.gradle.kts file.Vampire
10/17/2023, 3:14 PMproject(":name") but not configure it, because that is the same discouraged bad practice as using allprojects { ... } or subprojects { ... } for the same reasons.Vampire
10/17/2023, 3:15 PMVampire
10/17/2023, 3:15 PMSebastian Schuberth
10/17/2023, 3:17 PMrunConfiguration via the idea-ext Gradle plugin that runs the application with the plugin loaded. But my Gradle project for the plugin should not actually contain a project for the application the plugin is for. Still, I need to refer to the application's JAR as part of the run configuration.Vampire
10/17/2023, 3:19 PMSebastian Schuberth
10/17/2023, 3:20 PMproject(":name"), Gradle warns me Project with path ':name' could not be found in root project 'app-plugin'.Vampire
10/17/2023, 3:20 PMSebastian Schuberth
10/17/2023, 3:21 PMmoduleName = project(":cli").idea.module.nameSebastian Schuberth
10/17/2023, 3:22 PMVampire
10/17/2023, 3:22 PMcli project?Sebastian Schuberth
10/17/2023, 3:23 PMVampire
10/17/2023, 3:23 PMSebastian Schuberth
10/17/2023, 3:24 PMVampire
10/17/2023, 3:24 PMname project?Sebastian Schuberth
10/17/2023, 3:25 PMVampire
10/17/2023, 3:25 PMVampire
10/17/2023, 3:25 PMVampire
10/17/2023, 3:26 PMmoduleName and instead use a custom configuration, that you then use to build a --classpath argument and that you set via jvmArgs on the run configurationSebastian Schuberth
10/17/2023, 3:27 PMVampire
10/17/2023, 3:27 PMVampire
10/17/2023, 3:27 PMOk, let's get back a step. In the end, what I'm trying to achieve is to programmatically create an IntelliJ run configuration that has JARs in its classpath that are not a dependency of any of the Gradle projects I currently have.Yes, I got that 🙂
Vampire
10/17/2023, 3:28 PMSebastian Schuberth
10/17/2023, 3:30 PMSebastian Schuberth
10/17/2023, 3:37 PMConfigurationContainer?Vampire
10/17/2023, 3:38 PMVampire
10/17/2023, 3:39 PMVampire
10/17/2023, 3:40 PMisCanBeConsumed to false.