Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions metadata/org.mockito/mockito-core/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"org.mockito"
],
"metadata-version": "5.0.0",
"source-code-url": "https://repo.maven.apache.org/maven2/org/mockito/mockito-core/5.0.0/mockito-core-5.0.0-sources.jar",
"repository-url": "https://github.com/mockito/mockito",
"test-code-url": "https://github.com/mockito/mockito/tree/v5.0.0/src/test",
"documentation-url": "https://repo.maven.apache.org/maven2/org/mockito/mockito-core/5.0.0/mockito-core-5.0.0-javadoc.jar",
"tested-versions": [
"5.0.0",
"5.1.0",
Expand Down
4 changes: 4 additions & 0 deletions metadata/org.opengauss/opengauss-jdbc/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"org.opengauss"
],
"metadata-version": "3.1.0-og",
"source-code-url": "https://repo.maven.apache.org/maven2/org/opengauss/opengauss-jdbc/3.1.0-og/opengauss-jdbc-3.1.0-og-sources.jar",
"repository-url": "https://gitee.com/opengauss/openGauss-connector-jdbc",
"test-code-url": "https://gitee.com/opengauss/openGauss-connector-jdbc/tree/v3.1.0/pgjdbc/src/test",
"documentation-url": "https://gitee.com/opengauss/openGauss-connector-jdbc/tree/v3.1.0/docs",
"tested-versions": [
"3.1.0-og"
]
Expand Down
8 changes: 8 additions & 0 deletions metadata/org.postgresql/postgresql/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"org.postgresql"
],
"metadata-version": "42.7.3",
"source-code-url": "https://repo1.maven.org/maven2/org/postgresql/postgresql/42.7.3/postgresql-42.7.3-sources.jar",
"repository-url": "https://github.com/pgjdbc/pgjdbc",
"test-code-url": "https://repo1.maven.org/maven2/org/postgresql/postgresql/42.7.3/postgresql-42.7.3-jdbc-src.tar.gz",
"documentation-url": "https://repo1.maven.org/maven2/org/postgresql/postgresql/42.7.3/postgresql-42.7.3-javadoc.jar",
"tested-versions": [
"42.7.3",
"42.7.4",
Expand All @@ -21,6 +25,10 @@
"org.postgresql"
],
"metadata-version": "42.3.4",
"source-code-url": "https://repo1.maven.org/maven2/org/postgresql/postgresql/42.3.4/postgresql-42.3.4-sources.jar",
"repository-url": "https://github.com/pgjdbc/pgjdbc",
"test-code-url": "https://repo1.maven.org/maven2/org/postgresql/postgresql/42.3.4/postgresql-42.3.4-jdbc-src.tar.gz",
"documentation-url": "https://repo1.maven.org/maven2/org/postgresql/postgresql/42.3.4/postgresql-42.3.4-javadoc.jar",
"tested-versions": [
"42.3.4"
]
Expand Down
4 changes: 4 additions & 0 deletions metadata/org.quartz-scheduler/quartz/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"org.quartz"
],
"metadata-version": "2.3.2",
"source-code-url": "https://repo.maven.apache.org/maven2/org/quartz-scheduler/quartz/2.3.2/quartz-2.3.2-sources.jar",
"repository-url": "https://github.com/quartz-scheduler/quartz",
"test-code-url": "https://github.com/quartz-scheduler/quartz/tree/v2.3.2/quartz/src/test",
"documentation-url": "https://repo.maven.apache.org/maven2/org/quartz-scheduler/quartz/2.3.2/quartz-2.3.2-javadoc.jar",
"tested-versions": [
"2.3.2",
"2.4.0",
Expand Down
4 changes: 4 additions & 0 deletions metadata/org.rocksdb/rocksdbjni/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"org.rocksdb"
],
"metadata-version": "7.9.2",
"source-code-url": "https://repo.maven.apache.org/maven2/org/rocksdb/rocksdbjni/7.9.2/rocksdbjni-7.9.2-sources.jar",
"repository-url": "https://github.com/facebook/rocksdb",
"test-code-url": "https://github.com/facebook/rocksdb/tree/v7.9.2/java/src/test",
"documentation-url": "https://repo.maven.apache.org/maven2/org/rocksdb/rocksdbjni/7.9.2/rocksdbjni-7.9.2-javadoc.jar",
"tested-versions": [
"7.9.2",
"7.10.2",
Expand Down
12 changes: 10 additions & 2 deletions metadata/org.testcontainers/testcontainers/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
],
"allowed-packages" : [
"org.testcontainers"
]
],
"source-code-url" : "https://repo1.maven.org/maven2/org/testcontainers/testcontainers/1.19.8/testcontainers-1.19.8-sources.jar",
"repository-url" : "https://github.com/testcontainers/testcontainers-java",
"test-code-url" : "https://github.com/testcontainers/testcontainers-java/tree/1.19.8/core/src/test",
"documentation-url" : "https://repo1.maven.org/maven2/org/testcontainers/testcontainers/1.19.8/testcontainers-1.19.8-javadoc.jar"
},
{
"metadata-version" : "1.17.6",
Expand All @@ -32,6 +36,10 @@
],
"allowed-packages" : [
"org.testcontainers"
]
],
"source-code-url" : "https://repo1.maven.org/maven2/org/testcontainers/testcontainers/1.17.6/testcontainers-1.17.6-sources.jar",
"repository-url" : "https://github.com/testcontainers/testcontainers-java",
"test-code-url" : "https://github.com/testcontainers/testcontainers-java/tree/1.17.6/core/src/test",
"documentation-url" : "https://repo1.maven.org/maven2/org/testcontainers/testcontainers/1.17.6/testcontainers-1.17.6-javadoc.jar"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"org.thymeleaf"
],
"metadata-version": "3.1.0.RELEASE",
"source-code-url": "https://repo1.maven.org/maven2/org/thymeleaf/extras/thymeleaf-extras-springsecurity6/3.1.0.RELEASE/thymeleaf-extras-springsecurity6-3.1.0.RELEASE-sources.jar",
"repository-url": "https://github.com/thymeleaf/thymeleaf",
"test-code-url": "https://github.com/thymeleaf/thymeleaf/tree/thymeleaf-3.1.0.RELEASE/tests/thymeleaf-tests-springsecurity6",
"documentation-url": "https://github.com/thymeleaf/thymeleaf/blob/thymeleaf-3.1.0.RELEASE/lib/thymeleaf-extras-springsecurity6/README.markdown",
"tested-versions": [
"3.1.0.RELEASE",
"3.1.1.RELEASE",
Expand Down
4 changes: 4 additions & 0 deletions metadata/org.thymeleaf/thymeleaf-spring6/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"org.thymeleaf"
],
"metadata-version": "3.1.0.RELEASE",
"source-code-url": "https://repo1.maven.org/maven2/org/thymeleaf/thymeleaf-spring6/3.1.0.RELEASE/thymeleaf-spring6-3.1.0.RELEASE-sources.jar",
"repository-url": "https://github.com/thymeleaf/thymeleaf",
"test-code-url": "https://github.com/thymeleaf/thymeleaf/tree/thymeleaf-3.1.0.RELEASE/tests/thymeleaf-tests-spring6",
"documentation-url": "https://www.thymeleaf.org/apidocs/thymeleaf-spring6/3.1.0.RELEASE/",
"tested-versions": [
"3.1.0.RELEASE",
"3.1.1.RELEASE",
Expand Down
5 changes: 5 additions & 0 deletions metadata/org.thymeleaf/thymeleaf/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
],
"metadata-version": "3.1.0.RELEASE",
"source-code-url": "https://repo1.maven.org/maven2/org/thymeleaf/thymeleaf/3.1.0.RELEASE/thymeleaf-3.1.0.RELEASE-sources.jar",
"repository-url": "https://github.com/thymeleaf/thymeleaf",
"test-code-url": "https://github.com/thymeleaf/thymeleaf/tree/thymeleaf-3.1.0.RELEASE/lib/thymeleaf/src/test",
"documentation-url": "https://github.com/thymeleaf/thymeleaf/blob/thymeleaf-3.1.0.RELEASE/README.txt",
"tested-versions": [
Expand All @@ -20,6 +21,10 @@
"org.thymeleaf"
],
"metadata-version": "3.1.0.M2",
"source-code-url": "https://repo1.maven.org/maven2/org/thymeleaf/thymeleaf/3.1.0.M2/thymeleaf-3.1.0.M2-sources.jar",
"repository-url": "https://github.com/thymeleaf/thymeleaf",
"test-code-url": "https://github.com/thymeleaf/thymeleaf/tree/thymeleaf-3.1.0.M2/lib/thymeleaf/src/test",
"documentation-url": "https://github.com/thymeleaf/thymeleaf/blob/thymeleaf-3.1.0.M2/README.txt",
"tested-versions": [
"3.1.0.M2"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import org.graalvm.internal.tck.harness.tasks.ValidateIndexFilesTask
import org.graalvm.internal.tck.harness.tasks.ListLibraryJarsInvocationTask
import org.graalvm.internal.tck.harness.tasks.GenerateDynamicAccessReportInvocationTask
import org.graalvm.internal.tck.harness.tasks.GenerateDynamicAccessCoverageReportTask
import org.graalvm.internal.tck.harness.tasks.SearchArtifactURLsTask
import org.graalvm.internal.tck.harness.tasks.PopulateArtifactURLs
import org.graalvm.internal.tck.utils.CoordinateUtils
import org.graalvm.internal.tck.utils.MetadataGenerationUtils
import org.graalvm.internal.tck.harness.tasks.JacocoTestReportInvocationTask
Expand Down Expand Up @@ -186,7 +186,7 @@ tasks.register("listCoordinates", DefaultTask) { task ->
}
}

tasks.register("populateArtifactURLs", SearchArtifactURLsTask.class) { task ->
tasks.register("populateArtifactURLs", PopulateArtifactURLs.class) { task ->
task.setDescription("Uses a coding agent command to fill source-code-url, repository-url, test-code-url, and documentation-url in matching metadata index entries.")
task.setGroup(METADATA_GROUP)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* source-code, repository, test-code, and documentation URLs in metadata index files.
*/
@SuppressWarnings("unused")
public class SearchArtifactURLsTask extends DefaultTask {
public class PopulateArtifactURLs extends DefaultTask {

private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
private static final String PROMPT_PLACEHOLDER = "{prompt}";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@

import static org.assertj.core.api.Assertions.assertThat;

class SearchArtifactURLsTaskTests {
class PopulateArtifactURLsTests {

@TempDir
Path tempDir;

@Test
void runPrintsPromptWithoutInvokingAgentForOpencodeRun() throws IOException, InterruptedException {
Project project = createProjectWithMetadata();
SearchArtifactURLsTask task = project.getTasks().create(
PopulateArtifactURLs task = project.getTasks().create(
"populateArtifactURLs",
SearchArtifactURLsTask.class
PopulateArtifactURLs.class
);
task.setCoordinatesOption("ch.qos.logback:logback-classic:1.4.1");
task.setAgentCommandOption("opencode run");
Expand Down Expand Up @@ -64,9 +64,9 @@ void runPrintsPromptWithoutInvokingAgentForOpencodeRun() throws IOException, Int
@Test
void runWithLimitSkipsPrePopulatedCoordinatesAndStillPrompts() throws IOException, InterruptedException {
Project project = createProjectWithMixedMetadata();
SearchArtifactURLsTask task = project.getTasks().create(
PopulateArtifactURLs task = project.getTasks().create(
"populateArtifactURLs",
SearchArtifactURLsTask.class
PopulateArtifactURLs.class
);
task.setAgentCommandOption("opencode run");
task.setLimitOption("1");
Expand All @@ -89,9 +89,9 @@ void runWithLimitSkipsPrePopulatedCoordinatesAndStillPrompts() throws IOExceptio
@Test
void runWithOverwriteExistingIncludesPrePopulatedCoordinates() throws IOException, InterruptedException {
Project project = createProjectWithMixedMetadata();
SearchArtifactURLsTask task = project.getTasks().create(
PopulateArtifactURLs task = project.getTasks().create(
"populateArtifactURLs",
SearchArtifactURLsTask.class
PopulateArtifactURLs.class
);
task.setAgentCommandOption("opencode run");
task.setOverwriteExistingOption(true);
Expand All @@ -116,9 +116,9 @@ void runWithOverwriteExistingIncludesPrePopulatedCoordinates() throws IOExceptio
@Test
void runWithVerifyArtifactSourcesAddsVerificationPromptSection() throws IOException, InterruptedException {
Project project = createProjectWithMetadata();
SearchArtifactURLsTask task = project.getTasks().create(
PopulateArtifactURLs task = project.getTasks().create(
"populateArtifactURLs",
SearchArtifactURLsTask.class
PopulateArtifactURLs.class
);
task.setCoordinatesOption("ch.qos.logback:logback-classic:1.4.1");
task.setAgentCommandOption("opencode run");
Expand Down
Loading