fix: 修复无法构建fabric环境问题
This commit is contained in:
parent
d6617bf3ce
commit
db7fe0b8f0
|
|
@ -42,6 +42,7 @@ repositories {
|
|||
name = 'BlameJared'
|
||||
url = 'https://maven.blamejared.com'
|
||||
}
|
||||
maven { url 'https://maven.covers1624.net/' }
|
||||
}
|
||||
|
||||
// Declare capabilities on the outgoing configurations.
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ clean {
|
|||
delete 'generated'
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
def loaderAttribute = Attribute.of('io.github.mcgradleconventions.loader', String)
|
||||
['apiElements', 'runtimeElements', 'sourcesElements', 'javadocElements'].each { variant ->
|
||||
try {
|
||||
|
|
@ -65,4 +64,3 @@ afterEvaluate {
|
|||
} catch (Exception ignored) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'multiloader-loader'
|
||||
id 'fabric-loom'
|
||||
id 'net.fabricmc.fabric-loom'
|
||||
}
|
||||
dependencies {
|
||||
minecraft "com.mojang:minecraft:${minecraft_version}"
|
||||
|
|
@ -134,7 +134,6 @@ loom {
|
|||
}
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
def loaderAttribute = Attribute.of('io.github.mcgradleconventions.loader', String)
|
||||
['apiElements', 'runtimeElements', 'sourcesElements', 'javadocElements', 'includeInternal', 'modCompileClasspath'].each { variant ->
|
||||
try {
|
||||
|
|
@ -160,4 +159,3 @@ afterEvaluate {
|
|||
} catch (Exception ignored) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -108,7 +108,6 @@ tasks.named('build') {
|
|||
sourceSets.main.resources.srcDir project(':common').file('src/generated/resources')
|
||||
|
||||
|
||||
afterEvaluate {
|
||||
def loaderAttribute = Attribute.of('io.github.mcgradleconventions.loader', String)
|
||||
['apiElements', 'runtimeElements', 'sourcesElements', 'javadocElements'].each { variant ->
|
||||
try {
|
||||
|
|
@ -134,4 +133,3 @@ afterEvaluate {
|
|||
} catch (Exception ignored) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user