Comments (10)
按此格式导入依赖:
repositories {
maven {
name("Nyan Maven")
url("https://maven.hendrixshen.top")
}
}
dependencies {
modImplementation("top.hendrixshen:magiclib-<minecraft_version>:<magiclib_version>")
}
例:
repositories {
maven {
name("Nyan Maven")
url("https://maven.hendrixshen.top")
}
}
dependencies {
// MC版本号需将 '.' 替换为 '_',MagicLib可以通过Release页面找到,Assets里面的文件列表即为该版本支持MC版本。
modImplementation("top.hendrixshen:magiclib-1_19_3:0.6.212+a47eb26-stable")
}
from magiclib.
> Could not resolve all files for configuration ':modImplementation'.
> Could not find top.hendrixshen::magiclib-1_18_2.
Required by:
project :
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
maven {
name("magiclib")
url("https://maven.hendrixshen.top")
}
}
dependencies {
// MC版本号需将 '.' 替换为 '_',MagicLib可以通过Release页面找到,Assets里面的文件列表即为该版本支持MC版本。
modImplementation("top.hendrixshen::magiclib-1_18_2:0.6.221+5077f40-beta")
}
}
:(
请问是哪里出了问题
from magiclib.
maven { name("magiclib") url("https://maven.hendrixshen.top") } } dependencies { // MC版本号需将 '.' 替换为 '_',MagicLib可以通过Release页面找到,Assets里面的文件列表即为该版本支持MC版本。 modImplementation("top.hendrixshen::magiclib-1_18_2:0.6.221+5077f40-beta") ^这里是一个: } }
from magiclib.
> Could not resolve all files for configuration ':modImplementation'.
> Could not find top.hendrixshen:magiclib-1_18_2:0.6.221+5077f40-beta.
Searched in the following locations:
- file:/home/zhenai/Minecraft - Fabric/where it/.gradle/loom-cache/remapped_mods/top/hendrixshen/magiclib-1_18_2/0.6.221+5077f40-beta/magiclib-1_18_2-0.6.221+5077f40-beta.pom
- file:/home/zhenai/.gradle/caches/fabric-loom/minecraftMaven/top/hendrixshen/magiclib-1_18_2/0.6.221+5077f40-beta/magiclib-1_18_2-0.6.221+5077f40-beta.pom
- file:/home/zhenai/Minecraft - Fabric/where it/.gradle/loom-cache/minecraftMaven/top/hendrixshen/magiclib-1_18_2/0.6.221+5077f40-beta/magiclib-1_18_2-0.6.221+5077f40-beta.pom
- https://maven.fabricmc.net/top/hendrixshen/magiclib-1_18_2/0.6.221+5077f40-beta/magiclib-1_18_2-0.6.221+5077f40-beta.pom
- https://libraries.minecraft.net/top/hendrixshen/magiclib-1_18_2/0.6.221+5077f40-beta/magiclib-1_18_2-0.6.221+5077f40-beta.pom
- https://libraries.minecraft.net/top/hendrixshen/magiclib-1_18_2/0.6.221+5077f40-beta/magiclib-1_18_2-0.6.221+5077f40-beta.jar
- https://repo.maven.apache.org/maven2/top/hendrixshen/magiclib-1_18_2/0.6.221+5077f40-beta/magiclib-1_18_2-0.6.221+5077f40-beta.pom
Required by:
project :
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
:(
这个是为什么啊
from magiclib.
把你的build.gradle放出来。
from magiclib.
plugins {
id 'fabric-loom' version '1.1-SNAPSHOT'
id 'maven-publish'
}
version = project.mod_version
group = project.maven_group
repositories {
// Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
}
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
}
processResources {
inputs.property "version", project.version
filteringCharset "UTF-8"
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
def targetJavaVersion = 17
tasks.withType(JavaCompile).configureEach {
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
// If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8"
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
it.options.release = targetJavaVersion
}
}
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
archivesBaseName = project.archives_base_name
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
}
jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
}
// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
maven {
name("magiclib")
url("https://maven.hendrixshen.top")
}
}
dependencies {
// MC版本号需将 '.' 替换为 '_',MagicLib可以通过Release页面找到,Assets里面的文件列表即为该版本支持MC版本。
modImplementation("top.hendrixshen:magiclib-1_18_2:0.6.221+5077f40-beta")
}
}
from magiclib.
plugins {
id 'fabric-loom' version '1.1-SNAPSHOT'
id 'maven-publish'
}
version = project.mod_version
group = project.maven_group
repositories {
// Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
+ maven {
+ name("CurseForge Maven")
+ url("https://www.cursemaven.com")
+ }
+ maven {
+ name("Nyan Maven")
+ url("https://maven.hendrixshen.top")
+ }
}
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
+ modImplementation("top.hendrixshen:magiclib-1_18_2:0.6.221+5077f40-beta")
}
processResources {
inputs.property "version", project.version
filteringCharset "UTF-8"
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
def targetJavaVersion = 17
tasks.withType(JavaCompile).configureEach {
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
// If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8"
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
it.options.release = targetJavaVersion
}
}
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
archivesBaseName = project.archives_base_name
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
}
jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
}
// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
- maven {
- name("magiclib")
- url("https://maven.hendrixshen.top")
- }
}
- dependencies {
- // MC版本号需将 '.' 替换为 '_',MagicLib可以通过Release页面找到,Assets里面的文件列表即为该版本支持MC版本。
- modImplementation("top.hendrixshen:magiclib-1_18_2:0.6.221+5077f40-beta")
- }
}
from magiclib.
正在尝试中............
from magiclib.
A problem occurred configuring root project 'where it'.
> Could not resolve all files for configuration ':modImplementation'.
> Could not find curse.maven:carpet-349239:3725895.
Searched in the following locations:
- file:/home/zhenai/Minecraft - Fabric/where it/.gradle/loom-cache/remapped_mods/curse/maven/carpet-349239/3725895/carpet-349239-3725895.pom
- file:/home/zhenai/.gradle/caches/fabric-loom/minecraftMaven/curse/maven/carpet-349239/3725895/carpet-349239-3725895.pom
- file:/home/zhenai/Minecraft - Fabric/where it/.gradle/loom-cache/minecraftMaven/curse/maven/carpet-349239/3725895/carpet-349239-3725895.pom
- https://maven.fabricmc.net/curse/maven/carpet-349239/3725895/carpet-349239-3725895.pom
- https://libraries.minecraft.net/curse/maven/carpet-349239/3725895/carpet-349239-3725895.pom
- https://libraries.minecraft.net/curse/maven/carpet-349239/3725895/carpet-349239-3725895.jar
- https://repo.maven.apache.org/maven2/curse/maven/carpet-349239/3725895/carpet-349239-3725895.pom
- https://maven.hendrixshen.top/curse/maven/carpet-349239/3725895/carpet-349239-3725895.pom
Required by:
project : > top.hendrixshen:magiclib-1_18_2:0.6.221+5077f40-beta
> Could not find curse.maven:malilib-303119:3692220.
Searched in the following locations:
- file:/home/zhenai/Minecraft - Fabric/where it/.gradle/loom-cache/remapped_mods/curse/maven/malilib-303119/3692220/malilib-303119-3692220.pom
- file:/home/zhenai/.gradle/caches/fabric-loom/minecraftMaven/curse/maven/malilib-303119/3692220/malilib-303119-3692220.pom
- file:/home/zhenai/Minecraft - Fabric/where it/.gradle/loom-cache/minecraftMaven/curse/maven/malilib-303119/3692220/malilib-303119-3692220.pom
- https://maven.fabricmc.net/curse/maven/malilib-303119/3692220/malilib-303119-3692220.pom
- https://libraries.minecraft.net/curse/maven/malilib-303119/3692220/malilib-303119-3692220.pom
- https://libraries.minecraft.net/curse/maven/malilib-303119/3692220/malilib-303119-3692220.jar
- https://repo.maven.apache.org/maven2/curse/maven/malilib-303119/3692220/malilib-303119-3692220.pom
- https://maven.hendrixshen.top/curse/maven/malilib-303119/3692220/malilib-303119-3692220.pom
Required by:
project : > top.hendrixshen:magiclib-1_18_2:0.6.221+5077f40-beta
> Could not find curse.maven:modmenu-308702:4145213.
Searched in the following locations:
- file:/home/zhenai/Minecraft - Fabric/where it/.gradle/loom-cache/remapped_mods/curse/maven/modmenu-308702/4145213/modmenu-308702-4145213.pom
- file:/home/zhenai/.gradle/caches/fabric-loom/minecraftMaven/curse/maven/modmenu-308702/4145213/modmenu-308702-4145213.pom
- file:/home/zhenai/Minecraft - Fabric/where it/.gradle/loom-cache/minecraftMaven/curse/maven/modmenu-308702/4145213/modmenu-308702-4145213.pom
- https://maven.fabricmc.net/curse/maven/modmenu-308702/4145213/modmenu-308702-4145213.pom
- https://libraries.minecraft.net/curse/maven/modmenu-308702/4145213/modmenu-308702-4145213.pom
- https://libraries.minecraft.net/curse/maven/modmenu-308702/4145213/modmenu-308702-4145213.jar
- https://repo.maven.apache.org/maven2/curse/maven/modmenu-308702/4145213/modmenu-308702-4145213.pom
- https://maven.hendrixshen.top/curse/maven/modmenu-308702/4145213/modmenu-308702-4145213.pom
Required by:
project : > top.hendrixshen:magiclib-1_18_2:0.6.221+5077f40-beta
> Could not find curse.maven:in-game-account-switcher-232676:3993199.
Searched in the following locations:
- file:/home/zhenai/Minecraft - Fabric/where it/.gradle/loom-cache/remapped_mods/curse/maven/in-game-account-switcher-232676/3993199/in-game-account-switcher-232676-3993199.pom
- file:/home/zhenai/.gradle/caches/fabric-loom/minecraftMaven/curse/maven/in-game-account-switcher-232676/3993199/in-game-account-switcher-232676-3993199.pom
- file:/home/zhenai/Minecraft - Fabric/where it/.gradle/loom-cache/minecraftMaven/curse/maven/in-game-account-switcher-232676/3993199/in-game-account-switcher-232676-3993199.pom
- https://maven.fabricmc.net/curse/maven/in-game-account-switcher-232676/3993199/in-game-account-switcher-232676-3993199.pom
- https://libraries.minecraft.net/curse/maven/in-game-account-switcher-232676/3993199/in-game-account-switcher-232676-3993199.pom
- https://libraries.minecraft.net/curse/maven/in-game-account-switcher-232676/3993199/in-game-account-switcher-232676-3993199.jar
- https://repo.maven.apache.org/maven2/curse/maven/in-game-account-switcher-232676/3993199/in-game-account-switcher-232676-3993199.pom
- https://maven.hendrixshen.top/curse/maven/in-game-account-switcher-232676/3993199/in-game-account-switcher-232676-3993199.pom
Required by:
project : > top.hendrixshen:magiclib-1_18_2:0.6.221+5077f40-beta
> Could not find curse.maven:lazydfu-433518:3209972.
Searched in the following locations:
- file:/home/zhenai/Minecraft - Fabric/where it/.gradle/loom-cache/remapped_mods/curse/maven/lazydfu-433518/3209972/lazydfu-433518-3209972.pom
- file:/home/zhenai/.gradle/caches/fabric-loom/minecraftMaven/curse/maven/lazydfu-433518/3209972/lazydfu-433518-3209972.pom
- file:/home/zhenai/Minecraft - Fabric/where it/.gradle/loom-cache/minecraftMaven/curse/maven/lazydfu-433518/3209972/lazydfu-433518-3209972.pom
- https://maven.fabricmc.net/curse/maven/lazydfu-433518/3209972/lazydfu-433518-3209972.pom
- https://libraries.minecraft.net/curse/maven/lazydfu-433518/3209972/lazydfu-433518-3209972.pom
- https://libraries.minecraft.net/curse/maven/lazydfu-433518/3209972/lazydfu-433518-3209972.jar
- https://repo.maven.apache.org/maven2/curse/maven/lazydfu-433518/3209972/lazydfu-433518-3209972.pom
- https://maven.hendrixshen.top/curse/maven/lazydfu-433518/3209972/lazydfu-433518-3209972.pom
Required by:
project : > top.hendrixshen:magiclib-1_18_2:0.6.221+5077f40-beta
> Could not find curse.maven:imblockerfabric-399225:4271884.
Searched in the following locations:
- file:/home/zhenai/Minecraft - Fabric/where it/.gradle/loom-cache/remapped_mods/curse/maven/imblockerfabric-399225/4271884/imblockerfabric-399225-4271884.pom
- file:/home/zhenai/.gradle/caches/fabric-loom/minecraftMaven/curse/maven/imblockerfabric-399225/4271884/imblockerfabric-399225-4271884.pom
- file:/home/zhenai/Minecraft - Fabric/where it/.gradle/loom-cache/minecraftMaven/curse/maven/imblockerfabric-399225/4271884/imblockerfabric-399225-4271884.pom
- https://maven.fabricmc.net/curse/maven/imblockerfabric-399225/4271884/imblockerfabric-399225-4271884.pom
- https://libraries.minecraft.net/curse/maven/imblockerfabric-399225/4271884/imblockerfabric-399225-4271884.pom
- https://libraries.minecraft.net/curse/maven/imblockerfabric-399225/4271884/imblockerfabric-399225-4271884.jar
- https://repo.maven.apache.org/maven2/curse/maven/imblockerfabric-399225/4271884/imblockerfabric-399225-4271884.pom
- https://maven.hendrixshen.top/curse/maven/imblockerfabric-399225/4271884/imblockerfabric-399225-4271884.pom
Required by:
project : > top.hendrixshen:magiclib-1_18_2:0.6.221+5077f40-beta
> Could not find curse.maven:smooth-boot-415758:3692365.
Searched in the following locations:
- file:/home/zhenai/Minecraft - Fabric/where it/.gradle/loom-cache/remapped_mods/curse/maven/smooth-boot-415758/3692365/smooth-boot-415758-3692365.pom
- file:/home/zhenai/.gradle/caches/fabric-loom/minecraftMaven/curse/maven/smooth-boot-415758/3692365/smooth-boot-415758-3692365.pom
- file:/home/zhenai/Minecraft - Fabric/where it/.gradle/loom-cache/minecraftMaven/curse/maven/smooth-boot-415758/3692365/smooth-boot-415758-3692365.pom
- https://maven.fabricmc.net/curse/maven/smooth-boot-415758/3692365/smooth-boot-415758-3692365.pom
- https://libraries.minecraft.net/curse/maven/smooth-boot-415758/3692365/smooth-boot-415758-3692365.pom
- https://libraries.minecraft.net/curse/maven/smooth-boot-415758/3692365/smooth-boot-415758-3692365.jar
- https://repo.maven.apache.org/maven2/curse/maven/smooth-boot-415758/3692365/smooth-boot-415758-3692365.pom
- https://maven.hendrixshen.top/curse/maven/smooth-boot-415758/3692365/smooth-boot-415758-3692365.pom
Required by:
project : > top.hendrixshen:magiclib-1_18_2:0.6.221+5077f40-beta
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
eMMMMM
from magiclib.
ok,过了
:)
from magiclib.
Related Issues (20)
- [Bug] 1165 crash HOT 2
- [Question] 缺失: top/hendrixshen/magiclib/config/ConfigManager HOT 5
- [Bug] Error handling on malformed `farbric.mod.json` HOT 2
- [Bug] HOT 2
- Dependency Dashboard
- [Bug] page not found HOT 2
- [Bug] crash with fabric loader 0.14.19 HOT 2
- [Bug] 19.3 doesnt detect magiclib HOT 1
- [Bug] PCL2 cannot detect mod magiclib, version 0.7.329+ed83ba7-beta and magiclib-1.19.4-0.7.330+0499b91-beta HOT 3
- [Feature Request] Update to 1.20.1 HOT 5
- [Bug] Invalid Modrinth Primary File HOT 1
- [Bug] Curseforge File Upload Error HOT 1
- [Question] HOT 1
- [Feature Request] 增加配置项跟随依赖自动设为关闭和根据设置禁用
- [Bug] 版本错误 HOT 1
- [Bug] Small server log HOT 2
- 新版本masa与魔法类库冲突 他提示我需要下载0.7345 但我已经下载0.7364 HOT 1
- [Bug] HOT 1
- [Bug] 和reden同时使用时无法保存reden的设置 HOT 3
- [Bug] 1.20 版本缺漏 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magiclib.