Skip to content

Commit

Permalink
Move prompt generation and psi utils into separate module named core
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav0Art committed Feb 16, 2024
1 parent 72fcaed commit a3b85c2
Show file tree
Hide file tree
Showing 16 changed files with 516 additions and 393 deletions.
20 changes: 0 additions & 20 deletions PromptGenerator/build.gradle.kts

This file was deleted.

3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ dependencies {
implementation(files("lib/byte-buddy-agent-1.14.6.jar"))
implementation(files("lib/JUnitRunner.jar"))

implementation(project(":core"))

// validation dependencies
// https://mvnrepository.com/artifact/junit/junit
implementation("junit:junit:4.13")
Expand Down Expand Up @@ -182,6 +184,7 @@ tasks {
compileKotlin {
dependsOn("updateEvosuite")
dependsOn("copyJUnitRunnerLib")
dependsOn(":core:buildPlugin")
}
// Set the JVM compatibility versions
properties("javaVersion").let {
Expand Down
46 changes: 46 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

fun properties(key: String) = project.findProperty(key).toString()

plugins {
kotlin("jvm")
id("org.jetbrains.intellij")
}

group = "org.jetbrains.research"

repositories {
mavenCentral()
maven("https://cache-redirector.jetbrains.com/intellij-dependencies")
}

dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test")
compileOnly(kotlin("stdlib"))
}

// TODO: already configured in parent project, how to inherit it?
intellij {
version.set(properties("platformVersion"))
type.set(properties("platformType"))

plugins.set(properties("platformPlugins").split(',').map(String::trim).filter(String::isNotEmpty))
}

tasks {
runIde { enabled = false }
runIdeForUiTests { enabled = false }
buildSearchableOptions { enabled = false }

patchPluginXml {
sinceBuild.set(properties("pluginSinceBuild"))
untilBuild.set(properties("pluginUntilBuild"))
}
}


tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package org.jetbrains.research.testspark.tools.llm.generation
package org.jetbrains.research.testspark.core.generation


val importPattern = Regex(
pattern = "^import\\s+(static\\s)?((?:[a-zA-Z_]\\w*\\.)*[a-zA-Z_](?:\\w*\\.?)*)(?:\\.\\*)?;",
Expand Down
Loading

0 comments on commit a3b85c2

Please sign in to comment.