mirror of
https://github.com/FabricMC/fabric
synced 2026-08-19 06:26:07 -04:00
Move mixin configs to their own sourceset (#5292)
This commit is contained in:
parent
c80601bbf1
commit
9c219671db
4 changed files with 46 additions and 0 deletions
|
|
@ -3,3 +3,26 @@ version = getSubprojectVersion(project)
|
|||
loom {
|
||||
accessWidenerPath = file('src/client/resources/fabric-client-gametest-api-v1.classtweaker')
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
mixinConfig {
|
||||
compileClasspath += configurations.loaderLibraries
|
||||
}
|
||||
client {
|
||||
compileClasspath += mixinConfig.output
|
||||
runtimeClasspath += mixinConfig.output
|
||||
}
|
||||
}
|
||||
|
||||
configurations {
|
||||
clientImplementation.extendsFrom mixinConfigImplementation
|
||||
clientRuntimeOnly.extendsFrom mixinConfigRuntimeOnly
|
||||
}
|
||||
|
||||
dependencies {
|
||||
mixinConfigImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||
}
|
||||
|
||||
jar {
|
||||
from sourceSets.mixinConfig.output
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,3 +9,26 @@ moduleDependencies(project, [
|
|||
'fabric-renderer-api-v1',
|
||||
'fabric-rendering-v1'
|
||||
])
|
||||
|
||||
sourceSets {
|
||||
mixinConfig {
|
||||
compileClasspath += configurations.loaderLibraries
|
||||
}
|
||||
client {
|
||||
compileClasspath += mixinConfig.output
|
||||
runtimeClasspath += mixinConfig.output
|
||||
}
|
||||
}
|
||||
|
||||
configurations {
|
||||
clientImplementation.extendsFrom mixinConfigImplementation
|
||||
clientRuntimeOnly.extendsFrom mixinConfigRuntimeOnly
|
||||
}
|
||||
|
||||
dependencies {
|
||||
mixinConfigImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||
}
|
||||
|
||||
jar {
|
||||
from sourceSets.mixinConfig.output
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue