Skip to content

Commit a01d576

Browse files
committed
Support Develocity Gradle Plugin 3.18
Closes gh-89
1 parent 7f3015d commit a01d576

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

develocity-conventions-gradle-plugin/build.gradle

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id "build-conventions"
33
id "java-gradle-plugin"
44
id "maven-publish"
5+
id "io.spring.compatibility-test" version "0.0.2"
56
}
67

78
description = "Develocity Conventions Gradle plugin"
@@ -13,7 +14,7 @@ repositories {
1314

1415
dependencies {
1516
compileOnly("com.gradle:develocity-gradle-plugin:${develocityPluginVersion}")
16-
17+
1718
implementation(project(":develocity-conventions-core"))
1819

1920
testImplementation("com.gradle:develocity-gradle-plugin:${develocityPluginVersion}")
@@ -32,3 +33,14 @@ gradlePlugin {
3233
}
3334
}
3435
}
36+
37+
compatibilityTest {
38+
useJUnitPlatform()
39+
dependency('Develocity Gradle Plugin') { develocityPlugin ->
40+
develocityPlugin.groupId = 'com.gradle'
41+
develocityPlugin.artifactId = 'develocity-gradle-plugin'
42+
develocityPlugin.versions = [
43+
'3.17.2'
44+
]
45+
}
46+
}

develocity-conventions-gradle-plugin/src/test/java/io/spring/develocity/conventions/gradle/TestBuildScanConfiguration.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ public void username(Function<? super String, ? extends String> obfuscator) {
148148
throw new UnsupportedOperationException();
149149
}
150150

151+
@Override
152+
public void externalProcessName(Function<? super String, ? extends String> obfuscator) {
153+
throw new UnsupportedOperationException();
154+
}
155+
151156
}
152157

153158
static final class TestBuildScanCaptureSettings implements BuildScanCaptureConfiguration {
@@ -169,6 +174,11 @@ public Property<Boolean> getTestLogging() {
169174
throw new UnsupportedOperationException();
170175
}
171176

177+
@Override
178+
public Property<Boolean> getResourceUsage() {
179+
throw new UnsupportedOperationException();
180+
}
181+
172182
}
173183

174184
static final class TestBuildScanPublishingConfiguration implements BuildScanPublishingConfiguration {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
version=0.0.20-SNAPSHOT
22

3-
develocityPluginVersion=3.17.2
3+
develocityPluginVersion=3.18
44
javaFormatVersion=0.0.43

0 commit comments

Comments
 (0)