mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-10 12:34:11 +01:00
8d4fe7722c
- Apply java, maven-publish to all projects - Prefer the tasks.named() syntax for configuring tasks - Separate shared configuration for platform projects into a separate configure block - Add more fields to processResources - Make helper methods static - Exclude duplicated package infos
33 lines
861 B
Groovy
33 lines
861 B
Groovy
dependencies {
|
|
modCompileOnly "net.fabricmc:fabric-loader:$fabric_loader_version"
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
|
|
}
|
|
|
|
test {
|
|
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')) }
|
|
}
|
|
}
|
|
}
|