Build: Add build scan server url setting
This commit is contained in:
@@ -22,7 +22,7 @@ buildscript {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.5")
|
||||
classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.6")
|
||||
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$buildSrcKotlinVersion")
|
||||
classpath("org.jetbrains.kotlin:kotlin-sam-with-receiver:$buildSrcKotlinVersion")
|
||||
}
|
||||
@@ -94,7 +94,7 @@ repositories {
|
||||
|
||||
dependencies {
|
||||
implementation(kotlin("stdlib", embeddedKotlinVersion))
|
||||
implementation("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.5")
|
||||
implementation("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.6")
|
||||
|
||||
implementation("net.rubygrapefruit:native-platform:${property("versions.native-platform")}")
|
||||
implementation("net.rubygrapefruit:native-platform-windows-amd64:${property("versions.native-platform")}")
|
||||
|
||||
@@ -20,7 +20,7 @@ buildscript {
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.5")
|
||||
classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.6")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = "org.jetbrains.kotlin"
|
||||
version = "0.0.5"
|
||||
version = "0.0.6"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
||||
@@ -90,6 +90,8 @@ class KotlinBuildProperties(
|
||||
val pushToBuildCache: Boolean = getBoolean("kotlin.build.cache.push", isTeamcityBuild)
|
||||
|
||||
val localBuildCacheEnabled: Boolean = getBoolean("kotlin.build.cache.local.enabled", !isTeamcityBuild)
|
||||
|
||||
val buildScanServer: String? = get("kotlin.build.scan.url") as String?
|
||||
}
|
||||
|
||||
private const val extensionName = "kotlinBuildProperties"
|
||||
|
||||
+11
-5
@@ -31,7 +31,7 @@ buildscript {
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.5")
|
||||
classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.6")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,15 +39,21 @@ plugins {
|
||||
id "com.gradle.enterprise" version "3.0"
|
||||
}
|
||||
|
||||
def buildProperties = BuildPropertiesKt.getKotlinBuildPropertiesForSettings(settings)
|
||||
|
||||
gradleEnterprise {
|
||||
buildScan {
|
||||
setTermsOfServiceUrl("https://gradle.com/terms-of-service")
|
||||
setTermsOfServiceAgree("yes")
|
||||
if (buildProperties.buildScanServer != null) {
|
||||
server = buildProperties.buildScanServer
|
||||
allowUntrustedServer = true
|
||||
publishAlways()
|
||||
} else {
|
||||
setTermsOfServiceUrl("https://gradle.com/terms-of-service")
|
||||
setTermsOfServiceAgree("yes")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def buildProperties = BuildPropertiesKt.getKotlinBuildPropertiesForSettings(settings)
|
||||
|
||||
BuildCacheKt.setupBuildCache(settings)
|
||||
|
||||
// modules
|
||||
|
||||
Reference in New Issue
Block a user