diff --git a/common-develocity-sbt-configuration/build.sbt b/common-develocity-sbt-configuration/build.sbt index b4161a98f..57199fc85 100644 --- a/common-develocity-sbt-configuration/build.sbt +++ b/common-develocity-sbt-configuration/build.sbt @@ -1,13 +1,12 @@ // You can configure the Develocity sbt plugin to publish Build Scans to your Develocity server // by adding the following configuration to your project's build.sbt file -Global / gradleEnterpriseConfiguration := - GradleEnterpriseConfiguration( +ThisBuild / develocityConfiguration := + DevelocityConfiguration( server = Server( url = Some(url("https://develocity-samples.gradle.com")), // adjust to your Develocity server allowUntrusted = false), // ensure a trusted certificate is configured buildScan = BuildScan( - publishConfig = PublishConfig.Always, backgroundUpload = !sys.env.get("CI").exists(_.toBoolean))) lazy val `common-develocity-sbt-configuration` = (project in file(".")) // adjust to your project name diff --git a/common-develocity-sbt-configuration/project/build.properties b/common-develocity-sbt-configuration/project/build.properties new file mode 100644 index 000000000..04267b14a --- /dev/null +++ b/common-develocity-sbt-configuration/project/build.properties @@ -0,0 +1 @@ +sbt.version=1.9.9 diff --git a/common-develocity-sbt-configuration/plugins.sbt b/common-develocity-sbt-configuration/project/plugins.sbt similarity index 56% rename from common-develocity-sbt-configuration/plugins.sbt rename to common-develocity-sbt-configuration/project/plugins.sbt index 6fb95cc2d..cd0c77877 100644 --- a/common-develocity-sbt-configuration/plugins.sbt +++ b/common-develocity-sbt-configuration/project/plugins.sbt @@ -1,4 +1,5 @@ // You apply the Develocity sbt plugin to your build by adding the following // configuration block to a new or existing project/plugins.sbt file in your sbt project -addSbtPlugin("com.gradle" % "sbt-gradle-enterprise" % "0.10.1") +addSbtPlugin("com.gradle" % "sbt-develocity" % "1.0") +addSbtPlugin("com.gradle" % "sbt-develocity-common-custom-user-data" % "1.0") \ No newline at end of file