mirror of
https://github.com/architectury/architectury-templates.git
synced 2026-04-01 21:17:45 -05:00
Update templates to Loom 1.1
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
plugins {
|
||||
id "architectury-plugin" version "3.4-SNAPSHOT"
|
||||
id "dev.architectury.loom" version "0.12.0-SNAPSHOT" apply false
|
||||
id "dev.architectury.loom" version "1.1-SNAPSHOT" apply false
|
||||
}
|
||||
|
||||
architectury {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id "dev.architectury.loom" version "0.12.0-SNAPSHOT"
|
||||
id "dev.architectury.loom" version "1.1-SNAPSHOT"
|
||||
id "maven-publish"
|
||||
}
|
||||
|
||||
@@ -32,24 +32,6 @@ loom {
|
||||
// also, any names used in your access transformer will need to be
|
||||
// in SRG mapped ("func_" / "field_" with MCP class names) to work!
|
||||
// (both of these things may be subject to change in the future)
|
||||
|
||||
// this will create a data generator configuration
|
||||
// that you can use to automatically generate assets and data
|
||||
// using architectury loom. Note that this currently *only* works
|
||||
// for forge projects made with architectury loom!
|
||||
dataGen {
|
||||
mod project.mod_id
|
||||
}
|
||||
}
|
||||
|
||||
// This allows you to modify your launch configurations,
|
||||
// for example to add custom arguments. In this case, we want
|
||||
// the data generator to check our resources directory for
|
||||
// existing files. (see Forge's ExistingFileHelper for more info)
|
||||
launches {
|
||||
data {
|
||||
arg "--existing", file("src/main/resources").absolutePath
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,13 +121,7 @@ jar {
|
||||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
// add all the jars that should be included when publishing to maven
|
||||
artifact(remapJar) {
|
||||
builtBy remapJar
|
||||
}
|
||||
artifact(sourcesJar) {
|
||||
builtBy remapSourcesJar
|
||||
}
|
||||
from components.java
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user