Flywheel/common/build.gradle

37 lines
950 B
Groovy
Raw Normal View History

2024-04-17 21:05:04 +02:00
base {
archivesName = "flywheel-${project.name}-${artifact_minecraft_version}"
}
dependencies {
modCompileOnly "net.fabricmc:fabric-loader:$fabric_loader_version"
2024-04-17 21:59:44 +02:00
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
2024-04-17 21:05:04 +02:00
}
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 {
2024-04-17 21:21:28 +02:00
url "file://${rootProject.projectDir}/mcmodsrepo"
2024-04-17 21:05:04 +02:00
}
if (project.hasProperty('mavendir')) {
maven { url rootProject.file(property('mavendir')) }
}
}
}