JetBrains / tc-sbt-runner

TeamCity plugin makes SBT runner
Apache License 2.0
14 stars 8 forks source link

Global sbt settings #4

Open timt opened 9 years ago

timt commented 9 years ago

Hi, I would like to be able to specify settings for sbt runner that will get applied to all build configurations that use it.

Specifically I want to be able to make sure it always uses our internal nexus, to resolve dependencies (as that is a proxy to the everything).

I can do this at the individual build configuration level by specifying the the following switches: -Dsbt.override.build.repos=true -Dsbt.repository.config=

As described in http://www.scala-sbt.org/0.13/docs/Proxy-Repositories.html

However I would like to specify this just once for the plugin and have all build configurations using sbt runner pick them up.

Tim

nafg commented 9 years ago

+1

michaelaltmann commented 8 years ago

+1

Earthson commented 8 years ago

+1

azhurbilo commented 7 years ago

according this lines https://github.com/JetBrains/tc-sbt-runner/blob/master/tc-sbt-runner-server/src/main/java/jetbrains/buildServer/sbt/SbtRunnerRunType.java#L14-L16

I see that it's possible ovveride default value with https://github.com/JetBrains/tc-sbt-runner/blob/master/tc-sbt-runner-common/src/main/java/jetbrains/buildServer/sbt/SbtRunnerConstants.java#L20

teamcity.sbt.defaultJvmArgs

but I tried add this variable in Agent file /srv/teamcity/conf/buildAgent.properties and it doesn't work. Or may be I did smth wrong?