start
This commit is contained in:
commit
e01376d7c8
95 changed files with 3730 additions and 0 deletions
77
🏗️templatetocopyeasily/build.gradle
Normal file
77
🏗️templatetocopyeasily/build.gradle
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
plugins {
|
||||
id 'babric-loom' version '1.5-SNAPSHOT'
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17
|
||||
|
||||
archivesBaseName = project.archives_base_name
|
||||
version = project.mod_version
|
||||
group = project.maven_group
|
||||
|
||||
loom {
|
||||
gluedMinecraftJar()
|
||||
customMinecraftManifest.set("https://babric.github.io/manifest-polyfill/${minecraft_version}.json")
|
||||
intermediaryUrl.set("https://maven.glass-launcher.net/babric/babric/intermediary/%1\$s/intermediary-%1\$s-v2.jar")
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name = 'Babric'
|
||||
url = 'https://maven.glass-launcher.net/babric'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||
mappings "babric:barn:${project.yarn_mappings}:v2"
|
||||
modImplementation "babric:fabric-loader:${project.loader_version}"
|
||||
|
||||
implementation "org.slf4j:slf4j-api:1.8.0-beta4"
|
||||
implementation "org.apache.logging.log4j:log4j-slf4j18-impl:2.16.0"
|
||||
}
|
||||
|
||||
processResources {
|
||||
inputs.property "version", project.version
|
||||
|
||||
filesMatching("fabric.mod.json") {
|
||||
expand "version": project.version
|
||||
}
|
||||
}
|
||||
|
||||
java {
|
||||
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
|
||||
// if it is present.
|
||||
// If you remove this line, sources will not be generated.
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
jar {
|
||||
from("LICENSE") {
|
||||
rename { "${it}_${project.archivesBaseName}" }
|
||||
}
|
||||
}
|
||||
|
||||
// configure the maven publication
|
||||
publishing {
|
||||
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
groupId = 'kn.kinfuyuki.mods'
|
||||
artifactId = 'vivacraft'
|
||||
version = project.version
|
||||
from components.java
|
||||
}
|
||||
}
|
||||
|
||||
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
|
||||
repositories {
|
||||
maven {
|
||||
url = uri("../_localmaven")
|
||||
}
|
||||
// Add repositories to publish to here.
|
||||
// Notice: This block does NOT have the same function as the block in the top level.
|
||||
// The repositories here will be used for publishing your artifact, not for
|
||||
// retrieving dependencies.
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue