generated from QuiltMC/quilt-template-mod
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from LostLuma/feature/build-script-improvements
Improve build logic
- Loading branch information
Showing
35 changed files
with
283 additions
and
276 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
maven { | ||
name = "Quilt" | ||
url = uri("https://maven.quiltmc.org/repository/release") | ||
} | ||
// Currently needed for Intermediary and other temporary dependencies | ||
maven { | ||
name = "Fabric" | ||
url = uri("https://maven.fabricmc.net/") | ||
} | ||
gradlePluginPortal() | ||
} | ||
|
||
dependencies { | ||
implementation(libs.quilt.loom) | ||
} | ||
|
||
kotlin { | ||
jvmToolchain(21) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
build-logic/src/main/groovy/kit_tunes.base_mod_conventions.gradle
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
build-logic/src/main/groovy/kit_tunes.game_mod_conventions.gradle
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
build-logic/src/main/groovy/kit_tunes.library_mod_conventions.gradle
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
build-logic/src/main/java/net/pixaurora/kit_tunes/build_logic/Property.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import net.pixaurora.kit_tunes.build_logic.ProjectMetadata | ||
|
||
plugins { | ||
id("base") | ||
} | ||
|
||
val metadata = ProjectMetadata(project) | ||
extra.set("metadata", metadata) | ||
|
||
version = metadata.version() | ||
|
||
base { | ||
archivesName = metadata.archiveName() | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { | ||
name = "Quilt" | ||
url = uri("https://maven.quiltmc.org/repository/release") | ||
} | ||
} | ||
|
||
tasks.withType<ProcessResources> { | ||
inputs.property("version", metadata.version()) | ||
|
||
filesMatching("quilt.mod.json") { | ||
expand(inputs.properties) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
plugins { | ||
id("java") | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
|
||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(8) | ||
} | ||
} | ||
|
||
tasks.withType<JavaCompile> { | ||
options.encoding = "UTF-8" | ||
|
||
javaCompiler = javaToolchains.compilerFor { | ||
languageVersion = JavaLanguageVersion.of(8) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
plugins { | ||
id("java") | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
|
||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(17) | ||
} | ||
} | ||
|
||
tasks.withType<JavaCompile> { | ||
options.encoding = "UTF-8" | ||
|
||
javaCompiler = javaToolchains.compilerFor { | ||
languageVersion = JavaLanguageVersion.of(17) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
plugins { | ||
id("java") | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
|
||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(21) | ||
} | ||
} | ||
|
||
tasks.withType<JavaCompile> { | ||
options.encoding = "UTF-8" | ||
|
||
javaCompiler = javaToolchains.compilerFor { | ||
languageVersion = JavaLanguageVersion.of(21) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import net.pixaurora.kit_tunes.build_logic.ProjectMetadata | ||
|
||
plugins { | ||
id("kit_tunes.base") | ||
id("org.quiltmc.loom") | ||
} | ||
|
||
val metadata = extra.get("metadata") as ProjectMetadata | ||
|
||
loom { | ||
mods.create(metadata.modId()) { | ||
sourceSet(sourceSets.main.get()) | ||
} | ||
} | ||
|
||
dependencies { | ||
modImplementation("org.quiltmc:quilt-loader:0.26.0") | ||
|
||
mappings(loom.officialMojangMappings()) | ||
minecraft("com.mojang:minecraft:${project.property("minecraft_version")}") | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.