1 Star 0 Fork 10

src-oepkgs-oE-rv/xmvn

forked from src-openEuler/xmvn 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-Port-to-Gradle-4.4.1.patch 2.34 KB
一键复制 编辑 原始数据 按行查看 历史
maminjie 提交于 2020-09-14 13:00 . port to gradle 4.4.1
From 19874894ff867819344b27fb5b718a0084f65b41 Mon Sep 17 00:00:00 2001
From: maminjie <[email protected]>
Date: Mon, 14 Sep 2020 12:01:02 +0800
Subject: [PATCH] Port to Gradle 4.4.1
---
.../xmvn/connector/gradle/GradleResolver.java | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/xmvn-connector-gradle/src/main/java/org/fedoraproject/xmvn/connector/gradle/GradleResolver.java b/xmvn-connector-gradle/src/main/java/org/fedoraproject/xmvn/connector/gradle/GradleResolver.java
index 9e1a247..ba4a879 100644
--- a/xmvn-connector-gradle/src/main/java/org/fedoraproject/xmvn/connector/gradle/GradleResolver.java
+++ b/xmvn-connector-gradle/src/main/java/org/fedoraproject/xmvn/connector/gradle/GradleResolver.java
@@ -35,6 +35,7 @@ import org.gradle.api.internal.artifacts.repositories.AbstractArtifactRepository
import org.gradle.api.internal.artifacts.repositories.ResolutionAwareRepository;
import org.gradle.api.internal.artifacts.repositories.resolver.MetadataFetchingCost;
import org.gradle.api.internal.component.ArtifactType;
+import org.gradle.internal.component.external.model.ModuleDependencyMetadata;
import org.gradle.internal.component.external.model.DefaultModuleComponentArtifactMetadata;
import org.gradle.internal.component.external.model.DefaultMutableMavenModuleResolveMetadata;
import org.gradle.internal.component.external.model.FixedComponentArtifacts;
@@ -156,7 +157,7 @@ public class GradleResolver
}
@Override
- public void listModuleVersions( DependencyMetadata arg0, BuildableModuleVersionListingResolveResult arg1 )
+ public void listModuleVersions(ModuleDependencyMetadata dependency, BuildableModuleVersionListingResolveResult result)
{
logger.debug( "listModuleVersions() called, but it is NOT IMPLEMENTED" );
}
@@ -288,6 +289,12 @@ public class GradleResolver
DefaultExternalResourceMetaData metadata = new DefaultExternalResourceMetaData( pomPath.toUri(), 0, 0 );
return fileRepository.resource( pomPath.toFile(), pomPath.toUri(), metadata );
}
+
+ @Override
+ public LocallyAvailableExternalResource getMetaDataArtifact(ModuleDependencyMetadata dependencyMetadata, ArtifactType artifactType)
+ {
+ throw new UnsupportedOperationException();
+ }
@Override
public ComponentMetadataSupplier createMetadataSupplier()
--
2.23.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-oepkgs-oe-rv/xmvn.git
[email protected]:src-oepkgs-oe-rv/xmvn.git
src-oepkgs-oe-rv
xmvn
xmvn
master

搜索帮助