flan/common/build.gradle

63 lines
1.8 KiB
Groovy
Raw Normal View History

2021-06-13 21:07:10 +00:00
plugins {
2021-12-03 21:37:35 +00:00
id "com.github.johnrengelman.shadow" version "7.1.0"
2021-06-13 21:07:10 +00:00
}
configurations {
shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
}
2022-05-16 18:01:07 +00:00
repositories {
2022-11-24 14:26:26 +00:00
maven { url 'https://jitpack.io' }
maven {
name = "FTB"
url = "https://maven.saps.dev/minecraft"
}
2022-05-16 18:01:07 +00:00
maven {
name = "CurseMaven"
url "https://www.cursemaven.com"
}
}
2021-06-11 18:33:10 +00:00
dependencies {
// We depend on fabric loader here to use the fabric @Environment annotations and get the mixin dependencies
// Do NOT use other classes from fabric loader
modImplementation "net.fabricmc:fabric-loader:${rootProject.loader_version}"
implementation group: 'org.yaml', name: 'snakeyaml', version: '1.25'
2021-06-13 21:07:10 +00:00
shadowCommon group: 'org.yaml', name: 'snakeyaml', version: '1.25'
2022-05-16 18:01:07 +00:00
2022-11-24 14:26:26 +00:00
implementation 'com.github.BlueMap-Minecraft:BlueMapAPI:v2.2.1'
2021-06-11 18:33:10 +00:00
}
architectury {
2022-07-01 14:58:31 +00:00
common(rootProject.enabled_platforms.split(","))
2021-06-11 18:33:10 +00:00
}
2021-06-13 21:07:10 +00:00
shadowJar {
2022-08-03 18:24:26 +00:00
relocate "org.yaml.snakeyaml", "${rootProject.maven_group}.flan.shadow.org.yaml.snakeyaml"
2021-06-13 21:07:10 +00:00
configurations = [project.configurations.shadowCommon]
}
// Use the shadow jar instead of normal jar to shadow yaml lib properly into fabric builds
transformProductionFabric {
dependsOn shadowJar
input.set shadowJar.archiveFile
}
2021-06-11 22:15:14 +00:00
publishing {
publications {
mavenCommon(MavenPublication) {
artifactId = rootProject.archives_base_name
// add all the jars that should be included when publishing to maven
artifact remapJar
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
}
2023-06-11 19:47:12 +00:00
}