general buildscript cleanup

This commit is contained in:
Jared 2023-06-11 03:40:13 +02:00
parent 531f251168
commit 2406e0394f
4 changed files with 6 additions and 10 deletions

View File

@ -39,16 +39,13 @@ subprojects {
}
repositories {
mavenCentral()
maven {
name = 'Sponge / Mixin'
url = 'https://repo.spongepowered.org/repository/maven-public/'
}
maven {
name = 'BlameJared Maven (CrT / Bookshelf)'
name = 'BlameJared Maven (JEI / CraftTweaker / Bookshelf)'
url = 'https://maven.blamejared.com'
}
}
@ -56,7 +53,7 @@ subprojects {
tasks.withType(JavaCompile).configureEach {
it.options.encoding = 'UTF-8'
it.options.release = 17
it.options.getRelease().set(17)
}
processResources {
@ -68,7 +65,7 @@ subprojects {
// Disables Gradle's custom module metadata from being published to maven. The
// metadata includes mapped dependencies which are not reasonably consumable by
// other mod developers.
tasks.withType(GenerateModuleMetadata) {
tasks.withType(GenerateModuleMetadata).configureEach {
enabled = false
}

View File

@ -43,7 +43,7 @@ processResources {
from project(":common").sourceSets.main.resources
}
tasks.withType(JavaCompile) {
tasks.withType(JavaCompile).configureEach {
source(project(":common").sourceSets.main.allSource)
}

View File

@ -78,7 +78,7 @@ dependencies {
annotationProcessor("org.spongepowered:mixin:0.8.5-SNAPSHOT:processor")
}
tasks.withType(JavaCompile) {
tasks.withType(JavaCompile).configureEach {
source(project(":common").sourceSets.main.allSource)
}
@ -86,7 +86,6 @@ processResources {
from project(":common").sourceSets.main.resources
}
jar.finalizedBy('reobfJar')
publishing {

View File

@ -13,7 +13,7 @@ fabric_version=0.68.1+1.19.3
fabric_loader_version=0.14.11
# Mod options
mod_name=MultiLoader
mod_name=Example Mod
mod_author=Jared
mod_id=examplemod