|
1 | 1 | plugins { |
2 | | - `java-gradle-plugin` |
3 | | - `kotlin-dsl` |
4 | | - com.teamscale.`java-convention` |
5 | | - com.teamscale.coverage |
6 | | - com.teamscale.publish |
7 | | - alias(libs.plugins.pluginPublish) |
| 2 | + `java-gradle-plugin` |
| 3 | + `kotlin-dsl` |
| 4 | + com.teamscale.`java-convention` |
| 5 | + com.teamscale.coverage |
| 6 | + com.teamscale.publish |
| 7 | + alias(libs.plugins.pluginPublish) |
8 | 8 | } |
9 | 9 |
|
10 | 10 | java { |
11 | | - toolchain { |
12 | | - languageVersion.set(JavaLanguageVersion.of(11)) |
13 | | - } |
| 11 | + toolchain { |
| 12 | + languageVersion.set(JavaLanguageVersion.of(11)) |
| 13 | + } |
14 | 14 | } |
15 | 15 |
|
16 | 16 | tasks.withType<JavaCompile> { |
17 | | - options.release = 11 |
| 17 | + options.release = 11 |
18 | 18 | } |
19 | 19 |
|
20 | 20 | publishAs { |
21 | | - readableName.set("Teamscale Gradle Plugin") |
22 | | - description.set("A Gradle plugin that supports collecting Testwise Coverage and uploading reports to Teamscale.") |
| 21 | + readableName.set("Teamscale Gradle Plugin") |
| 22 | + description.set("A Gradle plugin that supports collecting Testwise Coverage and uploading reports to Teamscale.") |
23 | 23 | } |
24 | 24 |
|
25 | 25 | gradlePlugin { |
26 | | - website.set("https://www.teamscale.com/") |
27 | | - vcsUrl.set("https://github.com/cqse/teamscale-jacoco-agent") |
28 | | - plugins { |
29 | | - create("teamscalePlugin") { |
30 | | - id = "com.teamscale" |
31 | | - displayName = "Teamscale Gradle plugin" |
32 | | - implementationClass = "com.teamscale.TeamscalePlugin" |
33 | | - description = "Supports collecting Testwise Coverage and uploading reports to Teamscale." |
34 | | - tags.set(listOf("teamscale", "coverage", "tga", "test", "gap", "junit", "upload")) |
35 | | - } |
36 | | - create("teamscaleAggregationPlugin") { |
37 | | - id = "com.teamscale.aggregation" |
38 | | - displayName = "Teamscale Gradle aggregation plugin" |
39 | | - implementationClass = "com.teamscale.aggregation.TeamscaleAggregationPlugin" |
40 | | - description = "Supports aggregating test execution and coverage data." |
41 | | - tags.set(listOf("teamscale", "coverage", "tga", "test", "gap", "junit", "aggregation")) |
42 | | - } |
43 | | - } |
| 26 | + website.set("https://www.teamscale.com/") |
| 27 | + vcsUrl.set("https://github.com/cqse/teamscale-jacoco-agent") |
| 28 | + plugins { |
| 29 | + create("teamscalePlugin") { |
| 30 | + id = "com.teamscale" |
| 31 | + displayName = "Teamscale Gradle plugin" |
| 32 | + implementationClass = "com.teamscale.TeamscalePlugin" |
| 33 | + description = "Supports collecting Testwise Coverage and uploading reports to Teamscale." |
| 34 | + tags.set(listOf("teamscale", "coverage", "tga", "test", "gap", "junit", "upload")) |
| 35 | + } |
| 36 | + create("teamscaleAggregationPlugin") { |
| 37 | + id = "com.teamscale.aggregation" |
| 38 | + displayName = "Teamscale Gradle aggregation plugin" |
| 39 | + implementationClass = "com.teamscale.aggregation.TeamscaleAggregationPlugin" |
| 40 | + description = "Supports aggregating test execution and coverage data." |
| 41 | + tags.set(listOf("teamscale", "coverage", "tga", "test", "gap", "junit", "aggregation")) |
| 42 | + } |
| 43 | + } |
44 | 44 | } |
45 | 45 |
|
46 | 46 | dependencies { |
47 | | - implementation(project(":teamscale-client")) |
48 | | - implementation(project(":report-generator")) |
49 | | - implementation(gradleApi()) |
50 | | - implementation(libs.jgit) |
51 | | - implementation(libs.jackson.databind) |
52 | | - testImplementation(libs.okio) |
53 | | - testImplementation(project(":common-system-test")) |
| 47 | + implementation(project(":teamscale-client")) |
| 48 | + implementation(project(":report-generator")) |
| 49 | + implementation(gradleApi()) |
| 50 | + implementation(libs.jgit) |
| 51 | + implementation(libs.jackson.databind) |
| 52 | + testImplementation(libs.okio) |
| 53 | + testImplementation(project(":common-system-test")) |
54 | 54 | } |
55 | 55 |
|
56 | 56 | tasks.processResources { |
57 | | - inputs.property("version", version) |
58 | | - filesMatching("**/plugin.properties") { |
59 | | - filter { |
60 | | - it.replace("%PLUGIN_VERSION_TOKEN_REPLACED_DURING_BUILD%", version.toString()) |
61 | | - } |
62 | | - } |
| 57 | + inputs.property("version", version) |
| 58 | + filesMatching("**/plugin.properties") { |
| 59 | + filter { |
| 60 | + it.replace("%PLUGIN_VERSION_TOKEN_REPLACED_DURING_BUILD%", version.toString()) |
| 61 | + } |
| 62 | + } |
63 | 63 | } |
64 | 64 |
|
65 | 65 | tasks.test { |
66 | | - dependsOn(":agent:publishToMavenLocal") |
67 | | - dependsOn(":impacted-test-engine:publishToMavenLocal") |
68 | | - dependsOn(":teamscale-client:publishToMavenLocal") |
69 | | - dependsOn(":tia-client:publishToMavenLocal") |
70 | | - dependsOn(":report-generator:publishToMavenLocal") |
| 66 | + dependsOn(":agent:publishToMavenLocal") |
| 67 | + dependsOn(":impacted-test-engine:publishToMavenLocal") |
| 68 | + dependsOn(":teamscale-client:publishToMavenLocal") |
| 69 | + dependsOn(":tia-client:publishToMavenLocal") |
| 70 | + dependsOn(":report-generator:publishToMavenLocal") |
71 | 71 | } |
0 commit comments