Skip to content

Commit 3b4bf6a

Browse files
committed
Ignore non sbt projects
1 parent 4134f2a commit 3b4bf6a

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

project-builder/build-revision.sh

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -185,24 +185,9 @@ function buildForScalaVersion(){
185185
revertBuildPatch
186186
## Sbt
187187
## Apparently built.sbt is a valid build file name. Accept any .sbt file
188-
elif ls repo/*.sbt 1> /dev/null 2>&1 ; then
189-
echo "sbt project found: ${isSbtProject}"
190-
echo "sbt" > $buildToolFile
191-
$scriptDir/sbt/prepare-project.sh "$project" "$repoDir" "$scalaVersion" "$projectConfig"
192-
createBuildPatch
193-
$scriptDir/sbt/build.sh "$repoDir" "$scalaVersion" "$targets" "$mvnRepoUrl" "$projectConfig" "$extraScalacOptions" "$disabledScalacOptions" "$extraLibraryDeps"
194-
revertBuildPatch
195-
## Scala-cli
196188
else
197-
echo "Not found sbt or mill build files, assuming scala-cli project"
198-
ls -l repo/
199-
echo "scala-cli" > $buildToolFile
200-
export COURSIER_REPOSITORIES="central|sonatype:releases|$mvnRepoUrl"
201-
scala-cli config power true
202-
scala-cli bloop exit
203-
scala-cli clean $scriptDir/scala-cli/
204-
scala-cli clean repo
205-
scala-cli $scriptDir/scala-cli/build.scala -- "$repoDir" "$scalaVersion" "$projectConfig" "$mvnRepoUrl" "$extraLibraryDeps" "$extraScalacOptions"
189+
echo "Ignoring non sbt build"
190+
echo "success" > build-status.txt
206191
fi
207192

208193
## After build steps

0 commit comments

Comments
 (0)