mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-10 12:34:11 +01:00
7e5b2098b1
- Move common gradle business from each subproject into the rootProject.subprojects closure - Add fabric.mod.json - Register forge mixin configs - Make blaze3d mixins remap = false - Separate common, forge, and fabric mod entrypoints
37 lines
950 B
Groovy
37 lines
950 B
Groovy
base {
|
|
archivesName = "flywheel-${project.name}-${artifact_minecraft_version}"
|
|
}
|
|
|
|
dependencies {
|
|
modCompileOnly "net.fabricmc:fabric-loader:$fabric_loader_version"
|
|
|
|
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
|
|
}
|
|
|
|
test.configure {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
register('mavenJava', MavenPublication) {
|
|
from(components["java"])
|
|
artifactId = "flywheel-${project.name}-intermediary-${artifact_minecraft_version}"
|
|
}
|
|
register('mojmapJava', MavenPublication) {
|
|
artifact jar
|
|
artifact sourcesJar
|
|
artifactId = "flywheel-${project.name}-mojmap-${artifact_minecraft_version}"
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
url "file://${rootProject.projectDir}/mcmodsrepo"
|
|
}
|
|
|
|
if (project.hasProperty('mavendir')) {
|
|
maven { url rootProject.file(property('mavendir')) }
|
|
}
|
|
}
|
|
}
|