Skip to content

Commit

Permalink
Support Develocity Maven Extension 1.22
Browse files Browse the repository at this point in the history
Closes gh-90
  • Loading branch information
wilkinsona committed Aug 20, 2024
1 parent a01d576 commit 1fa7ab9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
14 changes: 13 additions & 1 deletion develocity-conventions-maven-extension/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id "build-conventions"
id "java"
id "maven-publish"
id "io.spring.compatibility-test" version "0.0.2"
}

description = "Develocity Conventions Maven extension"
Expand All @@ -14,7 +15,7 @@ dependencies {
compileOnly("org.apache.maven:maven-core:3.6.3")
compileOnly("org.codehaus.plexus:plexus-component-annotations:1.7.1")

implementation("com.gradle:develocity-maven-extension:1.21.5")
implementation("com.gradle:develocity-maven-extension:1.22")
implementation(project(":develocity-conventions-core"))

testImplementation("org.assertj:assertj-core:3.24.2")
Expand All @@ -29,3 +30,14 @@ publishing {
}
}
}

compatibilityTest {
useJUnitPlatform()
dependency('Develocity Maven Extension') { develocityExtension ->
develocityExtension.groupId = 'com.gradle'
develocityExtension.artifactId = 'develocity-maven-extension'
develocityExtension.versions = [
'1.21.6'
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,16 @@ public void setFileFingerprints(boolean capture) {
this.fileFingerprints = capture;
}

@Override
public boolean isResourceUsage() {
throw new UnsupportedOperationException();
}

@Override
public void setResourceUsage(boolean capture) {
throw new UnsupportedOperationException();
}

}

static final class TestBuildScanDataObfuscation implements BuildScanDataObfuscation {
Expand All @@ -300,6 +310,11 @@ public void username(Function<? super String, ? extends String> obfuscator) {
throw new UnsupportedOperationException();
}

@Override
public void externalProcessName(Function<? super String, ? extends String> obfuscator) {
throw new UnsupportedOperationException();
}

}

static final class TestBuildScanPublishing implements BuildScanPublishing {
Expand Down

0 comments on commit 1fa7ab9

Please sign in to comment.