Skip to content

Commit 2d21e65

Browse files
author
Gerrit Garbereder
committed
Move gradle scan to settings file and use enterprise plugin
1 parent 96d539d commit 2d21e65

8 files changed

Lines changed: 68 additions & 57 deletions

File tree

Task-Tracker-CLI/build.gradle.kts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
plugins {
22
kotlin("jvm") version "1.8.22"
33
id("org.jlleitschuh.gradle.ktlint") version "11.5.1"
4-
id("com.gradle.build-scan") version "3.3.4"
54
application
65
}
76

@@ -34,16 +33,3 @@ kotlin {
3433
application {
3534
mainClass.set("MainKt")
3635
}
37-
38-
gradleEnterprise {
39-
// configuration
40-
buildScan {
41-
42-
// Connecting to scans.gradle.com by agreeing to the terms of service
43-
termsOfServiceUrl = "https://gradle.com/terms-of-service"
44-
termsOfServiceAgree = "yes"
45-
46-
// Publishing a build scan for every build execution
47-
publishAlways()
48-
}
49-
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
11
rootProject.name = "Task-Tracker-CLI"
2+
3+
plugins {
4+
id("com.gradle.enterprise") version("3.14.1")
5+
}
6+
7+
gradleEnterprise {
8+
// configuration
9+
buildScan {
10+
11+
// Connecting to scans.gradle.com by agreeing to the terms of service
12+
termsOfServiceUrl = "https://gradle.com/terms-of-service"
13+
termsOfServiceAgree = "yes"
14+
15+
// Publishing a build scan for every build execution
16+
publishAlways()
17+
}
18+
}

Task-Tracker-Entities/build.gradle.kts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ plugins {
22
kotlin("multiplatform") version "1.8.22"
33
id("org.jlleitschuh.gradle.ktlint") version "11.5.1"
44
id("maven-publish")
5-
id("com.gradle.build-scan") version "3.3.4"
65
id("org.jetbrains.kotlinx.kover") version "0.7.3"
76
}
87

@@ -56,16 +55,3 @@ kotlin {
5655
val nativeTest by getting
5756
}
5857
}
59-
60-
gradleEnterprise {
61-
// configuration
62-
buildScan {
63-
64-
// Connecting to scans.gradle.com by agreeing to the terms of service
65-
termsOfServiceUrl = "https://gradle.com/terms-of-service"
66-
termsOfServiceAgree = "yes"
67-
68-
// Publishing a build scan for every build execution
69-
publishAlways()
70-
}
71-
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
11
rootProject.name = "Task-Tracker-Entities"
2+
3+
plugins {
4+
id("com.gradle.enterprise") version("3.14.1")
5+
}
6+
7+
gradleEnterprise {
8+
// configuration
9+
buildScan {
10+
11+
// Connecting to scans.gradle.com by agreeing to the terms of service
12+
termsOfServiceUrl = "https://gradle.com/terms-of-service"
13+
termsOfServiceAgree = "yes"
14+
15+
// Publishing a build scan for every build execution
16+
publishAlways()
17+
}
18+
}

Task-Tracker-Usecases-SQLite-Impl/build.gradle.kts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ plugins {
33
id("maven-publish")
44
id("app.cash.sqldelight") version "2.0.0-rc01"
55
id("org.jlleitschuh.gradle.ktlint") version "11.4.0"
6-
id("com.gradle.build-scan") version "3.3.4"
76
id("org.jetbrains.kotlinx.kover") version "0.7.3"
87
}
98

@@ -76,19 +75,6 @@ ktlint {
7675
}
7776
}
7877

79-
gradleEnterprise {
80-
// configuration
81-
buildScan {
82-
83-
// Connecting to scans.gradle.com by agreeing to the terms of service
84-
termsOfServiceUrl = "https://gradle.com/terms-of-service"
85-
termsOfServiceAgree = "yes"
86-
87-
// Publishing a build scan for every build execution
88-
publishAlways()
89-
}
90-
}
91-
9278
koverReport {
9379
filters {
9480
excludes {
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
11
rootProject.name = "Task-Tracker-Usecases-SQLite-Impl"
2+
3+
plugins {
4+
id("com.gradle.enterprise") version("3.14.1")
5+
}
6+
7+
gradleEnterprise {
8+
// configuration
9+
buildScan {
10+
11+
// Connecting to scans.gradle.com by agreeing to the terms of service
12+
termsOfServiceUrl = "https://gradle.com/terms-of-service"
13+
termsOfServiceAgree = "yes"
14+
15+
// Publishing a build scan for every build execution
16+
publishAlways()
17+
}
18+
}

Task-Tracker-Usecases/build.gradle.kts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ plugins {
33
id("maven-publish")
44
id("com.google.devtools.ksp") version "1.8.22-1.0.11"
55
id("org.jlleitschuh.gradle.ktlint") version "11.5.1"
6-
id("com.gradle.build-scan") version "3.3.4"
76
id("org.jetbrains.kotlinx.kover") version "0.7.3"
87
}
98

@@ -78,16 +77,3 @@ dependencies {
7877
add(it.name, "io.mockative:mockative-processor:2.0.1")
7978
}
8079
}
81-
82-
gradleEnterprise {
83-
// configuration
84-
buildScan {
85-
86-
// Connecting to scans.gradle.com by agreeing to the terms of service
87-
termsOfServiceUrl = "https://gradle.com/terms-of-service"
88-
termsOfServiceAgree = "yes"
89-
90-
// Publishing a build scan for every build execution
91-
publishAlways()
92-
}
93-
}
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
1-
21
rootProject.name = "Task-Tracker-Usecases"
2+
3+
plugins {
4+
id("com.gradle.enterprise") version("3.14.1")
5+
}
6+
7+
gradleEnterprise {
8+
// configuration
9+
buildScan {
10+
11+
// Connecting to scans.gradle.com by agreeing to the terms of service
12+
termsOfServiceUrl = "https://gradle.com/terms-of-service"
13+
termsOfServiceAgree = "yes"
14+
15+
// Publishing a build scan for every build execution
16+
publishAlways()
17+
}
18+
}

0 commit comments

Comments
 (0)