Skip to content

Commit

Permalink
Migrated to the gradle plugin 2.2-SNAPSHOT
Browse files Browse the repository at this point in the history
bundledModule are necessary to workaround current bugs
  • Loading branch information
hurricup committed Dec 2, 2024
1 parent 783bd3f commit f9bdb10
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 9 deletions.
8 changes: 7 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ buildscript {
plugins {
id("idea")
id("jacoco")
id("org.jetbrains.intellij.platform") version "2.0.1"
id("org.jetbrains.intellij.platform") version "2.2.0-SNAPSHOT"
id("org.jetbrains.grammarkit") version "2022.3.2.2"
id("com.github.kt3k.coveralls") version "2.12.2"
id("org.sonarqube") version "6.0.1.5171"
Expand Down Expand Up @@ -200,9 +200,15 @@ allprojects {
buildSearchableOptions {
enabled = false
}
prepareJarSearchableOptions {
enabled = false
}
verifyPlugin {
enabled = false
}
verifyPluginProjectConfiguration {
enabled = false
}
publishPlugin {
enabled = false
}
Expand Down
10 changes: 10 additions & 0 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ dependencies {
}



tasks {
buildPlugin {
archiveBaseName.set("lang.perl5")
Expand All @@ -94,4 +95,13 @@ tasks {
intoChild(intellijPlatform.projectName.map { projectName -> "$projectName/perl" })
.from(file("scripts"))
}

test {
dependencies {
intellijPlatform {
bundledModule("intellij.platform.coverage.agent")
bundledModule("intellij.profiler.common")
}
}
}
}
1 change: 1 addition & 0 deletions plugin/coverage/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ dependencies {
val platformVersionProvider: Provider<String> by rootProject.extra
create("IC", platformVersionProvider.get(), useInstaller = providers.gradleProperty("useInstaller").get().toBoolean())
bundledPlugins(providers.gradleProperty("coveragePlugin").get())
bundledModule("intellij.platform.coverage.agent")
}
}
1 change: 1 addition & 0 deletions plugin/profiler/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ dependencies {
intellijPlatform {
val platformVersionProvider: Provider<String> by rootProject.extra
create("IU", platformVersionProvider.get(), useInstaller = properties("useInstaller").get().toBoolean())
bundledModule("intellij.profiler.common")
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,13 @@
@Category(Light.class)
public abstract class PerlInstrumentationTestCase extends BasePlatformTestCase {

protected static final String PLUGIN_PATTERN_STRING = "/plugin/build/libs/plugin-.+?\\.jar!";
// this is wrong, should be build/libs/lang\\.embedded-.+?\\.jar!
protected static final String EMBEDDED_PATTERN_STRING = "/embedded/core/build/libs/core-.+?\\.jar";
protected static final String MOJO_PATTERN_STRING = "/mojo/core/build/libs/core-.+?\\.jar!";
protected static final String TT2_PATTERN_STRING = "/tt2/core/build/libs/core-.+?\\.jar!";
protected static final String MASON_FRAMEWORK_PATTERN_STRING = "/mason/framework/build/libs/lang\\.mason\\.framework-.+?\\.jar!";
protected static final String MASON_PATTERN_STRING = "/mason/htmlmason/core/build/libs/core-.+?\\.jar!";
protected static final String MASON2_PATTERN_STRING = "/mason/mason2/core/build/libs/core-.+?\\.jar!";
protected static final String PLUGIN_PATTERN_STRING = "lib/plugin-.+?\\.jar!";
protected static final String EMBEDDED_PATTERN_STRING = "lib/lang\\.embedded-.+?\\.jar";
protected static final String MOJO_PATTERN_STRING = "lib/lang\\.mojo-.+?\\.jar!";
protected static final String TT2_PATTERN_STRING = "lib/lang\\.tt2-.+?\\.jar!";
protected static final String MASON_FRAMEWORK_PATTERN_STRING = "lib/lang.mason.framework-.+?\\.jar!";
protected static final String MASON_PATTERN_STRING = "lib/lang.mason.htmlmason-.+?\\.jar!";
protected static final String MASON2_PATTERN_STRING = "lib/lang.mason.mason2-.+?\\.jar!";

private final @NotNull Class<?> myClass;

Expand Down

0 comments on commit f9bdb10

Please sign in to comment.