Skip to content

Commit

Permalink
avoid unsafe configuration resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-northlander committed May 28, 2024
1 parent dc8ec7e commit 311e687
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion integration/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ compileTestKotlin {
compilerOptions.jvmTarget.set(JvmTarget.JVM_11)
}

configurations { buildSudachiDict }

dependencies {
buildSudachiDict (project(':spi'))
compileOnly(project(':'))
compileOnly(project(':spi'))
testCompileOnly(project(':testlib'))
Expand All @@ -36,7 +39,7 @@ dependencies {
}

def compileSystemDictionary = tasks.register("compileTestDictionary", JavaExec) {
classpath = project(":spi").sourceSets.main.compileClasspath
classpath = configurations.buildSudachiDict
mainClass = "com.worksap.nlp.sudachi.dictionary.DictionaryBuilder"
defaultCharacterEncoding = "utf-8"
def dictRoot = rootProject.file("src/test/resources/dict").toPath()
Expand Down

0 comments on commit 311e687

Please sign in to comment.