diff --git a/build.sbt b/build.sbt index 45dec13..eaea33c 100644 --- a/build.sbt +++ b/build.sbt @@ -14,14 +14,14 @@ * limitations under the License. */ -lazy val fastring = crossProject in file(".") +lazy val fastring = (file(".") / crossProject) lazy val fastringJS = fastring.js lazy val fastringJVM = fastring.jvm lazy val benchmark = project.dependsOn(fastringJVM) -organization in ThisBuild := "com.dongxiguo" +(ThisBuild / organization) := "com.dongxiguo" publish / skip := true diff --git a/project/build.properties b/project/build.properties index 0837f7a..6a9f038 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=1.3.13 +sbt.version=1.7.3 diff --git a/secret.sbt b/secret.sbt index f3db5e8..a3a2222 100644 --- a/secret.sbt +++ b/secret.sbt @@ -1,6 +1,6 @@ lazy val secret = { for (gist <- sys.env.get("SECRET_GIST")) yield { - val secret = project.settings(publish / skip := true).in { + val secret = ({ val secretDirectory = file(sourcecode.File()).getParentFile / "secret" IO.delete(secretDirectory) org.eclipse.jgit.api.Git @@ -10,7 +10,7 @@ lazy val secret = { .call() .close() secretDirectory - } + } / project.settings(publish / skip := true)) secret } }.getOrElse(null)