From da53923b051e41c0541af24ce73ba3bc30928b67 Mon Sep 17 00:00:00 2001 From: sleefd Date: Tue, 12 Dec 2023 20:12:30 +0800 Subject: [PATCH] fix script path to support multi-module project --- build.sbt | 2 +- src/main/scala/sbtcurl/CurlPlugin.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index 634653f..f2d111b 100644 --- a/build.sbt +++ b/build.sbt @@ -1,4 +1,4 @@ -version := "0.1.0" +version := "0.1.1-SNAPSHOT" organization := "me.yceel" val publishSettings = Seq( diff --git a/src/main/scala/sbtcurl/CurlPlugin.scala b/src/main/scala/sbtcurl/CurlPlugin.scala index 3057548..3eae3c9 100644 --- a/src/main/scala/sbtcurl/CurlPlugin.scala +++ b/src/main/scala/sbtcurl/CurlPlugin.scala @@ -29,7 +29,7 @@ object CurlPlugin extends AutoPlugin { lazy val curlTestSettings: Seq[Def.Setting[_]] = Seq( curlTestScript := { - val base = (LocalRootProject / baseDirectory).value + val base = baseDirectory.value val projectDir = base / "project" val files = List( base / "curl-script",